---
title: "Generate a video from an image (seedance-2.5-spicy)"
method: POST
path: "/v1/seedance-2.5-spicy/image-to-video"
tags: ["Tasks"]
---

# Generate a video from an image (seedance-2.5-spicy)

`POST /v1/seedance-2.5-spicy/image-to-video`

## Request

- Base URL: `https://api.hotapi.ai`
- URL: `https://api.hotapi.ai/v1/seedance-2.5-spicy/image-to-video`
- Auth: HTTP bearer

Uncensored image-to-video generation: first frame (+ optional last frame), 480p/720p/1080p, 4–30s, synced audio, MP4/MOV output, optional 480p draft preview. Async: returns a task (202); poll `GET /v1/tasks/{id}`.

## Query parameters

- `webhook` string, uri

## Headers

- `idempotency-key` string

## Request body

- object: Uncensored image-to-video input (Seedance 2.5 Spicy). Output ratio follows the first frame.
  - `image_url` string, required: First-frame image (HTTPS URL or base64).
  - `last_frame_url` string: Optional last-frame image for first-to-last-frame interpolation.
  - `prompt` string: Optional text prompt to guide the motion.
  - `duration_seconds` integer, required: 4–30 seconds.
  - `resolution` union: Output resolution; omitted = cheapest tier (480p).
    - '480p'
    - '720p'
    - '1080p'
  - `generate_audio` boolean: Generate a synced audio track (default true). The provider moderates generated audio: for spicy content the audio track may be rejected after generation, failing the whole task (no video produced, fully refunded). If you don't need audio, pass false to receive a silent video and avoid these failures.
  - `draft` boolean: Render a 480p draft preview to validate the composition before committing to a final. Billed at the normal 480p rate (not a discount). Must be sent with resolution "480p" (or omitted); any other resolution is rejected. Finalize via seedance-2.5-spicy/draft-to-video.
  - `output_format` union: Output container format (Seedance 2.5 only). Omitted = mp4.
    - 'mp4'
    - 'mov'

## 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)
