Seedream-4-5-251128 - Text To Image
Superior text to image via seedream 4.5. Detailed, high-resolution AI generation that perfectly follows your descriptive text.
POST
/
api
/
v3
/
images
/
generations
seedream-4-5-251128 (Text To Image)
curl --request POST \
--url https://gptproto.com/api/v3/images/generationsimport requests
url = "https://gptproto.com/api/v3/images/generations"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://gptproto.com/api/v3/images/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gptproto.com/api/v3/images/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gptproto.com/api/v3/images/generations"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gptproto.com/api/v3/images/generations")
.asString();require 'uri'
require 'net/http'
url = URI("https://gptproto.com/api/v3/images/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyAuthentication
- Sign up for a GPTProto account at https://gptproto.com
- Navigate to the API Keys section in your dashboard
- Generate a new API key (sk-xxxxx)
- Copy and securely store your API key For authentication details, please refer to the Authentication section.
Initiate Request
curl --location 'https://gptproto.com/api/v3/images/generations' \
--header 'Authorization: GPTPROTO_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedream-4-5-251128",
"prompt": "Fisheye lens, a cat'\''s head, the picture shows the cat'\''s facial features are distorted due to the shooting method.",
"response_format": "url",
"size": "2k",
"seed": 12,
"watermark": true
}'
const axios = require('axios');
let data = JSON.stringify({
"model": "seedream-4-5-251128",
"prompt": "Fisheye lens, a cat's head, the picture shows the cat's facial features are distorted due to the shooting method.",
"response_format": "url",
"size": "2k",
"seed": 12,
"watermark": true
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://gptproto.com/api/v3/images/generations',
headers: {
'Authorization': 'GPTPROTO_API_KEY',
'Content-Type': 'application/json'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
import json
url = "https://gptproto.com/api/v3/images/generations"
payload = json.dumps({
"model": "seedream-4-5-251128",
"prompt": "Fisheye lens, a cat's head, the picture shows the cat's facial features are distorted due to the shooting method.",
"response_format": "url",
"size": "2k",
"seed": 12,
"watermark": True
})
headers = {
'Authorization': 'GPTPROTO_API_KEY',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gptproto.com/api/v3/images/generations"
method := "POST"
payload := strings.NewReader(`{
"model": "seedream-4-5-251128",
"prompt": "Fisheye lens, a cat's head, the picture shows the cat's facial features are distorted due to the shooting method.",
"response_format": "url",
"size": "2k",
"seed": 12,
"watermark": true
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "GPTPROTO_API_KEY")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
model | string | ✅ Yes | doubao-seedream-4-5-251128 | - | The model identifier for image generation/editing |
prompt | string | ✅ Yes | - | - | Description of the desired image transformation or generation |
response_format | string | ❌ No | url | - | Response format: “url” (image URL) or “b64_json” (base64 encoded) |
size | string | ❌ No | adaptive | - | Output image resolution. Options: adaptive, 1024x1024, 2K, 4K |
seed | integer | ❌ No | - | - | Random seed for reproducible results |
guidance_scale | number | ❌ No | 5.5 | 1.0-10.0 | Controls adherence to the prompt. Recommended: 3.0-7.0 |
watermark | boolean | ❌ No | true | - | Whether to add watermark to the generated image |
Error Codes
Common Error Codes
| Error Code | Error Name | Description |
|---|---|---|
| 401 | Unauthorized | API key is missing or invalid |
| 403 | Forbidden | Your API key doesn’t have permission to access this resource, or insufficient balance for the requested operation |
| 429 | Too Many Requests | You’ve exceeded your rate limit |
| 500 | Internal server error | An internal server error occurred |
| 503 | Content policy violation | Content blocked due to safety concerns (actual status code is 400) |
⌘I

