Text to Image
curl --request POST \
--url https://api.modelhunter.ai/api/v1/seedream/text-to-image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": {
"prompt": "<string>",
"size": "<string>",
"width": 123,
"height": 123,
"seed": 123,
"guidance_scale": 123,
"watermark": true,
"optimize_prompt": "<string>",
"output_format": "<string>",
"web_search": true
},
"webhookUrl": "<string>",
"metadata": {}
}
'import requests
url = "https://api.modelhunter.ai/api/v1/seedream/text-to-image"
payload = {
"model": "<string>",
"input": {
"prompt": "<string>",
"size": "<string>",
"width": 123,
"height": 123,
"seed": 123,
"guidance_scale": 123,
"watermark": True,
"optimize_prompt": "<string>",
"output_format": "<string>",
"web_search": True
},
"webhookUrl": "<string>",
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
input: {
prompt: '<string>',
size: '<string>',
width: 123,
height: 123,
seed: 123,
guidance_scale: 123,
watermark: true,
optimize_prompt: '<string>',
output_format: '<string>',
web_search: true
},
webhookUrl: '<string>',
metadata: {}
})
};
fetch('https://api.modelhunter.ai/api/v1/seedream/text-to-image', 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://api.modelhunter.ai/api/v1/seedream/text-to-image",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'input' => [
'prompt' => '<string>',
'size' => '<string>',
'width' => 123,
'height' => 123,
'seed' => 123,
'guidance_scale' => 123,
'watermark' => true,
'optimize_prompt' => '<string>',
'output_format' => '<string>',
'web_search' => true
],
'webhookUrl' => '<string>',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modelhunter.ai/api/v1/seedream/text-to-image"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"size\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"seed\": 123,\n \"guidance_scale\": 123,\n \"watermark\": true,\n \"optimize_prompt\": \"<string>\",\n \"output_format\": \"<string>\",\n \"web_search\": true\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.modelhunter.ai/api/v1/seedream/text-to-image")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"size\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"seed\": 123,\n \"guidance_scale\": 123,\n \"watermark\": true,\n \"optimize_prompt\": \"<string>\",\n \"output_format\": \"<string>\",\n \"web_search\": true\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modelhunter.ai/api/v1/seedream/text-to-image")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"size\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"seed\": 123,\n \"guidance_scale\": 123,\n \"watermark\": true,\n \"optimize_prompt\": \"<string>\",\n \"output_format\": \"<string>\",\n \"web_search\": true\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "task_abc123",
"status": "pending",
"type": "text-to-image",
"provider": "seedream",
"model": "seedream-4-5",
"created_at": "2026-01-15T10:00:00Z",
"estimated_seconds": 10
}
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}
Seedream
Text to Image
Generate images from text using ByteDance Seedream models via Volcengine Ark. Supports up to 4K resolution and multi-image input.
POST
/
api
/
v1
/
seedream
/
text-to-image
Text to Image
curl --request POST \
--url https://api.modelhunter.ai/api/v1/seedream/text-to-image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": {
"prompt": "<string>",
"size": "<string>",
"width": 123,
"height": 123,
"seed": 123,
"guidance_scale": 123,
"watermark": true,
"optimize_prompt": "<string>",
"output_format": "<string>",
"web_search": true
},
"webhookUrl": "<string>",
"metadata": {}
}
'import requests
url = "https://api.modelhunter.ai/api/v1/seedream/text-to-image"
payload = {
"model": "<string>",
"input": {
"prompt": "<string>",
"size": "<string>",
"width": 123,
"height": 123,
"seed": 123,
"guidance_scale": 123,
"watermark": True,
"optimize_prompt": "<string>",
"output_format": "<string>",
"web_search": True
},
"webhookUrl": "<string>",
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
input: {
prompt: '<string>',
size: '<string>',
width: 123,
height: 123,
seed: 123,
guidance_scale: 123,
watermark: true,
optimize_prompt: '<string>',
output_format: '<string>',
web_search: true
},
webhookUrl: '<string>',
metadata: {}
})
};
fetch('https://api.modelhunter.ai/api/v1/seedream/text-to-image', 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://api.modelhunter.ai/api/v1/seedream/text-to-image",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'input' => [
'prompt' => '<string>',
'size' => '<string>',
'width' => 123,
'height' => 123,
'seed' => 123,
'guidance_scale' => 123,
'watermark' => true,
'optimize_prompt' => '<string>',
'output_format' => '<string>',
'web_search' => true
],
'webhookUrl' => '<string>',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modelhunter.ai/api/v1/seedream/text-to-image"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"size\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"seed\": 123,\n \"guidance_scale\": 123,\n \"watermark\": true,\n \"optimize_prompt\": \"<string>\",\n \"output_format\": \"<string>\",\n \"web_search\": true\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.modelhunter.ai/api/v1/seedream/text-to-image")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"size\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"seed\": 123,\n \"guidance_scale\": 123,\n \"watermark\": true,\n \"optimize_prompt\": \"<string>\",\n \"output_format\": \"<string>\",\n \"web_search\": true\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modelhunter.ai/api/v1/seedream/text-to-image")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"size\": \"<string>\",\n \"width\": 123,\n \"height\": 123,\n \"seed\": 123,\n \"guidance_scale\": 123,\n \"watermark\": true,\n \"optimize_prompt\": \"<string>\",\n \"output_format\": \"<string>\",\n \"web_search\": true\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "task_abc123",
"status": "pending",
"type": "text-to-image",
"provider": "seedream",
"model": "seedream-4-5",
"created_at": "2026-01-15T10:00:00Z",
"estimated_seconds": 10
}
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}
Body Parameters
Seedream model. Options:
seedream-5-0-lite— Latest, web search support, $0.04/imageseedream-4-5— Flagship, multi-image input, streaming, $0.04/imageseedream-4-0— Multi-image input, $0.03/imageseedream-3-0-t2i— Text-to-image only, seed & guidance control, $0.03/image
Input parameters for the generation.
Show properties
Show properties
Text description of the image to generate. Supports Chinese and English.Recommended limits: 300 Chinese characters or 600 English words.
Output image size. Options:Presets:
1K— 1024x10242K— 2048x2048 (default for 4.0/4.5/5.0)3K— 3072x3072 (5.0 only)4K— 4096x4096 (4.0/4.5 only)
WxH in pixels (e.g., 1920x1080), 128-aligned.- 4.0: Total pixels (w×h) in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1]
- 4.5: Total pixels (w×h) in [3,686,400 ~ 16,777,216], aspect ratio [1:16 ~ 16:1]
- 3.0-t2i: Range [512x512, 2048x2048], 64-aligned, default 1024x1024
Image width in pixels (alternative to
size). Must satisfy total pixel and aspect ratio constraints above. 128-aligned.Image height in pixels (alternative to
size). Must satisfy total pixel and aspect ratio constraints above. 128-aligned.Seedream 3.0 only. Random seed for reproducibility. Range:
-1 to 2147483647. -1 means random.Seedream 3.0 only. How closely to follow the prompt. Range:
1 to 10.Whether to add a watermark to the generated image.
Prompt optimization mode. Enhances the prompt for better generation results.
- Seedream 4.0/4.5: Options:
standard,fast - Seedream 5.0: Only supports
standard
Seedream 5.0 only. Output image format. Options:
png, jpeg.Seedream 5.0 only. Enable real-time web search to enhance generation with up-to-date information.
URL to receive a webhook when the task completes.
Custom key-value metadata to attach to the task.
{
"success": true,
"data": {
"id": "task_abc123",
"status": "pending",
"type": "text-to-image",
"provider": "seedream",
"model": "seedream-4-5",
"created_at": "2026-01-15T10:00:00Z",
"estimated_seconds": 10
}
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}
⌘I