One API for chat, image, video, and speech modelsOpenAI-compatibleCard or cryptoCredit never expiresRead the docs
Generation price
Queue time
median latency
Completion
median duration
01RoutesLoading
02Capabilities
Input
text · image · audio
Output
video
Context
—
Max output
—
Audio inputVision
Supported parameters (3)
  • aspect_ratio
  • input_references
  • resolution
03Quick start

Call it with your RProuter key

Send JSON to /v1/videos with this model ID. The example below uses parameters this model supports.

curl "$RPROUTER_BASE_URL/videos" \
  -H "Authorization: Bearer $RPROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"heygen/avatar-iv","prompt":"Waves rolling onto a beach at golden hour","resolution":"720p","aspect_ratio":"16:9","callback_url":"https://your-app.example/hooks/rprouter"}'
04Example request and response

Request

POST /v1/videos
Authorization: Bearer YOUR_RPROUTER_KEY

{
  "model": "heygen/avatar-iv",
  "prompt": "Waves rolling onto a beach at golden hour",
  "resolution": "720p",
  "aspect_ratio": "16:9",
  "callback_url": "https://your-app.example/hooks/rprouter"
}

Response

202 Accepted

{
  "id": "6f1c2a9e-4b7d-4e21-9a8f-2c5d1e7b3a40",
  "polling_url": "https://rprouter.ai/v1/jobs/6f1c2a9e-4b7d-4e21-9a8f-2c5d1e7b3a40",
  "status": "pending",
  "generation_id": "b0e4f7d2-91c3-4a6e-8d15-7f2a9c3e5b18"
}

Polling the job

GET /v1/jobs/6f1c2a9e-4b7d-4e21-9a8f-2c5d1e7b3a40
Authorization: Bearer YOUR_RPROUTER_KEY

200 OK

{
  "id": "6f1c2a9e-4b7d-4e21-9a8f-2c5d1e7b3a40",
  "kind": "video",
  "model": "heygen/avatar-iv",
  "polling_url": "https://rprouter.ai/v1/jobs/6f1c2a9e-4b7d-4e21-9a8f-2c5d1e7b3a40",
  "status": "completed",
  "generation_id": "b0e4f7d2-91c3-4a6e-8d15-7f2a9c3e5b18",
  "created_at": 1794700000,
  "unsigned_urls": [
    "https://rprouter.ai/v1/jobs/6f1c2a9e-4b7d-4e21-9a8f-2c5d1e7b3a40/content?index=0"
  ],
  "urls": [
    "https://rprouter.ai/v1/media/6f1c2a9e-4b7d-4e21-9a8f-2c5d1e7b3a40.0.1794786400.9f2c…"
  ],
  "expires_at": 1794786400,
  "usage": {
    "cost": 0.4
  }
}