gptproto Api
  1. GPT-4o
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
          POST
        • chat image mode
          POST
      • 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
      • chat image mode
  • 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. GPT-4o

chat text mode

POST
/v1/chat/completions

Request

Header Params

Body Params application/json

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

Responses

🟢200Success
application/json
Body

Examples
{"id":"chatcmpl-89Drh2IbV3wfDr70IRWj14Lgt9yFc","object":"chat.completion","created":1721889370,"model":"gpt-4-gizmo","choices":[{"index":0,"message":{"role":"assistant","content":"Hello! I am an AI assistant, with the main function of generating images and providing information. My capabilities include:\n\n1. **Generating Images**: Generate images based on your description to help you achieve visual ideas.\n2. **Answering Questions**: Provide information on various topics, including science, history, and technology.\n3. **Writing Assistance**: Assist you in writing, providing suggestions, polishing text, or generating content.\n4. **Creative Inspiration**: Offer inspiration and suggestions for your creative projects, including art, design, and writing.\n\nIf you have any specific needs or questions, please let me know, and I will do my best to help you!"},"finish_reason":"stop"}],"usage":{"prompt_tokens":14,"completion_tokens":208,"total_tokens":222}}
Modified at 2025-07-09 06:11:39
Previous
Image Editing
Next
chat image mode
Built with