慧言API
  1. chatgpt绘图识图
慧言API
  • chatgpt对话
    • gpt-3.5-turbo
      POST
    • gpt-4o-mini
      POST
    • gpt-4o
      POST
    • chatgpt-4o-latest
      POST
    • o1-mini
      POST
    • o3-mini
      POST
    • deepseek-r1
      POST
    • 函数
      POST
    • embedding
      POST
  • chatgpt绘图识图
    • 绘图gpt-4o-image
      POST
    • 识图gpt-4o-image
      POST
    • gpt-4-turbo
      POST
    • gpt-4o
      POST
    • gpt-4o-mini
      POST
    • 绘图dalle3
      POST
  • claude-gemini
    • claude-3-7-sonnet-20250219
      POST
    • claude-3-5-sonnet-20241022
      POST
    • claude-3-5-sonnet-20240620
      POST
    • claude-3-opus-20240229
      POST
    • claude-3-haiku-20240307
      POST
    • gemini2
      POST
  • 逆向模型
    • 识图gpt-4-all
      POST
    • 绘图gpt-4-all
      POST
    • 逆向流式o1-mini-all
      POST
  • 绘图midjourney-proxy-plus
    • 任务提交
      • 文生图
      • 提交Describe任务
      • 提交Modal
      • 执行动作
      • 上传文件到discord
      • 提交Shorten任务
      • 提交Blend任务
    • 任务查询
      • 根据ID列表查询任务
      • 分页查询任务
      • 取消任务
      • 指定ID获取任务
      • 查询任务队列
      • 根据ID列表查询任务-字段displays
      • 获取任务图片的seed(需设置mj或niji的私信ID)
      • 查询所有任务
    • InsightFace任务提交
      • 提交swap_face任务
  • 音乐
    • suno音乐
    • 查询音乐
    • 上传音乐
  1. chatgpt绘图识图

绘图gpt-4o-image

开发中
POST
/v1/chat/completions

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Authorization
string 
可选
示例值:
Bearer {{apikey}}
Body 参数application/json
model
string 
必需
messages
array [object {2}] 
必需
role
string 
可选
content
string 
可选
stream
boolean 
必需
示例
{
  "model": "gpt-4o-image",
  "stream": true,
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "画一只小猫"
        }
      ]
    }
  ]
}

示例代码

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.huiyan-ai.cn/v1/chat/completions' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "gpt-4o-image",
  "stream": true,
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "画一只小猫"
        }
      ]
    }
  ]
  }'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
🟠404失败
修改于 2025-05-09 07:39:24
上一页
embedding
下一页
识图gpt-4o-image
Built with