Skip to content
Эта страница пока недоступна на вашем языке, поэтому она отображается на английском.

Z-Image-Turbo Image Generation

Asynchronous processing mode, returns task ID for subsequent queries

Вся документация
POST/v1/images/generations
  • Lightweight and fast image generation, supports Chinese and English
  • Supports 1K/2K resolution tiers, supports smart prompt rewriting

Примеры запросов

curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "z-image-turbo",
    "prompt": "Ink painting style landscape scenery"
  }'

Supported Models

ModelDescriptionImages Per RequestPricing
z-image-turboLightweight and fast image generation, supports Chinese and EnglishFixed 1 imageFixed price

Authorizations

Authorizationstringrequired

All endpoints require Bearer Token authentication

Get API Key:

Visit API Key Management to get your API Key

Add to request header:

text
Authorization: Bearer YOUR_API_KEY

Body

modelstringrequired

Model name

  • z-image-turbo - Lightweight and fast image generation, supports Chinese and English
nsfw_checkbooleandefault: false

Whether to run content moderation before submitting the image task.

  • true: use omni-moderation-latest to review prompts and input images
  • false or omitted: do not send a moderation request, adding no moderation cost or latency (default)
promptstringrequired

Text description for image generation, up to 800 characters

sizestringdefault: 1:1

Image aspect ratio

Supported aspect ratios:

  • 1:1 - Square (default)
  • 4:3 - Landscape 4:3
  • 3:4 - Portrait 3:4
  • 16:9 - Landscape widescreen
  • 9:16 - Portrait vertical
  • 3:2 - Landscape 3:2
  • 2:3 - Portrait 2:3
resolutionstringdefault: 1K

Resolution tier

  • 1K - Standard resolution (default)
  • 2K - High definition resolution
prompt_extendbooleandefault: false

Smart prompt rewriting

When enabled, AI will automatically optimize the prompt for better results, and costs will increase.

  • false - Disabled (default)
  • true - Enabled

Resolution Reference Table

Output size is controlled by the combination of size (ratio) + resolution (resolution tier).

Ratio1K Tier2K Tier
1:11024×10242048×2048
4:31152×8642048×1536
3:4864×11521536×2048
16:91280×7202048×1152
9:16720×12801152×2048
3:21248×8322048×1360
2:3832×12481360×2048

Usage Examples

Basic Text-to-Image (minimal request)

json
{
  "model": "z-image-turbo",
  "prompt": "Ink painting style landscape scenery"
}

Specify ratio and resolution

json
{
  "model": "z-image-turbo",
  "prompt": "Minimalist style cafe interior design",
  "size": "16:9",
  "resolution": "2K"
}

Enable smart prompt rewriting

json
{
  "model": "z-image-turbo",
  "prompt": "A cat",
  "prompt_extend": true
}

Response

codeinteger

Response status code

dataarray

Response data array

Properties

statusstring

Task status

  • submitted - Submitted
task_idstring

Task unique identifier

Notes

  1. Asynchronous Processing: After submission, a task_id is returned. Poll /v1/tasks/{task_id} to get results
  2. Image Storage: Generated images are mirrored to platform CDN and are valid long-term
  3. Billing Rules: Billed per successfully generated image, no charge for failures
  4. Fixed Count: Z-Image-Turbo generates exactly 1 image per request, n parameter is not supported

Ответы

{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01JGXYZ1234567890ABCDEF"
    }
  ]
}

Нашли ошибку в документации? Напишите на support@apisea.ai.