new.suxi教程
  1. chat格式
  • 渠道参考
  • 新手导航
    • 初次使用中转站--必读
    • 分组的特殊性及价格差异
    • 如何新建指定分组的令牌
    • 联系客服
    • 香蕉作图创作平台
    • 发出请求
  • ♥第三方工具使用帮助
    • claude code安装使用教程
    • 酒馆教程
    • Codex 配置教程
    • OpenClaw Clawdbot 自定义中转站配置教程
    • N8N 工作流使用中转API 教程
    • opencode 配置教程
    • Gemini CLI 中转站配置使用教程
    • Claude Code 安装使用教程
    • Cherry Studio配置教程
    • Cherry Studio配置 画图非流输出,4K和分辨率教程
    • CherryStudio调用cluade MCP
    • CherryStudio配置o4推理级别
    • 扣子工作流简单配置从输入到获取url
    • dify添加模型
    • cline 配置教程
    • aider 配置教程
    • lobechat 设置教程
    • ChatBox(推荐使用)
    • 开源gpt_academic
    • nextchat 设置教程
    • zotero gpt 配置方法
    • CLAUDE DEV 配置教程
    • 沉浸式翻译 设置gpt翻译
    • 浏览器插件ChatGPT Sidebar
    • chatgpt-on-wechat 配置教程
    • chatgpt GPT Academic 学术优化配置gpt教程
    • RikkaHub 配置教程
    • coze 工作流使用中转API 教程
    • n8n 工作流获取本地图片生成视频例子
    • OpenClaw 最新版本 自定义中转站配置教程
    • OpenClaw配合CC switch自定义中转站配置教程
  • 视频模型
    • sora 视频生成
      • 统一视频格式
        • 查询任务
        • 创建视频,带图片 sora-2
        • 创建视频 sora-2
        • 创建视频 (带 Character)
      • chat格式
        • 创建视频
          POST
        • 创建视频, 带图片
          POST
        • 连续修改生成视频
          POST
      • OpenAI官方视频格式
        • 创建视频 带图片
        • openai 创建视频,带图片
        • 使用故事板创建视频
        • openai 创建视频,带图片 私有模式
        • openai 创建视频(带Character)
        • openai 编辑视频
        • openai 下载视频
        • openai 查询任务
  • 绘画模型
    • README
    • 图像对象
    • GPT Image 系列
      • 创建gpt-image-2
      • 创建gpt-image-2-chat方式
      • 编辑gpt-image-2
      • 创建gpt-image-2-vip
      • 编辑gpt-imge-2-vip表单格式
      • 创建 gpt-image-1
      • 编辑 gpt-image-1
      • 蒙版 gpt-image-1
      • 创建 gpt-image-1.5
      • 编辑 gpt-image-1.5
      • 蒙版 gpt-image-1.5
    • Grok Image 系列
      • 创建 Image
      • 编辑 image
    • 香蕉画图
      • Gemini原生格式作图
      • Openai格式作图
      • Openai格式图片编辑
      • Gemini格式图片编辑
  • 聊天(Chat)
    • ChatGPT聊天(Chat)
      • 聊天完成对象
      • 聊天完成块对象
      • 创建聊天补全 (流式)
      • 创建聊天补全 (非流)
      • 创建聊天识图 (流式)
      • 创建聊天识图 (流式) best64
      • 创建聊天识图 (非流)
      • 创建聊天创作图 (非流)
      • 官方N测试
      • 列出模型
      • 创建聊天函数调用
      • 创建结构化输出
      • 控制推理模型努力程度
      • 创建聊天补全 qwen-mt-turbo
      • 创建聊天补全 deepseek v3.1思考程度 (流式)
      • deepseek-ocr 识别
  • 聊天(Responses)
    • Responses API与Chat API对比
    • 创建模型响应
    • 创建函数调用
    • 创建模型响应(流式返回)
    • 创建模型响应 (控制思考长度)
    • 创建网络搜索
    • 创建模型响应 gpt-5启用思考
    • 创建函数调用 Copy
  • Anthropic Claude 接口
    • 聊天完成对象
    • 聊天完成块对象
    • 原生格式
      • 创建聊天补全 (流式)
      • 创建函数调用 (流式)
      • 创建格式化输出
      • 创建思考聊天
      • PDF支持
      • PDF支持 base64格式
      • 联网搜索
    • chat兼容格式
    • 创建思考聊天
    • 创建聊天补全 (流式)
    • 创建聊天补全 (非流)
    • 创建聊天识图 (流式)
    • 创建聊天识图 (非流)
  • 帮助中心
    • AI返回字段: 思考相关
    • HTTP状态码及其含义
    • 上传图片到图床
  1. chat格式

创建视频

POST
https://new.suxi.ai/v1/chat/completions
给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成
官方文档:https://platform.openai.com/docs/api-reference/chat/create

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数

Body 参数application/json

示例
{
  "model": "sora-2",
  "max_tokens": 1000,
  "messages": [
    {
      "role": "user",
      "content": "an astronaut golden retriever named Sora levitates around an intergalactic pup-themed space station with a tiny jet back that propels him. gorgeous specular lighting and comets fly through the sky, retro-future astro-themed music plays in the background. light glimmers off the dog's eyes. the dog initially propels towards the space station with the doors opening to let him in. the shot then changes. now inside the space station, many tennis balls are flying around in zero gravity. the dog's astronaut helmet opens up so he can grab one. 35mm film, the intricate details and texturing of the dog's hair are clearly visible and the light of the comets shimmers off the fur."
    }
  ],
  "stream": true
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://new.suxi.ai/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "model": "sora-2",
  "max_tokens": 1000,
  "messages": [
    {
      "role": "user",
      "content": "an astronaut golden retriever named Sora levitates around an intergalactic pup-themed space station with a tiny jet back that propels him. gorgeous specular lighting and comets fly through the sky, retro-future astro-themed music plays in the background. light glimmers off the dog'\''s eyes. the dog initially propels towards the space station with the doors opening to let him in. the shot then changes. now inside the space station, many tennis balls are flying around in zero gravity. the dog'\''s astronaut helmet opens up so he can grab one. 35mm film, the intricate details and texturing of the dog'\''s hair are clearly visible and the light of the comets shimmers off the fur."
    }
  ],
  "stream": true
}'

返回响应

🟢200OK
application/json
Bodyapplication/json

示例
{
    "id": "chatcmpl-123",
    "object": "chat.completion",
    "created": 1677652288,
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "\n\nHello there, how may I assist you today?"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 9,
        "completion_tokens": 12,
        "total_tokens": 21
    }
}
修改于 2026-03-14 19:15:16
上一页
创建视频 (带 Character)
下一页
创建视频, 带图片
Built with