Skip to content

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/videos

Submit as multipart/form-data.

Request parameters

ParameterTypeRequiredDescription
modelstringNoModel / style ID
promptstringNoText prompt
imagestringNoImage input for image-to-video (URL or Base64)
durationnumberNoVideo duration (seconds)
width / heightintegerNoVideo width / height
nintegerNoNumber to generate
response_formatstringNoResponse 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=5

Response example

json
{
  "id": "video_abc123",
  "object": "video",
  "model": "sora-2",
  "status": "in_progress",
  "progress": 0,
  "created_at": 1715367049,
  "seconds": "5"
}