REST APIPersistent backend online

EveryRouter API

One task contract for video, image, audio, and language models. Discover a model, submit structured input, then poll one normalized task response.

BASE URLhttps://kie.everyrouter.ai/api/v1

Security

Authentication

Send your API key in the Authorization header. Keys can be created, copied once, scoped, rotated, and revoked from the developer console.

Example
Authorization: Bearer $EVERYROUTER_API_KEY

Models

List available models

GET/modelsReturns the registry used by the market and every dynamic playground.
Example
curl -H "Authorization: Bearer $EVERYROUTER_API_KEY" "$EVERYROUTER_BASE_URL/models"

Tasks

Create a generation task

POST/tasksValidates a normalized payload and creates an asynchronous generation task.
Example
export EVERYROUTER_BASE_URL="https://api.your-domain.example/api/v1"
curl -X POST "$EVERYROUTER_BASE_URL/tasks" \
  -H "Authorization: Bearer $EVERYROUTER_API_KEY" \
  -H "Idempotency-Key: my-generation-001" \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "kling-3",
    "input": { "prompt": "A cinematic product reveal" }
  }'

Polling

Retrieve task status

GET/tasks/{taskId}Returns task state, progress, credits, result type, output, or a normalized error.
Example
{
  "data": {
    "id": "task_8f3c1",
    "status": "succeeded",
    "quotedCost": 0.7,
    "chargedCost": 0.7,
    "result": { "kind": "video", "url": "https://cdn.example/output.mp4" }
  }
}

Errors

Predictable failures

StatusMeaning
400Invalid JSON or idempotency key
401Missing, invalid, or revoked API key
402Insufficient workspace credits
404Model or task not found
409Idempotency or task state conflict
422Invalid model input
500Unexpected execution failure