Seedream V4

doubao/seedream-4.0/text-to-image

Seedream 4.0 by is a state-of-the-art image generation model delivering high-fidelity outputs and outperforming Nano Banana. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Examples

Seedream V4 example 1

Parameters

NameTypeDefaultConstraintsDescription
prompt *Prompttextarea≤ 5000 charsThe positive prompt for the generation.
sizeSizetext2048x2048≤ 500 charsThe size of the generated media, supporting up to 4K resolution for images. If you need to match the size of an existing image, you must explicitly specify the dimensions, as automatic resizing to match the image is not supported.

API

Call this model through one unified REST API. Get a key on the API Keys page.

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-4.0/text-to-image" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "A photorealistic image of a serene mountain landscape during sunrise, featuring snow-capped peaks, a calm lake reflecting the sunlight, and lush greenery surrounding the scene.",
    "size": "1920x1080"
  }
}'

# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
  -H "Authorization: Bearer YOUR_API_KEY"
Python
import time, requests

API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1) Submit
resp = requests.post(
    "https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-4.0/text-to-image",
    headers=HEADERS,
    json={
        "input": {
            "prompt": "A photorealistic image of a serene mountain landscape during sunrise, featuring snow-capped peaks, a calm lake reflecting the sunlight, and lush greenery surrounding the scene.",
            "size": "1920x1080"
        }
    },
)
resp.raise_for_status()  # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()

# 2) Poll until a terminal state (completed / failed / cancelled).
#    This model is allowed up to 300s server-side.
deadline = time.time() + 360
while task.get("status") not in ("completed", "failed", "cancelled"):
    if time.time() > deadline:
        raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
    time.sleep(3)
    poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
    poll.raise_for_status()
    task = poll.json()

print(task["status"], task.get("output"))
JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };

// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/doubao/seedream-4.0/text-to-image", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "prompt": "A photorealistic image of a serene mountain landscape during sunrise, featuring snow-capped peaks, a calm lake reflecting the sunlight, and lush greenery surrounding the scene.",
      "size": "1920x1080"
    }
  }),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();

// 2) Poll until a terminal state (completed / failed / cancelled).
//    This model is allowed up to 300s server-side.
const deadline = Date.now() + 360 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
  if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
  await new Promise((r) => setTimeout(r, 3000));
  const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
  if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
  task = await poll.json();
}

console.log(task.status, task.output);

Documentation

Seedream V4

High-Fidelity Text-to-Image Generation with Advanced Layout Awareness

Seedream V4 by Bytedance is a cutting-edge text-to-image generation model optimized for creating high-resolution, layout-aware visuals. With its ability to produce consistent, high-fidelity outputs and support for resolutions up to 4K, this model is ideal for professional use cases such as social media assets, concept designs, and multi-panel posters. Enjoy seamless performance with no cold starts and affordable pricing.


🚀 Key Features

  • Layout Awareness: Supports grid-based designs (e.g., 2×2 panels, triptychs, comics) with whitespace optimization for text placement, titles, and CTAs.
  • High Fidelity: Delivers clean edges, strong identity retention, and minimal artifacts for professional-grade visuals.
  • Resolution Flexibility: Default resolution of 2048×2048, with support for custom dimensions up to 8192×8192.
  • Consistency Across Series: Maintains unified palettes, lighting, and camera settings across multi-panel designs.
  • Affordable Pricing: Generate high-quality images for only $0.03 per run.

🛠️ Technical Specifications

ParameterDescription
Model ArchitectureProprietary Bytedance Seedream V4
Task TypeText-to-Image
Input FormatPrompt (string)
Output FormatImage (PNG, JPG)
Default Resolution2048×2048
Max ResolutionUp to 8192×8192
Pricing$0.03 per generation

Sample Prompts

  1. Prompt: "A futuristic cityscape at sunset, with glowing neon signs and flying cars."
  2. Prompt: "A minimalist poster featuring a single red rose on a monochrome background."
  3. Prompt: "A 2×2 grid comic strip depicting a humorous conversation between two robots."

💰 Pricing

ResolutionPrice per Generation
Default (2048×2048)$0.03
Custom (Up to 8192×8192)$0.03

💡 Best Use Cases

  • Social Media Campaigns: Generate visually appealing assets optimized for readability and branding.
  • E-commerce: Create high-resolution product visuals with consistent styling and branding.
  • Film and Entertainment: Design concept art, storyboards, and promotional posters.
  • Marketing Materials: Produce layout-aware posters, flyers, and multi-panel designs.

🔗 Related Models

  • Seedream V3.1: A previous version optimized for simpler designs.
  • Seedream V4 Edit: A variant tailored for post-generation editing workflows.

Related models

xAI Grok Imagine Image v2.0 Text to Image
Text to ImageX Ai

xAI Grok Imagine Image v2.0 Text to Image

xAI Grok Imagine Image V2.0 Text-to-Image generates high-quality images from text prompts, with configurable aspect ratio, resolution, and quality for creative visuals, social content, marketing assets, and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.080 / per run
Qwen Image 3.0 Pro Text to Image
Text to ImageQwen Image 3.0 Pro

Qwen Image 3.0 Pro Text to Image

Qwen Image 3.0 Pro is a professional-grade text-to-image model with superior quality and advanced prompt understanding. Up to 2k. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.080 / per run
OpenAI GPT Image 2 Text-to-Image
Text to ImageOpenAI

OpenAI GPT Image 2 Text-to-Image

OpenAI's GPT Image 2 Text-to-Image generates high-quality images from natural-language prompts. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.660 / per run
OpenAI GPT Image 2 Edit
Text to ImageOpenAI

OpenAI GPT Image 2 Edit

OpenAI's GPT Image 2 Edit enables image editing from natural-language instructions with one or more reference images. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

from $0.660 / per run
Nami Z-Image T2I Spicy
Text to Image

Nami Z-Image T2I Spicy

Generate an image from a text prompt with configurable width, height, prompt enhancement, and seed.

from $0.020 / per run
Nano Banana Text to Image
Text to ImageGoogle

Nano Banana Text to Image

Gemini 2.5 Flash Image. Lightweight and fast. The most affordable option for instant, high-volume generation.

from $0.040 / per run
Nano Banana Pro Text to Image
Text to ImageGoogle

Nano Banana Pro Text to Image

Gemini 3.0 Pro Image. The high-fidelity choice for 4K visuals, multilingual text rendering, and pro camera controls.

from $0.140 / per run
Nano Banana Pro Text to Image
Text to ImageGoogle

Nano Banana Pro Text to Image

Gemini 3.0 Pro Image. The high-fidelity choice for 4K visuals, multilingual text rendering, and pro camera controls.

from $0.070 / per run