Skip to main content
Image models

Z-Image Turbo — Generate API

Generate with Z-Image Turbo: request parameters, examples and response handling.

← Z-Image Turbo

Endpoint: POST https://api.higgsfield.ai/z-image/turbo

Endpoint ID: z-image/turbo

▶Open API PlaygroundZ-Image Turbo · Generate↗

#Usage notes

  • Text-to-image only. prompt must contain non-whitespace text and at most 800 characters.
  • prompt_extend defaults to false; enabling it uses the enhanced pricing tier.
  • The schema accepts 1k and 2k tiers, ten aspect ratios, and an optional integer seed from 0 to 2147483647.

#Quick start

cURL
curl --request POST \
  --url https://api.higgsfield.ai/z-image/turbo \
  --header "Authorization: Key ${HF_API_KEY_ID}:${HF_API_KEY_SECRET}" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: ${IDEMPOTENCY_KEY}" \
  --data '{
  "prompt": "A ceramic vase on a wooden table beside a sunlit window, soft natural shadows, editorial photograph.",
  "resolution": "1k",
  "aspect_ratio": "1:1",
  "prompt_extend": false
}'

#Input schema

seed integer

Optional random seed for similar, reproducible results. Minimum: 0. Maximum: 2147483647.

prompt string required

Positive prompt describing the desired content, style, and composition. Minimum characters: 1. Maximum characters: 800.

resolution string (default: 1k)

Output resolution tier. Both tiers produce PNG images. Allowed values: "1k", "2k".

aspect_ratio string (default: 1:1)

Output aspect ratio. Exact provider-recommended dimensions are selected automatically. Allowed values: "1:1", "2:3", "3:2", "3:4", "4:3", "7:9", "9:7", "9:16", "16:9", "21:9".

prompt_extend boolean (default: false)

Rewrite and reason over the prompt before generation; this uses the enhanced price tier.

Complete JSON schema
json
{
  "type": "object",
  "title": "Z-Image Turbo",
  "required": [
    "prompt"
  ],
  "properties": {
    "seed": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": 0,
      "description": "Optional random seed for similar, reproducible results."
    },
    "prompt": {
      "type": "string",
      "maxLength": 800,
      "minLength": 1,
      "description": "Positive prompt describing the desired content, style, and composition."
    },
    "resolution": {
      "enum": [
        "1k",
        "2k"
      ],
      "type": "string",
      "default": "1k",
      "description": "Output resolution tier. Both tiers produce PNG images."
    },
    "aspect_ratio": {
      "enum": [
        "1:1",
        "2:3",
        "3:2",
        "3:4",
        "4:3",
        "7:9",
        "9:7",
        "9:16",
        "16:9",
        "21:9"
      ],
      "type": "string",
      "default": "1:1",
      "description": "Output aspect ratio. Exact provider-recommended dimensions are selected automatically."
    },
    "prompt_extend": {
      "type": "boolean",
      "default": false,
      "description": "Rewrite and reason over the prompt before generation; this uses the enhanced price tier."
    }
  },
  "additionalProperties": false
}

#Response

Submission returns a request handle. Poll status_url until status is completed, or use webhooks.

Accepted
{
  "status": "queued",
  "request_id": "REQUEST_ID",
  "status_url": "https://api.higgsfield.ai/requests/REQUEST_ID/status",
  "cancel_url": "https://api.higgsfield.ai/requests/REQUEST_ID/cancel"
}

A completed response includes the following output fields:

json
{
  "status": "completed",
  "request_id": "REQUEST_ID",
  "images": [
    {
      "url": "https://example.com/output.png"
    }
  ]
}

See idempotent requests, polling, request errors and authentication for shared request handling.

Was this page helpful?
Navigation