Query Status and Download the Video (OpenAI-Compatible / Sora Format)

Endpoint

  • Query: GET /v1/videos/{task_id}
  • Download: GET /v1/videos/{task_id}/content

Request Examples

Poll the task status:

cURL
Python
Node.js
curl https://api-model.shuntianchuang.cn/v1/videos/video_xxxxxxxx \
  -H "Authorization: Bearer sk-your-token"

Response Body

statusNotes
queuedQueued
in_progressGenerating, may carry a progress percentage
completedCompleted
failedFailed (not billed or refunded — check the usage logs)

Download the Video

Once the task completes, download the video file from the content endpoint with your token:

curl https://api-model.shuntianchuang.cn/v1/videos/video_xxxxxxxx/content \
  -H "Authorization: Bearer sk-your-token" \
  -o video.mp4
NOTE

Supported parameters (duration, resolution, first/last frame, etc.) differ across video models — defer to the model details on the Model Plaza and actual responses.