SeedVideo AI API
API reference

Create an image task

Starts an image task and returns its ID. Use `GET /v1/tasks/{task_id}` to check the status. Credits are deducted when the task is created and returned if it fails. Some models hold the connection until the image is ready, so allow up to 180 seconds for the response.

POST/v1/images/generations
AuthorizationBearer <token>

Create a SeedVideo AI API key in Settings. Send it only from a trusted server.

In: header

modelstring

A public image model ID.

Value in"gpt-image-2.6-sunburst" | "gpt-image-2.6-flare" | "gpt-image-2.5-sunburst" | "gpt-image-2.5-flare" | "gpt-image-2" | "nano-banana-2.1" | "nano-banana-pro" | "seedream-5.5" | "seedream-5.0-pro" | "seedream-5.0-lite"
promptstring

Describe the image you want to create, or the edit to make to the input images.

Length1 <= length
image_urls?array<string>

Public HTTPS image URLs to edit or use as references. Sending any selects image to image. GPT Image models take up to 16, Nano Banana and Seedream 5.0 Lite up to 14, and Seedream 5.5 and 5.0 Pro up to 10.

size?string

An aspect ratio such as 1:1, 16:9, or 3:4. GPT Image and Seedream models also accept exact pixel dimensions such as 1536x1024. Defaults to 1:1 on GPT Image models and auto on the others.

resolution?string

The output resolution tier for GPT Image models when size is an aspect ratio.

Value in"1K" | "2K" | "4K"
quality?string

The quality tier. GPT Image models take low, medium, or high (2.5 and 2.6 also xhigh and max); Nano Banana and Seedream models take a resolution tier such as 1K, 2K, or 4K. Higher tiers cost more credits.

background?string

The background of the output, on GPT Image models and Seedream 5.5.

Value in"opaque" | "transparent"
n?integer

The number of images to create, on models that return more than one per request. Each image is billed.

Range1 <= value

Response Body

curl -X POST "https://www.seeddance.io/v1/images/generations" \  -H "Authorization: Bearer sk_sd_example" \  -H "Content-Type: application/json" \  -d '{    "model": "seedream-5.5",    "prompt": "A ceramic teapot on a linen tablecloth, soft window light",    "size": "4:3"  }'
{
  "task_id": "0b1f6f0e-6f0f-4c59-9a43-0d2f3c1c8a11",
  "status": "pending",
  "created_at": "2026-12-05T08:30:00.000Z"
}
{
  "error": {
    "code": "invalid_request",
    "message": "Request body must contain valid JSON.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "invalid_api_key",
    "message": "The API key is invalid, expired, or revoked.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "insufficient_credits",
    "message": "This request requires 4 credits, but only 2 are available.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "Content-Type must be application/json.",
    "param": "content-type",
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "Unsupported model.",
    "param": "model",
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "API rate limit exceeded. Try again later.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "internal_error",
    "message": "The request could not be completed.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "provider_error",
    "message": "The image provider could not start this task. Try again later.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}
{
  "error": {
    "code": "service_unavailable",
    "message": "This model is temporarily unavailable. Try again later.",
    "param": null,
    "request_id": "req_2YgM6pg5oM2WkKpQ"
  }
}