AllAll.AI
  1. chat格式
AllAll.AI
  • 介绍
  • 项目说明
  • 发出请求
  • Chat模型
    • ChatGpt 接口
      • ChatGPT音频(Audio)
        • GPT-4o-audio
        • 音频转文字 whisper-1
        • 创建语音
        • 创建翻译 (不支持)
      • ChatGPT聊天(Chat)
        • 创建聊天补全 (流式)
        • 创建聊天补全 (非流)
        • 创建聊天识图 (流式)
        • 创建聊天识图 (流式) best64
        • 创建聊天识图 (非流)
        • 创建聊天创作图 (非流)
        • 官方Function calling调用
        • 官方N测试
        • 列出模型
        • 创建聊天函数调用 (只能非流)
        • 创建结构化输出
        • 控制推理模型努力程度
        • 新请求格式 (开发中)
      • ChatGPT自动补全(Completions)
        • 创建完成
      • ChatGPT嵌入(Embeddings)
        • 创建嵌入
      • ChatGPT绘画
        • 创建
        • 编辑
      • Web 搜索
        • web搜索
    • Anthropic Claude 接口
      • 创建聊天补全 (流式) [原生格式]
      • 创建聊天补全 (流式)
      • 创建聊天补全 (非流)
      • 创建聊天识图 (流式)
      • 创建聊天识图 (非流)
    • 谷歌Gemini
      • 聊天接口 [原生格式]
      • 图片创作[原生格式]
      • 图片编辑 [原生格式]
      • Imagen 3 生成图片 [原生格式] 开发中
      • 视频理解
      • gemini图片创作接口 [chat兼容格式]
      • 聊天接口 [chat兼容格式]
      • 识图接口 [chat兼容格式]
      • 聊天+读取文件接口 [chat兼容格式]
      • 聊天+URL内容 [chat兼容格式]
  • 绘画模型
    • Midjourney
      • 上传图片
      • 提交Imagine任务
      • 根据任务ID 查询任务状态
      • 根据ID列表查询任务
      • 获取任务图片的seed
      • 执行Action动作
      • 提交Blend任务
      • 提交Describe任务
      • 提交Shorten任务
      • 提交Modal
      • 提交swap_face任务
    • 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(描述)
    • 豆包系列
      • doubao-seedream-4-0-250828-图生图
      • doubao-seedream-4-0-250828-文生图
      • doubao-seedream-4-0-250828-多图生图
    • FLUX 系列
      • Flux 创建(OpenAI dall-e-3格式)
      • Flux编辑(OpenAI dall-e-3格式)
    • 即梦绘画
      • 创建绘画
      • 编辑图片
    • 千问Qwen-Image 系列
      • qwen-image-edit-2509
    • 创建 DALL·E 3
    • Stable-Diffusion
    • ideogram
  • 视频模型
    • veo
      • 创建视频
      • 查询任务
    • sora
      • 官方视频格式
        • 创建视频
        • 查询任务
      • chat格式
        • 创建视频
          POST
      • 创建角色
        POST
    • 通义万象
      • 生成视频
      • 视频查询
  • 音频模型
    • MINIMAX
      • 同步语音合成
  • GPTs 相关
    • gpt-4-all(分析图片)
    • gpt-4-all(生成图片)
    • GPTs对话
  • 文生音乐 Suno
    • 任务提交
      • 生成歌曲(灵感模式)
      • 生成歌曲(自定义模式)
      • 生成歌曲(续写模式)
      • 生成歌曲(歌手风格)
      • 生成歌曲(上传歌曲二次创作)
      • 生成歌曲(拼接歌曲)
      • 生成歌词
      • 歌曲拼接
    • 查询接口
      • 批量获取任务
      • 查询单个任务
  • 系统API
    • 查询余额
    • 获取账号信息
  1. chat格式

创建视频

POST
/v1/chat/completions
给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成

请求参数

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 '/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
    }
}
上一页
查询任务
下一页
创建角色
Built with