gptproto Api
  1. Claude
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
      • 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. Claude

chat mode(Support pdf analysis)

POST
/v1/chat/completions

Request

Header Params

Body Params application/json

Example
// Chat Example
{
  "model": "claude-3-7-sonnet-20250219",
  "messages": [
    {
      "role": "user",
      "content": "Who are you?"
    }
  ],
  "stream": false
}
// PDF analysis example:one
{
  "model": "claude-3-7-sonnet-20250219",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Summarize the contents of this document"
        },
        {
          "type": "file",
          "file": {
            "filename": "api-doc.pdf",
            "file_data": "https://www.bt.cn/data/api-doc.pdf"
          }
        }
      ]
    }
  ],
  "max_tokens": 1000,
  "stream": false
}
// PDF analysis example:two
{
  "model": "claude-3-7-sonnet-20250219",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Summarize the contents of this document"
        },
        {
          "type": "file_url",
          "file_url": {
            "url": "https://www.bt.cn/data/api-doc.pdf"
          }
        }
      ]
    }
  ],
  "max_tokens": 1000,
  "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 '// Chat Example
{
  "model": "claude-3-7-sonnet-20250219",
  "messages": [
    {
      "role": "user",
      "content": "Who are you?"
    }
  ],
  "stream": false
}
// PDF analysis example:one
{
  "model": "claude-3-7-sonnet-20250219",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Summarize the contents of this document"
        },
        {
          "type": "file",
          "file": {
            "filename": "api-doc.pdf",
            "file_data": "https://www.bt.cn/data/api-doc.pdf"
          }
        }
      ]
    }
  ],
  "max_tokens": 1000,
  "stream": false
}
// PDF analysis example:two
{
  "model": "claude-3-7-sonnet-20250219",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Summarize the contents of this document"
        },
        {
          "type": "file_url",
          "file_url": {
            "url": "https://www.bt.cn/data/api-doc.pdf"
          }
        }
      ]
    }
  ],
  "max_tokens": 1000,
  "stream": false
}'

Responses

🟢200Success
application/json
Body

Examples
{
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "I'm Claude, an AI assistant created by Anthropic to be helpful, harmless, and honest. I can help with a wide range of tasks including answering questions, generating creative content, providing information, and having thoughtful conversations. I don't have personal experiences or consciousness like humans do, but I'm designed to communicate in a helpful and conversational way. How can I assist you today?",
                "role": "assistant"
            }
        }
    ],
    "created": 1754385796,
    "id": "msg_01LeTZHmMsBECf4935HXPzAM",
    "model": "claude-3-7-sonnet-20250219",
    "object": "chat.completion",
    "usage": {
        "completion_tokens": 85,
        "prompt_tokens": 11,
        "total_tokens": 96
    }
}
Modified at 2025-08-05 09:28:47
Previous
speech
Next
Text to Video
Built with