All posts

JiMeng AI Image Generation API: Complete Guide

How to use JiMeng (即梦) image generation API — ByteDance's AI model for high-quality images with Chinese text support. Includes code examples and pricing.

guidejimengimage-generation
## What is JiMeng? JiMeng (即梦) is ByteDance's AI image generation model. It produces high-quality, aesthetically refined images — and it has a unique advantage: **accurate Chinese text rendering**. While DALL-E and Midjourney often garble Chinese characters, JiMeng handles them natively. JiMeng also excels at photorealistic scenes, stylized illustrations, and commercial-grade compositions. For anyone building products targeting Chinese-speaking users, it's a game-changer. ## Available Models | Model | Type | Description | |---|---|---| | **jimeng-image** | Image generation | Text-to-image with exceptional aesthetic quality | | **jimeng-video** | Video generation | Text-to-video with fluid motion | ## Why JiMeng Over DALL-E or Midjourney? - **Chinese text rendering** — Generates images with accurate Chinese characters embedded naturally - **Aesthetic quality** — Trained on a massive dataset with strong aesthetic curation - **Cost** — Competitive per-image pricing through AI API Marketplace - **API-first** — Unlike Midjourney (Discord-only), JiMeng is available via standard REST API ## API Usage JiMeng is accessible through AI API Marketplace's OpenAI-compatible image endpoint. ### cURL ```bash curl https://api.aigcto.cc/v1/images/generations \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "jimeng-image", "prompt": "A serene Japanese garden with cherry blossoms, watercolor style", "n": 1, "size": "1024x1024" }' ``` ### Python ```python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.aigcto.cc/v1" ) response = client.images.generate( model="jimeng-image", prompt="A futuristic cityscape at sunset, cyberpunk aesthetic", n=1, size="1024x1024" ) image_url = response.data[0].url print(f"Image URL: {image_url}") ``` ### Response Format The response follows the OpenAI image generation schema: ```json { "created": 1711843200, "data": [ { "url": "https://..." } ] } ``` ## Use Cases **E-commerce.** Generate product mockups, lifestyle images, and marketing banners with embedded Chinese text — no Photoshop needed. **Social media.** Create scroll-stopping visuals for Xiaohongshu, WeChat, and Douyin with culturally relevant aesthetics. **App development.** Generate placeholder images, onboarding illustrations, or dynamic content for Chinese-market apps. **Marketing.** Produce ad creatives with Chinese copy baked into the image, eliminating the text overlay step. ## Pricing JiMeng image generation is billed per image through the AI API Marketplace credit system. Check current rates at [aimarket.aigcto.cc/pricing](https://aimarket.aigcto.cc/pricing). As a reference: - **1,000 credits = $1 USD** - No monthly fee, credits never expire ## Getting Started 1. [Sign up](https://aimarket.aigcto.cc/register) for an AI API Marketplace account 2. Generate an API key from the Dashboard 3. Use the code examples above to start generating images JiMeng is currently the only way to get ByteDance-quality image generation through a standard API outside of China. [Start building](https://aimarket.aigcto.cc/register) today.