创建视频任务(异步)
异步。本端点提交任务后立刻返回,不阻塞到视频渲染完成。用 GET /v1/videos/{id} 轮询状态,完成后从 GET /v1/videos/{id}/content 取产物。
计费发生在任务成功完成时。失败任务不计费。
Authorization
bearerAuth Authorization: Bearer <your RouteMux API key>.
Create keys at https://routemux.com/console/keys. New keys use the sk- prefix;
the legacy rmx_live_ prefix is still accepted.
The Anthropic SDK's x-api-key and the Google SDK's x-goog-api-key are accepted too.
Sending several key headers with different values returns 400 AMBIGUOUS_API_KEY.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request and response bodies match the upstream provider's official format verbatim —
RouteMux passes them through untouched. See the provider's own docs for field definitions;
the gateway itself only reads model and stream.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/videos" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/sora-2", "prompt": "A drone shot over a coastline" }'{ "model": "string", "stream": true}