EasyToken video, image and audio API documentation

Media models only. Chat and text models are not offered.

Quickstart

The API lives at https://api.easytoken.si/v1. Every model uses the same key. Video, image and audio models run as tasks: you create one, then receive the result by webhook or by polling.

  1. Create an account and copy your API key from the dashboard.
  2. Send your first task with the request below.
  3. Open the result.url when the task finishes.
first-task.sh
curl https://api.easytoken.si/v1/tasks \
  -H "Authorization: Bearer $EASYTOKEN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2.5",
    "input": { "prompt": "Product spin on a marble table" }
  }'

Authentication

Send your key as a bearer token in the Authorization header. Keys start with et_live_. Keep them on your server; never ship them in a browser or mobile app.

You can create several keys, each with its own daily spend cap, from Dashboard → API keys.

Media tasks

POST /v1/tasks creates a video, image or audio job and returns at once with a task ID.

FieldTypeDescription
modelstringModel ID, e.g. veo-3.1. See Model IDs.
inputobjectModel-specific input. Inputs vary by model; consult the catalog and validate a request with POST /v1/quote before creating a task. Video and image models accept aspect_ratio and image_urls (https links) for image-to-video or editing. Price-setting options are resolution (e.g. 720p, 1080p, 4k; images 1K/2K/4K), duration in seconds, mode (Veo quality/fast/lite, Kling 3.0 std/pro/4K, Hailuo standard/pro, Imagen fast/standard/ultra) and audio (sound or generate_audio). Suno accepts style, lyrics, title and instrumental. Unsupported options can return 422 before a task is charged; check the quote and task response: e.g. Veo 3.1 is 8s only, Wan 2.6 takes 1 input image, Grok Imagine Video takes up to 7 images (1 at 1080p).
callback_urlstringOptional public https URL. We POST the finished task here.
metadataobjectOptional. Returned unchanged, useful for your own IDs.
response · 202
{
  "id": "task_8f2kq1x",
  "model": "seedance-2.5",
  "status": "queued",
  "cost_usd": 1.81125,
  "created_at": "2026-10-07T12:00:00Z"
}

Get a task

GET /v1/tasks/{id} returns the current state. Copy output files you want to keep; retention terms require owner confirmation. status moves through queued → running → succeeded or failed. Poll every 5 to 10 seconds, or use a webhook instead.

succeeded
{
  "id": "task_8f2kq1x",
  "status": "succeeded",
  "result": { "url": "https://…/output.mp4", "urls": ["https://…/output.mp4"], "type": "video" },
  "cost_usd": 1.81125
}

Webhooks

When you pass callback_url, we send the same body as Get a task once the task finishes. Each request carries an X-EasyToken-Signature header: an HMAC-SHA256 of the raw body with your webhook secret. Reply with any 2xx within 10 seconds; we retry up to 5 times with backoff.

Model IDs

GET /v1/models returns this list as JSON with the price of every option (resolution, duration, mode, audio); GET /v1/balance returns your credit balance. The example prices below use the catalog inputs (snapshot 2026-10-29); quote your chosen options for a current price.

Model IDTypeEndpointPrice
veo-3.1video/tasks$1.46625 / 8s clip, 1080p, quality
seedance-2.5video/tasks$1.81125 / 5s clip, 720p
seedance-2video/tasks$1.17875 / 5s clip, 720p
seedance-2-fastvideo/tasks$0.713 / 5s clip, 720p
kling-3.0video/tasks$0.5175 / 5s clip, 1080p (pro), no audio
kling-3.0-turbovideo/tasks$0.646875 / 5s clip, 1080p
kling-2.6video/tasks$0.31625 / 5s clip, no audio
wan-3.0video/tasks$0.92 / 5s clip, 1080p
wan-3.0-primevideo/tasks$1.449 / 5s clip, 1080p
wan-2.7video/tasks$0.69 / 5s clip, 1080p
wan-2.6video/tasks$0.60375 / 5s clip, 1080p
hailuo-2.3video/tasks$0.1725 / 6s clip, 768p, standard
minimax-h3video/tasks$0.276 / 6s clip, 768p
grok-imagine-videovideo/tasks$0.15525 / 6s clip, 720p
pixverse-v6video/tasks$0.207 / 5s clip, 720p, no audio
happyhorse-1.1video/tasks$0.83375 / 5s clip, 1080p
gpt-image-2.5image/tasks$0.0575 / image, 2K
gpt-image-2image/tasks$0.0345 / image, 1K
nano-banana-proimage/tasks$0.1035 / image, 2K
nano-banana-2image/tasks$0.046 / image, 1K
nano-banana-2.1image/tasks$0.023 / image, 1K
seedream-5-proimage/tasks$0.0805 / image, 2K
seedream-5-flashimage/tasks$0.01863 / image, 2K
seedream-5-liteimage/tasks$0.031625 / image, 2K–4K
flux-2-proimage/tasks$0.02875 / image, 1MP
flux-2-fleximage/tasks$0.0805 / image, 1K
imagen-4image/tasks$0.046 / image, standard
ideogram-v3image/tasks$0.04025 / image, balanced
qwen-image-3image/tasks$0.0276 / image, 1K
qwen-image-3-proimage/tasks$0.0368 / image, 1K
grok-imagine-imageimage/tasks$0.023 / image
wan-2.7-imageimage/tasks$0.0276 / image, 2K
wan-2.7-image-proimage/tasks$0.069 / image, 2K
suno-v6audio/tasks$0.069 / song, up to 4 min
elevenlabs-v3audio/tasks$0.0805 / 1k characters

Errors

StatusCodeWhat to do
401invalid_api_keyCheck the key and that it hasn't been revoked.
402insufficient_creditsTop up in the dashboard, or raise the key's spend cap.
404model_not_foundUse an ID from the Model IDs table.
422invalid_inputThe message names the field that failed.
429rate_limitedWait for the Retry-After seconds, then resend.
5xxupstream_errorSafe to retry. Failed tasks are never billed.

Rate limits

New accounts can run 10 media tasks at once per model. For higher limits, request confirmation from support.

Billing

Usage is paid from prepaid credits. Each task's price depends on the options you pick, is fixed when it is created and shown in cost_usd. To see a price first, POST /v1/quote with the same model and input as a task (no key needed, nothing is charged). A task reserves credits on creation. When a task reaches a failed state, the Worker returns its reserved cost to the balance and records the task cost as zero. Confirm task status when checking a refund; a successful task remains charged.