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.
- 01
Get an API key
Sign in to the console, create a key, and top up from $5.
Quickstart - 02
Submit a task
Send POST /v1/tasks with the model ID and unified input parameters.
Tasks & polling - 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.
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.
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.