AI video and imagegeneration API.

One API for Seedance, Seedream, Wan and more. Pay per successful generation at prices below the official rates.

  • POST /v1/tasks
  • POST /v1/estimate
  • OpenAPI 3.1
  • MCP
# 1. Submit a task (optional: add "webhook_url" with your own HTTPS endpoint)
TASK_ID=$(curl -sS --fail-with-body https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "bytedance/seedance-2.5",
    "input": {
      "prompt": "a paper boat on a rainy street, dusk",
      "resolution": "480p",
      "duration": 5
    }
  }' | jq -r .id)

# 2. Poll until status is "succeeded" or "failed" (up to 10 min)
for _ in $(seq 1 200); do
  TASK=$(curl -sS --fail-with-body "https://api.kerox.ai/v1/tasks/$TASK_ID" \
    -H "Authorization: Bearer $KEROX_API_KEY")
  STATUS=$(echo "$TASK" | jq -r .status)
  [ "$STATUS" != "processing" ] && break
  sleep 3
done
echo "$TASK"
[ "$STATUS" = "succeeded" ] || exit 1
# 3. The same object comes back when you poll, and in your webhook
{
  "id": "task_01JD8X9B4Q2M7T8N3K5P6R1S0V",
  "object": "task",
  "model": "bytedance/seedance-2.5",
  "status": "succeeded",
  "outputs": [ { "type": "video", "url": "https://cdn.kerox.ai/t/task_01JD8X9B…/0.mp4" } ],
  "cost": { "amount": "0.4883", "currency": "USD", "status": "settled" }
}

Three steps to integrate.

  1. 01

    Get an API key

    Sign in to the console, create a key, and top up from $5.

    Quickstart
  2. 02

    Submit a task

    Send POST /v1/tasks with the model ID and unified input parameters.

    Tasks & polling
  3. 03

    Poll or wait for a webhook

    Poll GET /v1/tasks/{id} until it finishes, or pass webhook_url to receive the result.

    Webhooks

What you get.

Unified parameter names

Every video and image model uses the same parameter names.

Signed webhooks

Webhook deliveries are signed with Standard Webhooks so your server can verify each request.

Full refund on failure

Failed and timed-out tasks release the held amount in full.

OpenAPI specification

Machine-readable OpenAPI schema for client generation and validation.

MCP server & Agent Skill

Connect AI agents directly through the MCP server or install the Agent Skill.

llms.txt

Plain Markdown docs indexed in llms.txt so agents can read every endpoint and model.

ByteDance official format

ByteDance models also accept ByteDance's official request body for easier migration.

Models and API pricing.

Every live model is available through the same POST /v1/tasks endpoint.

Seedance 2.5Video
bytedance/seedance-2.5
From approx. $0.0977 / s (480p)API docs
Seedance 2.0Video
bytedance/seedance-2.0
From approx. $0.0668 / s (480p)API docs
Seedance 2.0 FastVideo
bytedance/seedance-2.0-fast
From approx. $0.0337 / s (480p)API docs
Seedance 2.0 MiniVideo
bytedance/seedance-2.0-mini
From approx. $0.0193 / s (480p)API docs
Wan 3.0Video
alibaba/wan-3.0
$0.0400 / secondAPI docs
alibaba/wan-3.0-prime
$0.0612 / secondAPI docs
MiniMax H3Video
minimax/h3
$0.0400 / secondAPI docs
MiniMax H3 MaxVideo
minimax/h3-max
$0.0450 / secondAPI docs
Seedance 2.5 FlashVideo
bytedance/seedance-2.5-flash
From approx. $0.0639 / s (480p)API docs
Kling 4.0Video
kuaishou/kling-4.0
$0.1413 / secondAPI docs
Kling 4.0 FlashVideo
kuaishou/kling-4.0-flash
$0.0846 / secondAPI docs
Magi-2Video
sand-ai/magi-2
$0.1000 / secondAPI docs
Seedream 5.5Image
bytedance/seedream-5.5
$0.0160 / imageAPI docs
Seedream 5.0 ProImage
bytedance/seedream-5.0-pro
$0.0360 / imageAPI docs
Seedream 4.5Image
bytedance/seedream-4.5
$0.0320 / imageAPI docs
Seedream 4.0Image
bytedance/seedream-4.0
$0.0270 / imageAPI docs
Seedream 5.0 LiteImage
bytedance/seedream-5.0-lite
$0.0315 / imageAPI docs
alibaba/z-image-turbo
$0.0047 / imageAPI docs
alibaba/wan-2.7-image
$0.0240 / imageAPI docs
alibaba/wan-2.7-image-pro
$0.0600 / imageAPI docs
alibaba/qwen-image-2.0
$0.0298 / imageAPI docs
alibaba/qwen-image-2.0-pro
$0.0675 / imageAPI docs
alibaba/qwen-image-3.0
$0.0270 / imageAPI docs
alibaba/qwen-image-3.0-pro
$0.0360 / imageAPI docs
openai/gpt-image-2.6-flare
Est. from $0.0210/imageAPI docs
openai/gpt-image-2.6-sunburst
Est. from $0.0210/imageAPI docs
openai/gpt-image-2.6-flare-economy
$0.0150 / imageAPI docs
openai/gpt-image-2.6-sunburst-economy
$0.0150 / imageAPI docs
Kling Image 4.0Image
kuaishou/kling-image-4.0
$0.0567 / imageAPI docs

Public rate

Need higher volume? We can set a lower rate on your account.

Questions

Not answered here?

Which models are available through the API?

Seedance, Seedream, Wan, Qwen Image and more. Every model on the models page can be called through the same API.

How is the API billed?

Per successful generation, from your balance. The estimated cost is held when you submit a task, settled at the actual cost when it succeeds, and released in full if it fails or times out. There is no subscription.

Is there a free tier?

Not at the moment. Top up from $5 and pay only for what you generate.

How do I get the result?

Poll the task, or pass a webhook URL when you submit and receive the finished task. Results are file URLs in the task's outputs.

Are there rate limits?

Yes. Each account has a per-minute submission limit and a concurrent in-progress task limit, and POST /v1/files accepts 300 uploads per minute per account. Check your limits via GET /v1/account or see Idempotency & limits.

Can AI agents use it?

Yes. Kerox has an MCP server, an Agent Skill and an llms.txt, so agents can discover models and submit tasks on their own.