Seedream 4.0 API
TBA
Developer-ready API access
Powered by ByteDance, Seedream 4.0 API is the next-generation unified image generation and editing API. Generate photorealistic visuals up to 4K with PiAPI today!
Pay-as-you-go Option
TBA
Developer-ready API access
Face references must be uploaded to the Asset Library and verified before use in -less-restriction modes. View Asset Library docs →
Seedream 4.0 API delivers exceptional quality with accurate rendering and high-precision edits via PiAPI.
Seedream API uses multistep thinking to produce outputs aligned with physical laws.
ByteDance Seedream API accesses current news and topics to respond to time-sensitive generation needs.
Seedream 4.0 AI API is equipped with rich world knowledge across technology and humanities domains.
Seedream 4.0 API supports image editing tasks with reasoning based on instructions.
Seedream AI API adheres closely to prompts with precise control.
Seedream 4.0 supports multimodal input for image generation tasks and flexible workflows.
Seedream 4.0 improves over previous models with stronger benchmark performance.
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "seedream",
"task_type": "seedream-4.0",
"input": {
"prompt": "",
"size": "2K",
"aspect": "1:1",
"image_urls": ""
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"image_urls": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run seedream-4-0 \ prompt= \ size=2K \ aspect=1:1 \ image_urls= ✓ Task completed! https://img.theapi.app/ephemeral/…
Released by ByteDance, Seedream 4.0 is a unified image generation model that supports high-quality output and image editing. You can integrate it via PiAPI and build powerful visual generation features with ease.
Yes, we support up to 10 reference images in one API request.
Seedream 4.0 supports high-fidelity image generation and editing outputs for production workflows.
No, we do not offer refunds. But when you first sign up for an account on PiAPI's Workspace, you will be given free credits to try our API before making payments!
Please email us at support@piapi.ai - we'd love to talk more regarding our product offering!
Yes! When you sign up on PiAPI, you will receive free credits to try most of our APIs without needing a credit card.
More questions? See the API docs.
Seedream 4.0 API