WolfAI API 接口文档
  1. chat格式
WolfAI API 接口文档
  • 文档介绍
  • 插件/软件使用教程
    • Claude Code 安装使用教程
    • Claude Code for VS Code 教程
    • Codex CLI 配置教程
    • Gemini CLI 配置使用教程
    • OpenCode 接入配置教程
    • N8N 工作流使用中转API 教程
    • CherryStudio调用cluade MCP
    • Cherry Studio配置教程
    • CherryStudio配置o4推理级别
    • dify添加模型
    • cline 配置教程
    • aider 配置教程
    • Cursor 配置教程
    • lobechat 设置教程
    • ChatBox(推荐使用)
    • 开源gpt_academic
    • nextchat 设置教程
    • zotero gpt 配置方法
    • CLAUDE DEV 配置教程
    • 沉浸式翻译 设置gpt翻译
    • 浏览器插件ChatGPT Sidebar
    • chatgpt-on-wechat 配置教程
    • chatgpt GPT Academic 学术优化配置gpt教程
  • 聊天(Chat)
    • OpenAI Chat 接口
      • ChatGPT聊天(Chat)
        • 聊天完成对象
        • 聊天完成块对象
        • 创建聊天补全 (流式)
        • 创建聊天补全 (非流)
        • 创建聊天识图 (流式)
        • 创建聊天识图 (流式) best64
        • 创建聊天识图 (非流)
        • 创建聊天创作图 (非流)
        • 官方Function calling调用
        • 官方N测试
        • 列出模型
        • 创建聊天函数调用
        • 创建结构化输出
        • 控制推理模型努力程度
        • 创建聊天补全 qwen-mt-turbo
        • 创建聊天补全 deepseek v3.1思考程度 (流式)
        • deepseek-ocr 识别
      • ChatGPT音频(Audio)
        • GPT-4o-audio
        • 音频转文字 whisper-1
        • 音频转文字 gpt-4o-transcribe
        • 创建语音 gpt-4o-mini-tts
        • 创建翻译 (不支持)
      • 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
        • 视频理解-url [原生格式] 开发中
        • Imagen 4 开发中
        • 音频理解
        • Embeddings
        • 文本生成 gemini-3-pro-preview:generateContent
      • chat兼容格式
        • gemini图片创作接口 [chat兼容格式]
        • 聊天接口 [chat兼容格式]
        • 聊天接口-思考1 [chat兼容格式]
        • 聊天接口-思考2 [chat兼容格式]
        • 识图接口 [chat兼容格式]
        • 聊天+读取文件接口 [chat兼容格式]
  • 聊天(Responses)
    • Responses API与Chat API对比
    • 创建模型响应
    • 创建函数调用
    • 创建模型响应(流式返回)
    • 创建模型响应 (控制思考长度)
    • 创建网络搜索
    • 创建模型响应 gpt-5启用思考
    • 创建函数调用 Copy
  • 绘画模型
    • README
    • 图像对象
    • Midjourney
      • 上传图片
      • 提交Imagine任务
      • 根据任务ID 查询任务状态
      • 根据ID列表查询任务
      • 获取任务图片的seed
      • 执行Action动作
      • 提交Blend任务
      • 提交Describe任务
      • 提交Modal
    • Ideogram
      • Generate 3.0(文生图)Generate
      • Generate 3.0(图片编辑)Edit
      • Generate 3.0(图片重制)Remix
      • Generate 3.0(图片重构)Reframe
      • Generate 3.0(替换背景) Replace Background
      • ideogram(文生图)
      • Remix(混合图)
      • Upscale(放大高清)
      • Describe(描述)
    • GPT Image 系列
      • 创建 gpt-image-1
      • 编辑 gpt-image-1
      • 蒙版 gpt-image-1
      • 创建 gpt-image-1.5
      • 编辑 gpt-image-1.5
      • 蒙版 gpt-image-1.5
    • 即梦绘画
      • 创建绘画
      • 编辑图片
    • DALL·E 3
      • 创建 DALL·E 3
    • FLUX 系列
      • gpt 兼容格式
        • Flux 创建(OpenAI dall-e-3格式)
        • Flux编辑(OpenAI dall-e-3格式)
      • Replicate 官方格式
        • Flux 分辨率
        • 接入教程
        • 创建任务 black-forest-labs/flux-kontext-dev
        • 查询任务
    • 豆包系列
      • doubao-seedream-3-0-t2i-250415
      • doubao-seededit-3-0-i2i-250628
      • doubao-seedream-4-0-250828-文生图
      • doubao-seedream-4-0-250828-图生图
      • doubao-seedream-4-0-250828-多图生图
      • doubao-seedream-4-5-251128 文生图(纯文本输入单图输出)
      • doubao-seedream-4-5-251128 图文生图(单图输入单图输出)
      • doubao-seedream-4-5-251128 多图融合(多图输入单图输出)
      • doubao-seedream-4-5-251128 组图输出(多图输出)
      • doubao-seedream-4-5-251128 单张图生组图
      • doubao-seedream-4-5-251128 多参考图生组图
    • Fal.ai平台
      • 状态码
      • 获取请求结果
      • /fal-ai/nano-banana 文生图
      • /fal-ai/nano-banana/edit 图片编辑
    • 千问 Qwen-Image 系列
      • qwen-image-edit-2509
  • 视频模型
    • veo 视频生成
      • 视频统一格式
        • 状态码
        • 创建视频
        • 创建视频,带图片
        • 查询任务
        • 创建视频(参考图)
      • OpenAI 视频格式
        • openai 创建视频,带图片
        • openai 查询任务
        • openai 下载视频
    • luma 视频生成
      • 官方API格式
        • 状态码
        • 提交生成视频任务
        • 扩展视频
      • 查询任务
        • 查询单个任务
        • 批量获取任务
    • Runway 视频生成
      • 状态码
      • 提交视频生成任务
      • 查询视频任务(免费)
    • 即梦 视频生成
      • 状态码
      • 视频统一格式
        • 创建视频
        • 查询任务
      • 官方格式
        • 添加中
      • 提交视频生成任务
      • 查询视频任务(免费)
    • 海螺 视频生成
      • 状态码
      • 提交视频生成任务
      • 视频任务状态查询
      • 图生视频
      • 首尾帧视频
    • 豆包 视频生成
      • 文生视频示例
      • 图生视频-首帧
      • seedance-lite-首尾帧
      • 图生视频-base64编码
      • seedance-lite-参考图
      • 查询单个任务
      • 查询视频生成任务列表-默认
      • 查询视频生成任务列表-搜索多个任务 ID
    • sora 视频生成
      • 统一视频格式
        • 查询任务
        • 创建视频,带图片 sora-2
        • 创建视频 sora-2
        • 创建视频 sora-2-pro
        • 创建视频 (带 Character)
      • chat格式
        • 创建视频
          POST
        • 创建视频, 带图片
          POST
        • 连续修改生成视频
          POST
      • OpenAI官方视频格式
        • openai 查询任务
        • openai 下载视频
        • openai 创建视频,带图片
        • 使用故事板创建视频
        • openai 创建视频,带图片 私有模式
        • openai 创建视频(带Character)
        • openai 编辑视频
      • 创建角色
        POST
    • grok 视频生成
      • 视频统一格式
        • 创建视频
        • 查询任务
    • 通义万象 视频生成
      • 生成视频
      • 视频查询
  • GPTs 相关
    • 简介
    • GPTs对话
  • 系统API
    • 获取令牌列表
    • 新增令牌
    • 获取令牌支持模型
    • 获取账号信息
    • 修改令牌
    • 搜索令牌
    • 删除令牌
  1. chat格式

创建视频

POST
https://wolfai.top/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://wolfai.top/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-12-21 05:46:36
上一页
创建视频 (带 Character)
下一页
创建视频, 带图片
Built with