SoraOpenAI 的 API,调用此 API 以从文本生成视频。
目前还没有适用于 OpenAI 的 Sora API,但您仍然可以调用本 API 来查看文本转视频的示例。
POST https://www.soraopenapi.com/v1/video/generations
A text description of the desired video. The maximum length is 1000 characters.
The model to use for video generation.
The size of the generated video.
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"
}'
{
"data": [
{
"revised_prompt": "",
"url": "https://XXXXXX.mp4"
}
]
}