Create Video (Sora Format)
An OpenAI Sora-compatible video generation endpoint whose path and parameter style align with the OpenAI Videos API — suited to existing OpenAI video integrations. See also Get video task status and Get video content. For the generic format, see Create video generation task.
Endpoint
POST /v1/videosSubmit as multipart/form-data.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | No | Model / style ID |
prompt | string | No | Text prompt |
image | string | No | Image input for image-to-video (URL or Base64) |
duration | number | No | Video duration (seconds) |
width / height | integer | No | Video width / height |
n | integer | No | Number to generate |
response_format | string | No | Response format |
Request example
bash
curl https://ai.youqi.tech/v1/videos \
-H "Authorization: Bearer sk-YOUR_API_KEY" \
-F model="sora-2" \
-F prompt="An astronaut stands up and walks away" \
-F duration=5Response example
json
{
"id": "video_abc123",
"object": "video",
"model": "sora-2",
"status": "in_progress",
"progress": 0,
"created_at": 1715367049,
"seconds": "5"
}