1. Gemini
AI 果果
  • AI果果
    • 关于AI果果
    • 错误消息
    • OpenAI
      • Billing
      • Usage
      • Chat
      • Vision
      • Dall-e
      • Speech
    • Gemini
      • Models
        GET
      • Billing
        GET
      • Usage
        GET
      • Chat
        POST
      • Vision-image
        POST
      • Vision-video
        POST
      • Images-Generations
        POST
      • Images-Edits
        POST
      • Image-Chat-Edits
        POST
    • Models
      • List Models
        • Models - OpenAI Format
        • Models - Gemini Format
    • Chat
    • Music
      • Suno Music
  1. Gemini

Chat

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

请求参数

Header 参数

Body 参数application/json

示例
{
    "model": "gemini-2.0-flash-exp",
    "messages": [
        {
            "role": "user",
            "content": "Who are u"
        }
    ]
}

请求示例代码

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.aichat199.com/v1/chat/completions' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-2.0-flash-exp",
    "messages": [
        {
            "role": "user",
            "content": "Who are u"
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{}
修改于 2026-02-03 15:11:17
上一页
Usage
下一页
Vision-image
Built with