APIMPAPIMP
User GuideAI APIImage APIVideo APIPublic API

z-image-turbo

Submit an async z-image-turbo image generation task. Returns a task_id to poll via the status endpoint.

POST
/api/generate/submit

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Request Body

application/json

model*string

模型名,固定为 z-image-turbo

prompt*string

图片描述(必填,非空)。

size?string

输出宽高比。

Value in"1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3"
resolution?string

输出分辨率。

Value in"1K" | "2K"
prompt_extend?boolean

是否启用提示词智能改写。

[key: string]?never

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.apimp.ai/api/generate/submit" \  -H "Content-Type: application/json" \  -d '{    "model": "z-image-turbo",    "prompt": "A futuristic glass pavilion in a misty forest"  }'
{
  "code": 200,
  "data": {
    "task_id": "task_0VDknz6qRwvH5Y5aDAt6mN8pRShzLb6X",
    "status": "not_started",
    "created_time": "2026-06-18T09:21:26",
    "error_message": null
  }
}

{
  "code": 400,
  "error": {
    "message": "field `prompt` is required",
    "type": "invalid_request_error"
  }
}

{
  "code": 400,
  "error": {
    "message": "string",
    "type": "invalid_request_error"
  }
}
{
  "code": 400,
  "error": {
    "message": "string",
    "type": "invalid_request_error"
  }
}
{
  "code": 400,
  "error": {
    "message": "string",
    "type": "invalid_request_error"
  }
}
{
  "code": 400,
  "error": {
    "message": "string",
    "type": "invalid_request_error"
  }
}

How is this guide?

Last updated on