Seedream 4.0
Seedream 4.0 is ByteDance’s new-generation image creation model that unifies image generation and image editing in a single architecture, built to handle complex multimodal tasks such as knowledge-based generation, visual reasoning, and reference-consistent creation while producing high-definition images at up to 4K resolution.
Seedream 4.0 Text to Image API
Describe the image (max 300 Chinese characters or 600 English words)
Output image size preset. Model auto-determines dimensions from prompt. Total pixels must be in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1]
Result
Results will appear here
Cost: $0.03/image
Seedream 4.0 API Implementation Guide
Get API Key
Generate your API key from the dashboard and set it as an environment variable.
export MODELHUNTER_KEY="your_api_key"Make Your First Call
Follow the API documentation for complete code examples in cURL, JavaScript, and Python, including request format, polling, and error handling.
View API Documentation →Seedream 4.0 Key Info
Capabilities
- Text to Image API
- Image to Image API
Pricing
Text to Image API
$0.03 / image
$0.03 per image
Image to Image API
$0.03 / image
$0.03 per image
Use Cases
Output Formats
Seedream 4.0 API Documentation
Run the playground first, then open the full API docs for integration details.
About
High-quality text-to-image with multi-image input
Code Examples
1curl -X POST https://api.modelhunter.ai/api/v1/seedream/text-to-image \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "seedream-4-0",6"input": {7"prompt": "A futuristic cityscape at sunset with neon signs",8"size": "2K"9}10}'
Schema
View Full API DocsInput
modelModel ID for this capability.
Value: seedream-4-0
promptDescribe the image (max 300 Chinese characters or 600 English words)
sizeOutput image size preset. Model auto-determines dimensions from prompt. Total pixels must be in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1]
Options: 1K, 2K, 4K
Default: 2K
widthCustom width in pixels (alternative to size). Total pixels (w×h) must be in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1], 128-aligned
heightCustom height in pixels (alternative to size). Total pixels (w×h) must be in [921,600 ~ 16,777,216], aspect ratio [1:16 ~ 16:1], 128-aligned
watermarkWatermark
Default: true
optimize_promptEnhance prompt for better results
Options: standard, fast
response_formatResponse Format
Options: url
Default: url
webhookUrlURL to receive a webhook notification when the task completes.
metadataCustom key-value metadata to attach to the task for tracking.
Response (HTTP 202)
successWhether the request was accepted successfully.
data.idUnique task ID. Use this to poll GET /api/v1/tasks/{id} for results.
data.statusTask status: pending, processing, completed, failed.
data.typeGeneration type: text-to-image.
data.providerProvider name: seedream.
data.modelModel ID used for generation.
data.created_atISO 8601 timestamp of when the task was created.
data.estimated_secondsEstimated time in seconds until the task completes.