Skip to content

openai sora video 视频模型

  • 2025.10.02 本站已经支持 openai sora v2 视频模型
  • 支持 dalle 格式/v1/images/generations 参考图 /v1/images/edits
  • 支持 chat 格式
  • 一张狗狗图片生成出来的效果下线视频
  • 计费:国庆活动按 500 积分/次

API

  • 约定 header 中含有 Authorization : Bearer hk-你的key

1. chat 格式

shell
curl 'https://api.open-hk.com/v1/chat/completions' \
  -H 'Authorization: Bearer hk-your-api-key' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
    "max_tokens": 8192,
    "model": "sora_video2",
    "temperature": 0.5,
    "top_p": 1,
    "presence_penalty": 0,
    "frequency_penalty": 0,
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "狗狗在草地上打滚"
                },
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "你的图片url"
                    }
                }
            ]
        }
    ],
    "stream": false
}'
curl 'https://api.open-hk.com/v1/chat/completions' \
  -H 'Authorization: Bearer hk-your-api-key' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
    "max_tokens": 8192,
    "model": "sora_video2",
    "temperature": 0.5,
    "top_p": 1,
    "presence_penalty": 0,
    "frequency_penalty": 0,
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "狗狗在草地上打滚"
                },
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "你的图片url"
                    }
                }
            ]
        }
    ],
    "stream": false
}'

2. dalle 格式

2.1 文生视频

shell
curl  https://api.openai-hk.com/v1/images/generations \
  -H 'Authorization: Bearer hk-替换为你的key' \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora_video2",
    "prompt": "狗狗在草地上打滚",
    "n": 1,
    "size": "720x720",
    "quality": "low"
  }'
curl  https://api.openai-hk.com/v1/images/generations \
  -H 'Authorization: Bearer hk-替换为你的key' \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora_video2",
    "prompt": "狗狗在草地上打滚",
    "n": 1,
    "size": "720x720",
    "quality": "low"
  }'

2.2 图生视频

shell
curl -X POST "https://api.openai-hk.com/v1/images/edits" \
  -H "Authorization: Bearer hk-替换为你的key" \
  -F "model=sora_video2" \
  -F "image[]=@body-lotion.png" \
  -F 'prompt=狗狗在草地上打滚'
curl -X POST "https://api.openai-hk.com/v1/images/edits" \
  -H "Authorization: Bearer hk-替换为你的key" \
  -F "model=sora_video2" \
  -F "image[]=@body-lotion.png" \
  -F 'prompt=狗狗在草地上打滚'