AI Vtuber
  1. LLM
AI Vtuber
  • TTS
    • GPT-SOVITS
      • V4 TTS合成
    • fish speech在线web调用
    • meloTTS (Ikaros API)
      POST
    • CosyVoice V2 (刘悦 API)
      POST
  • HTTP中转站
    • get_list http中转站
      POST
    • add http中转站
      POST
    • clear http中转站
      POST
  • LLM
    • dify 对话型应用API
      POST
    • Ollama对话
      POST
    • Dify 工作流
      POST
    • OpenAI接口 chat/completions
      POST
    • OpenAI接口 chat/completions Copy
      POST
  • 字幕打印机
    • 未命名接口
      GET
  • 虚拟身体(数字人)
    • 数字人视频播放器
      • show 播放视频
      • stop_current_video 停止当前视频,跳转下一个
      • get_non_default_video_count 获取非默认待播放视频个数
      • 设置配置
      • 删除指定索引的视频
      • 获取视频队列
    • live2d-TTS-LLM-GPT-SoVITS-Vtuber
      • ws接口数据下发
    • LiveTalking
      • is_speaking
      • 复读内容
  • 平台
    • UniBarrage
      • 未命名接口
    • 让弹幕飞
      • ws连接
  • 设置配置 set_config
    POST
  • 系统命令 sys_cmd
    POST
  • 发送数据 send
    POST
  • 数据回调 callback接口
    POST
  • 获取系统信息 get_sys_info
    GET
  • 文本转语音 tts
    POST
  • 大语言模型对话 llm
    POST
  1. LLM

OpenAI接口 chat/completions Copy

开发中
POST
https://api.openai.com/v1/chat/completions

请求参数

Header 参数
Authorization
string 
可选
示例值:
Bearer sk-
Content-Type
string 
可选
示例值:
application/json
Body 参数application/json
model
string 
必需
messages
array [object {2}] 
必需
role
string 
必需
content
string 
必需
示例
{
  "model": "gpt-4o",
  "messages": [
    {
      "role": "developer",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "Write a haiku about recursion in programming."
    }
  ]
}

示例代码

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://api.openai.com/v1/chat/completions' \
--header 'Authorization: Bearer sk-' \
--header 'Content-Type: application/json' \
--data-raw '{
        "model": "gpt-4o",
        "messages": [
            {
                "role": "developer",
                "content": "You are a helpful assistant."
            },
            {
                "role": "user",
                "content": "Write a haiku about recursion in programming."
            }
        ]
    }'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
上一页
OpenAI接口 chat/completions
下一页
未命名接口
Built with