Skip to main content
POST
Jimeng Official Format Image Generation

Jimeng Official Format Image Generation

An image generation API in Jimeng’s official format, submitted in JSON and requiring query parameters.
  • The routing entry is POST /jm.
  • The Action and Version query parameters must be included in the URL.
  • Currently submitted using application/json.
  • Supports text-to-image, image-to-image, and other scenarios.
  • After successful submission, a task task_id is returned. Use Query Task to fetch the result later.

Supported Models

  • jimeng-4.0: Jimeng 4.0 model

Method and Path

Request Example

Example with Reference Images

Response Example

Authentication

Query Parameters

string
Operation type. Fixed value: CVSync2AsyncSubmitTask (submit task).
string
API version. Fixed value: 2022-08-31.

Body

string
required
Service identifier. Fixed value: jimeng_t2i_v40.
string
required
Model name. For example, jimeng-4.0.
string
required
The prompt used to generate the image. Both Chinese and English are supported. It is recommended to keep it within 800 characters at most; overly long prompts may cause generation anomalies or fail to take effect. You can directly specify the image generation ratio in the prompt.
string
Resolution. Optional values: 1k, 2k, 4k.
integer
The image area to generate (deprecated). Default: 4194304, which is 20482048, generating a 2K resolution image. Range: [10241024, 4096*4096], capable of generating 1K to 4K resolution images.
boolean
Whether to force generation of a single image. Default: false.
array
Image file URLs. Supports 0 to 10 images for image-to-image scenarios.
integer
Image width. Recommended values: 1024 (1K), 2048 (2K), 4096 (4K), etc.
integer
Image height. Recommended values: 1024 (1K), 2048 (2K), 4096 (4K), etc.

Response

integer
Status code. 10000 indicates success.
object
Response data container.
string
Task ID. Used to query task status and results later.
string
Task status.
string
Status message.
string
Request ID.
integer
Status code.
string
Request duration.

1K Resolution

2K Resolution

4K Resolution