一步API中文文档
  1. ChatGPT音频(Audio)
一步API中文文档
  • 01_人工客服
  • 02_一步API福利群
  • 03_一步镜像站-福利群
  • 04_购买地址
  • 05_base_url说明
  • 06_API key的获取和使用
  • 07_支持的模型与在线查询
  • 08_API Key余额查询
  • 聊天(Chat)
    • ChatGpt 接口
      • ChatGPT音频(Audio)
        • 创建视频
          POST
        • 音频转文字 whisper-1
          POST
        • 音频转文字 gpt-4o-transcribe
          POST
        • 创建语音 gpt-4o-mini-tts
          POST
        • 创建翻译 (不支持)
          POST
      • ChatGPT聊天(Chat)
        • 创建视频, 带图片
        • 连续修改生成视频
        • 获取令牌支持模型
        • 创建聊天识图 (流式)
        • 创建聊天识图 (流式) best64
        • 创建聊天识图 (非流)
        • 创建聊天创作图 (非流)
        • 官方Function calling调用
        • 官方N测试
        • 创建聊天函数调用
        • 创建结构化输出
        • 控制推理模型努力程度
        • 创建聊天补全 qwen-mt-turbo
        • 创建聊天补全 deepseek v3.1思考程度 (流式)
        • deepseek-ocr 识别
      • ChatGPT自动补全(Completions)
        • 创建完成
      • ChatGPT嵌入(Embeddings)
        • 创建嵌入
      • Web 搜索
        • web搜索
    • Anthropic Claude 接口
      • 创建聊天补全 (流式) [原生格式]
      • 创建函数调用 (流式) [原生格式]
      • 创建思考聊天 [原生格式]
      • 创建思考聊天
      • 创建聊天补全 (流式)
      • 创建聊天补全 (非流)
      • 创建聊天识图 (流式)
      • 创建聊天识图 (非流)
      • PDF支持 [原生格式]
      • PDF支持 [原生格式] base64格式
    • 谷歌Gemini 接口
      • 原生格式
        • 文本生成
        • 文本生成-流
        • 文本生成+思考-流
        • 图片生成
        • 图片生成 gemini-2.5-flash-image
        • 图片生成 gemini-2.5-flash-image 控制宽高比
        • 图片生成 gemini-3-pro-image-preview 控制宽高比 +清晰度
        • 图片编辑
        • 图片理解
        • 格式化输出
        • 函数调用
        • 文档理解
        • URL context [原生格式]
        • 代码执行
        • google search
        • 视频理解
        • URL context
        • 音频理解
        • Embeddings
  • 聊天(Responses)
    • 创建模型响应
      POST
    • 创建函数调用
      POST
    • 创建模型响应(流式返回)
      POST
    • 创建模型响应 (控制思考长度)
      POST
    • 创建网络搜索
      POST
    • 创建模型响应 gpt-5启用思考
      POST
  • 绘画模型
    • DALL·E 3
      • 创建 DALL·E 3
    • FLUX 系列
      • gpt 兼容格式
        • Flux 创建(OpenAI dall-e-3格式)
        • Flux编辑(OpenAI dall-e-3格式)
      • Replicate 官方格式
        • 创建任务 black-forest-labs/flux-kontext-dev
        • 查询任务
    • 豆包系列
      • doubao-seedream-4-0-250828-文生图
      • doubao-seedream-4-0-250828-图生图
      • doubao-seedream-4-0-250828-多图生图
  • 视频模型
    • veo 视频生成
      • OpenAI 视频格式
        • openai 创建视频,带图片
    • sora 视频生成
      • chat格式
        • 创建视频
        • 创建视频, 带图片
        • 连续修改生成视频
  • 音频(Audio)
    • TTS文本转语音
    • ASR语音转文本
  • 常用工具配置教程
    • 01 Chatbox 配置一步API
    • 02 PyCharm 配置一步API
    • 03 Cursor 配置一步API
    • 04 Trae AI 配置一步API
    • 05 CherryStudio 配置一步API
    • 06 Dify 配置一步API
    • 07 AingDesk 配置一步API
    • 08 VS Code 配置一步API
    • 09 IntelliJ IDEA 配置一步API
    • 10 immersivetranslate 沉浸式翻译配置一步API
    • 11 Zed 配置一步API
    • 12 DeepChat 配置一步API
    • 13 Void 配置一步API
    • 14 LibreChat 配置一步API
    • 15 Sider 配置一步API
    • 16 NextChat 配置一步API
    • 17 ChatWise 配置一步API
    • 18 Glarity 配置一步API
    • 19 Tavo 配置一步API
    • 20 OMate Chat 配置一步API
    • 21 Claude Code 配置一步API
    • 22 91写作配置
  • 示例代码
    • python
      • 01 OpenAI-Python示例代码
      • 02 Claude-Python示例代码
      • 03 OpenAI-image-Python示例代码
      • 04 Gemini-Python示例代码
      • 05 Gemini多场景-Python代码示例
      • 06 Rerank-python示例代码
      • 07 Python分析文件代码示例
      • 08 whisper-1-Python实力代码
      • 09 dalle-3-Python示例代码
      • 10 doubao-Python示例代码
      • 11 gemini-image-Python示例代码
      • 12 gpt-image-1-Python示例代码
      • 13 sora-2-Python代码示例
      • 14_Pro/BAAI/bge-reranker-v2-m3-Python示例代码
      • 15 Gemini3 多轮工具调用示例
      • 16 Gemini image控制宽高比+清晰度代码示例
      • 17 Python其他示例
    • Java
      • 01 OpenAI-Java示例代码
      • 02 Claude-Java示例代码
      • 03 Gemini多场景-Java代码示例
  • 接口格式
    • Anthropic 对话格式(Messages)
    • Cohere 重排序格式(Rerank)
    • Deepseek reasoning 对话格式(类Chat Completions)
    • Jina AI 重排序格式(Rerank)
    • Midjourney 图像格式(Midjourney Proxy/Midjourney Proxy Plus)
    • OpenAI 音频格式
    • OpenAI 对话格式(Chat Completions)
    • OpenAI 嵌入格式(Embeddings)
    • OpenAI 图像格式(Image)
    • OpenAI 实时对话接口
    • OpenAI 响应格式(Responses)
    • Suno 音乐格式(Music)
    • Xinference 重排序格式(Rerank)
  1. ChatGPT音频(Audio)

创建视频

POST
/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 --request POST 'https://yibuapi.com/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "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
Body

示例
{
    "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
    }
}
修改于 2025-11-26 07:47:32
上一页
08_API Key余额查询
下一页
音频转文字 whisper-1
Built with