OpenAI-compatible video generation.
Create a video generation task via the OpenAI-compatible `/v1/videos` endpoint, for compatible providers such as PixVerse, Veo, and Seedance.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/videos" \ -H "Content-Type: application/json" \ -d '{ "model": "pixverse-v4.5", "prompt": "Neon signs slowly light up in a city night scene", "duration": 5, "aspect_ratio": "16:9" }'{
"id": "task_123456",
"task_id": "task_123456",
"object": "video.generation",
"status": "succeeded",
"model": "string",
"created_at": 0,
"updated_at": 0,
"url": "http://example.com",
"content_url": "http://example.com",
"output": [
{}
],
"error": {}
}{
"error": {
"code": "string",
"message": "string",
"request_id": "string"
}
}Kling text-to-video.
Generate video from a text description using the Kling model. Supported models: kling-v1, kling-v1-5, etc.
Create a video generation task.
Create a video generation task. This generic endpoint covers `/v1/video/generations` providers such as HappyHorse, Seedance, Veo, and Wanxiang.