---
title: "Generate an image (qwen-image-2.1-spicy)"
method: POST
path: "/v1/qwen-image-2.1-spicy"
tags: ["Tasks"]
---

# Generate an image (qwen-image-2.1-spicy)

`POST /v1/qwen-image-2.1-spicy`

## Request

- Base URL: `https://api.hotapi.ai`
- URL: `https://api.hotapi.ai/v1/qwen-image-2.1-spicy`
- Auth: HTTP bearer

Uncensored text-to-image generation on the Qwen image line, with optional reference-image guidance (up to 8 references for identity-preserving composition). Output is the 1K tier at the chosen aspect ratio. Async: returns a task (202); poll `GET /v1/tasks/{id}` or await your webhook until a terminal status.

## Query parameters

- `webhook` string, uri

## Headers

- `idempotency-key` string

## Request body

- object: Uncensored text-to-image input with optional reference guidance.
  - `prompt` string, required: Text prompt (up to 4000 characters).
  - `aspect_ratio` union: Output aspect ratio (1024px-class 1K tier).
    - '1:1'
    - '16:9'
    - '9:16'
    - '4:3'
    - '3:4'
    - '3:2'
    - '2:3'
  - `reference_image_urls` string[]: Up to 8 reference images guiding identity/style (e.g. place a specific person into the scene).
  - `seed` integer, nullable: Random seed (0–2147483647). null or omitted = random.

## Response `200`

An async task. Creation returns 202 with status=queued; poll GET /v1/tasks/{id} (or await the webhook) until a terminal status.

- Task: An async task. Creation returns 202 with status=queued; poll GET /v1/tasks/{id} (or await the webhook) until a terminal status.
  - `id` string, required
  - `object` 'task', required
  - `status` union, required: Lifecycle status. Terminal states: succeeded | failed | cancelled | expired.
    - 'pending'
    - 'queued'
    - 'processing'
    - 'succeeded'
    - 'failed'
    - 'cancelled'
    - 'expired'
  - `model` string, required
  - `task_kind` string, required
  - `input` object, required: The normalized request input the task was created with.
  - `output` object: Result payload, present once status=succeeded. Contains hosted asset URLs (re-hosted on our CDN).
  - `error` object
    - `type` string, required
    - `code` string, required
    - `message` string, required
  - `estimated_credits_cost` integer, required: Credits charged up-front when the task was created (1000 credits = $1).
  - `reference_video_seconds` number: Input-video seconds measured and frozen at submission; reused for draft finalization billing. Zero when no reference video was supplied.
  - `actual_credits_cost` integer: Final credits charged after settlement (equals estimate today).
  - `webhook_url` string, uri
  - `api_key_id` string: The organization's API key that created the task; absent for dashboard/session-created tasks.
  - `created_at` integer, required: Unix seconds.
  - `queued_at` integer: Unix seconds.
  - `started_at` integer: Unix seconds.
  - `completed_at` integer: Unix seconds.
  - `expires_at` integer, required: Unix seconds; result + asset retention deadline.

## Other responses

- `202`: An async task. Creation returns 202 with status=queued; poll GET /v1/tasks/{id} (or await the webhook) until a terminal status.
- `400`: Standard error envelope returned by every error response (OpenAI-style).
- `401`: Standard error envelope returned by every error response (OpenAI-style).
- `402`: Standard error envelope returned by every error response (OpenAI-style).
- `404`: Standard error envelope returned by every error response (OpenAI-style).
- `429`: Standard error envelope returned by every error response (OpenAI-style).

---

[API](https://skmtc.dev/hotapi/apis/hotapi-gateway.md) · [All operations](https://skmtc.dev/hotapi/apis/hotapi-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/hotapi/apis/hotapi-gateway/revisions/9b6578b0c389?raw)
