refresh-gpt-chat
    refresh-gpt-chat
    • 🦊 【开始】了解 refresh-gpt-chat !
    • 🦄 【基础】教你部署refresh-gpt-chat
    • ⭐【基础】教你使用refresh-gpt-chat
    • 自定义Chat接口
      POST
    • 自定义edits接口
      POST
    • 自定义Image接口
      POST
    • 自定义Speech接口
      POST
    • 自定义Transcriptions接口
      POST
    • 获取ChatGPT-Account-ID
      POST

      自定义Chat接口

      POST
      /v1/chat/completions

      请求参数

      Header 参数
      Authorization
      string 
      必需
      示例值:
      Bearer refresh_token,requrest_url,ChatGPT-Account-ID
      Body 参数text/plain
      示例
      示例值:{ "stream":false, "model":"gpt-4-mobile", "messages": [{"role": "user", "content": "画个帅哥"}] }

      示例代码

      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 'Authorization: Bearer refresh_token,requrest_url,ChatGPT-Account-ID' \
      --header 'Content-Type: text/plain' \
      --data-raw '{
          "stream":false,
          "model":"gpt-4-mobile",
          "messages": [{"role": "user", "content": "画个帅哥"}]
      }'

      返回响应

      🟢200成功
      application/json
      Body
      object {0}
      示例
      {}
      上一页
      ⭐【基础】教你使用refresh-gpt-chat
      下一页
      自定义edits接口
      Built with