gptproto Api
  1. Gemini Series
gptproto Api
  • OpenAI
    • GPT 4o image
      • chat format
        • chat mode
      • image/generations
        • Create Image
        • Image Editing
    • Our GPT models(GPT Series)
      • GPT-4o
        • chat text mode
        • chat image mode
      • GPT-4.1
        • responses mode
    • Our reasoning models (O Series)
      • responses mode
    • audio
      • transcriptions
      • speech
  • Claude
    • chat mode(Support pdf analysis)
      POST
  • Gemini
    • veo3 Video
      • chat Format
        • Text to Video
        • Image to Video
      • Asyn mode(16:9)
        • Create Video
        • Get Task Status
      • Asyn mode(9:16)
        • Create Video
        • Get Task Status
    • Gemini Series
      • chat text mode
        POST
      • chat image mode
        POST
  • Grok
    • chat text mode(Support for grok4)
      POST
  • Midjourney
    • Task Query
      • ListByCondition
      • FetchFromTask
    • Task Submission
      • Blend
      • SwapFace
      • Describe
      • Imagine
      • Modal
      • Action
      • Change
  • Suno
    • All APIs
      • Music Generation(generations)
      • 查询任务(feed)
      • Generate Lyrics
      • Query Lyrics
    • Scene 1 Generate Custom Music(with Lyrics)
      • Music Generation(generations)
    • Scene 2 Generate Music Directly Through Prompt(with Lyrics)
      • Music Generation(generations)
    • Scenario 3: Generate Custom Music (Pure Music)
      • Music Generation (generations)
    • Scenario 4: Generate music directly through prompt (pure music)
      • Music Generation (generations)
    • Scenario 5: Upload Custom Audio and Continue
      • Convert Music Link to Suno (Upload)
      • Music Generation (generations)
    • Scenario 6: Continue Writing Music and Get Complete Music
      • Step 1: Music Generation
      • Step 3: Extend Music
      • Step 5: Get Complete Music
    • Scenario 7: Cover Music (Music Version, Modify Style)
      • Step 1: Music Generation
      • Step 3: Cover Music
  • Kling
    • Kling(Official Format)
      • Image Generation
      • text to video
      • Image to Video
      • Query Task
  • Runway
    • Official Format
      • Act-two Emotion Migration
      • Act-one Emotion Migration
      • generate Generate Task
      • video2video(Video to Video, Style Re-drawing)
      • Submit Video Generation Task
      • Query Task
  • Ideogram
    • Official Format
      • Edit 3.0(edit)
      • Remix 3.0(remix)
      • Replace Background 3.0(replace-background)
      • Generate 3.0(generate)
  • Flux
    • Flux Chat Format
      • Chat Format
    • Flux Image Format
      • ImageGenerate
  • Doubao
    • chat text mode
    • chat image mode
    • seededit-3.0
    • seedream-3.0
    • seedance-1.0
  • higgsfield
    • query action template
    • generate video
    • query task
  1. Gemini Series

chat text mode

POST
/v1/chat/completions

Request

Body Params application/json

Examples
{
    "model": "gemini-2.5-pro",
    "messages": [
        {
            "role": "user",
            "content": "Who are you?"
        }
    ],
    "stream": false
}

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
curl --location --request POST 'https://gptproto.com/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-2.5-pro",
    "messages": [
        {
            "role": "user",
            "content": "Who are you?"
        }
    ],
    "stream": false
}'

Responses

🟢200Success
application/json
Body

Examples
{
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "I am a large language model, trained by Google.",
                "role": "assistant"
            }
        }
    ],
    "created": 1753694313,
    "id": "chatcmpl-20250728171822813680257spEbwm3W",
    "model": "gemini-2.5-pro",
    "object": "chat.completion",
    "usage": {
        "completion_tokens": 946,
        "prompt_tokens": 4,
        "total_tokens": 950
    }
}
Modified at 2025-08-13 03:00:06
Previous
Get Task Status
Next
chat image mode
Built with