AI Guo Guo
  1. OpenAI
AI Guo Guo
  • AIGuoGuo
    • About AIGuoGuo
    • Error Msg
    • OpenAI
      • Models
        GET
      • Billing
        GET
      • Usage
        GET
      • Chat
        POST
      • Vision
        POST
      • Dall-e
        POST
      • Speech
        POST
    • Gemini
      • Models
      • Billing
      • Usage
      • Chat
      • Vision-image
      • Vision-video
      • Images-Generations
      • Images-Edits
      • Image-Chat-Edits
    • LLM
      • KlingAI
        • Images
        • Video
      • GetThreadsInfo
  1. OpenAI

Chat

POST
https://api.aiguoguo199.com/v1/chat/completions

Request

Header Params

Body Params application/json

Example
{
    "model": "gpt-4o-mini",
    "messages": [
        {
            "role": "system",
            "content": "You are a helpful assistant."
        },
        {
            "role": "user",
            "content": "Hi"
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aiguoguo199.com/v1/chat/completions' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gpt-4o-mini",
    "messages": [
        {
            "role": "system",
            "content": "You are a helpful assistant."
        },
        {
            "role": "user",
            "content": "Hi"
        }
    ]
}'

Responses

🟢200成功
application/json
Body

Example
{}
Modified at 2024-08-25 17:04:20
Previous
Usage
Next
Vision
Built with