Sora Open API

SoraOpenAI 的 API,调用此 API 以从文本生成视频。

目前还没有适用于 OpenAI 的 Sora API,但您仍然可以调用本 API 来查看文本转视频的示例。

API Reference

Request url

POST https://www.soraopenapi.com/v1/video/generations

Request body


prompt  string  Required

A text description of the desired video. The maximum length is 1000 characters.


model  string  Optional Defaults to sora-1.0-turbo

The model to use for video generation.


size  string  Optional Defaults to 1920X1080

The size of the generated video.

Example request


curl https://www.soraopenapi.com/v1/video/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
  "model": "sora-1.0-turbo",
  "prompt": "A cute baby sea otter",
  "size": "1920x1080"
}'
                    

Example response body

{
  "data": [
    {
      "revised_prompt": "",
      "url": "https://XXXXXX.mp4"
    }
  ]
}