Skip to main content
POST
Jimeng Official Format Query Task

Jimeng Official Format Query Task

The task query API for Jimeng official format, used to query the status and result of image generation tasks.
  • The route entry is POST /jm.
  • Action and Version query parameters are required in the URL.
  • Specify the task to query through task_id in the Body.
  • Returns the task status (generating, success, failed) and image download URLs.

Method and Path

Request Example

Response Example

Generating

Generation Successful

Generation Failed

Authentication

Query Parameters

string
Operation type. Fixed value: CVSync2AsyncGetResult (query result).
string
API version. Fixed value: 2022-08-31.

Body

string
required
Service identifier. Fixed value: jimeng_t2i_v40.
string
required
Task ID. The task_id returned when the task was created.
string
required
A JSON-serialized string. Currently supports watermark configuration and whether to return image links; this can be added in the response result. For example: {"return_url": true}.

Response

integer
Status code. 10000 indicates success.
object
Response data container.
array
An array of Base64-encoded images.
array | null
An array of image URLs. Returned when return_url: true is set in req_json.
string
Task status. Possible values: generating (generating), success (success), failed (failed).
string
Status message.
string
Request ID.
integer
Status code.
string
Request duration.