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.
- Create an account and copy your API key from the dashboard.
- Send your first task with the request below.
- Open the
result.urlwhen the task finishes.
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.
| Field | Type | Description |
|---|---|---|
model | string | Model ID, e.g. veo-3.1. See Model IDs. |
input | object | Model-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_url | string | Optional public https URL. We POST the finished task here. |
metadata | object | Optional. Returned unchanged, useful for your own IDs. |
{
"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.
{
"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 ID | Type | Endpoint | Price |
|---|---|---|---|
veo-3.1 | video | /tasks | $1.46625 / 8s clip, 1080p, quality |
seedance-2.5 | video | /tasks | $1.81125 / 5s clip, 720p |
seedance-2 | video | /tasks | $1.17875 / 5s clip, 720p |
seedance-2-fast | video | /tasks | $0.713 / 5s clip, 720p |
kling-3.0 | video | /tasks | $0.5175 / 5s clip, 1080p (pro), no audio |
kling-3.0-turbo | video | /tasks | $0.646875 / 5s clip, 1080p |
kling-2.6 | video | /tasks | $0.31625 / 5s clip, no audio |
wan-3.0 | video | /tasks | $0.92 / 5s clip, 1080p |
wan-3.0-prime | video | /tasks | $1.449 / 5s clip, 1080p |
wan-2.7 | video | /tasks | $0.69 / 5s clip, 1080p |
wan-2.6 | video | /tasks | $0.60375 / 5s clip, 1080p |
hailuo-2.3 | video | /tasks | $0.1725 / 6s clip, 768p, standard |
minimax-h3 | video | /tasks | $0.276 / 6s clip, 768p |
grok-imagine-video | video | /tasks | $0.15525 / 6s clip, 720p |
pixverse-v6 | video | /tasks | $0.207 / 5s clip, 720p, no audio |
happyhorse-1.1 | video | /tasks | $0.83375 / 5s clip, 1080p |
gpt-image-2.5 | image | /tasks | $0.0575 / image, 2K |
gpt-image-2 | image | /tasks | $0.0345 / image, 1K |
nano-banana-pro | image | /tasks | $0.1035 / image, 2K |
nano-banana-2 | image | /tasks | $0.046 / image, 1K |
nano-banana-2.1 | image | /tasks | $0.023 / image, 1K |
seedream-5-pro | image | /tasks | $0.0805 / image, 2K |
seedream-5-flash | image | /tasks | $0.01863 / image, 2K |
seedream-5-lite | image | /tasks | $0.031625 / image, 2K–4K |
flux-2-pro | image | /tasks | $0.02875 / image, 1MP |
flux-2-flex | image | /tasks | $0.0805 / image, 1K |
imagen-4 | image | /tasks | $0.046 / image, standard |
ideogram-v3 | image | /tasks | $0.04025 / image, balanced |
qwen-image-3 | image | /tasks | $0.0276 / image, 1K |
qwen-image-3-pro | image | /tasks | $0.0368 / image, 1K |
grok-imagine-image | image | /tasks | $0.023 / image |
wan-2.7-image | image | /tasks | $0.0276 / image, 2K |
wan-2.7-image-pro | image | /tasks | $0.069 / image, 2K |
suno-v6 | audio | /tasks | $0.069 / song, up to 4 min |
elevenlabs-v3 | audio | /tasks | $0.0805 / 1k characters |
Errors
| Status | Code | What to do |
|---|---|---|
| 401 | invalid_api_key | Check the key and that it hasn't been revoked. |
| 402 | insufficient_credits | Top up in the dashboard, or raise the key's spend cap. |
| 404 | model_not_found | Use an ID from the Model IDs table. |
| 422 | invalid_input | The message names the field that failed. |
| 429 | rate_limited | Wait for the Retry-After seconds, then resend. |
| 5xx | upstream_error | Safe 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.