gptproto Api
  1. Doubao
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
      POST
    • chat image mode
      POST
    • seededit-3.0
      POST
    • seedream-3.0
      POST
    • seedance-1.0
      POST
  • higgsfield
    • query action template
    • generate video
    • query task
  1. Doubao

chat image mode

POST
/v1/chat/completions

Request

Header Params

Body Params application/json

Example
{
  "model": "doubao-1-5-vision-pro-32k-250115",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Doubao,What is in this image?"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
          }
        }
      ]
    }
  ],
  "max_tokens": 5000
}

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": "doubao-1-5-vision-pro-32k-250115",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Doubao,What is in this image?"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
          }
        }
      ]
    }
  ],
  "max_tokens": 5000
}'

Responses

🟢200成功
application/json
Body

Example
{
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "logprobs": null,
            "message": {
                "content": "This image showcases a serene natural landscape. The main feature is a wooden boardwalk that stretches from the bottom - center of the image into the distance, guiding the viewer's eye towards the horizon. The boardwalk is surrounded by lush, tall green grass, indicative of a meadow or marshland environment.\n\nIn the background, there is a mix of green trees and shrubs, adding to the sense of a rich, natural habitat. The sky above is a brilliant blue, dotted with wispy clouds, suggesting a clear and pleasant day. The overall atmosphere of the image is peaceful and inviting, evoking a sense of tranquility and connection with nature. ",
                "role": "assistant"
            }
        }
    ],
    "created": 1752038963,
    "id": "021752038955665e5d1952a316480dd1a8e27d419c7433f9ea29b",
    "model": "doubao-1-5-vision-pro-32k-250115",
    "service_tier": "default",
    "object": "chat.completion",
    "usage": {
        "completion_tokens": 133,
        "prompt_tokens": 5147,
        "total_tokens": 5280,
        "prompt_tokens_details": {
            "cached_tokens": 0
        },
        "completion_tokens_details": {
            "reasoning_tokens": 0
        }
    }
}
Modified at 2025-07-09 05:22:14
Previous
chat text mode
Next
seededit-3.0
Built with