[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Seedream 4.0 Text to Image](https://spiral.ai/integrations/muse-code/seedream-4-0-text-to-image)

# How to Use Seedream 4.0 Text to Image in Muse Code

Use Seedream 4.0 Text to Image for posters, illustrations, and coordinated image sets described in words. Choose it over Edit when you are creating the scene from a written brief.

|  |  |
| --- | --- |
| Model | Seedream 4.0 Text to Image |
| Available through | fal |
| Category | Image |
| Price | $0.039 per image. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Seedream 4.0 Text to Image in Muse Code

- Read the project's homepage brief and use Seedream 4.0 Text to Image to create a 2048 × 2048 editorial illustration for it. Name the central subject, setting, palette, and lighting in the prompt. Leave the upper third clear for the page headline.
- Read docs/onboarding.md and use Seedream 4.0 Text to Image to create a set of three 2048 × 2048 onboarding illustrations. Use the same small orange robot and ink illustration style throughout, with one scene for each onboarding step.
- Read the event brief in docs/event.md and use Seedream 4.0 Text to Image to create a 2048 × 3072 poster concept. Put the event's exact title in double quotation marks in the image prompt and place it above the main illustration.
- Generate a product photo with Seedream 4.0 Text to Image: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.
- Make four logo concepts for a coffee brand called "Northline" with Seedream 4.0 Text to Image.

## How to set up Seedream 4.0 Text to Image in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Seedream 4.0 Text to Image**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/bytedance/seedream/v4/text-to-image",
    "input": {
      "prompt": "A trendy restaurant with a digital menu board displaying \"Seedream 4.0 is available on fal\" in elegant script, with diners enjoying their meals."
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Seedream 4.0 Text to Image on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Seedream 4.0 Text to Image tools and prices

- [Bytedance Seedream V4 · Text to Image](https://spiral.ai/tools/fal/fal-ai/bytedance/seedream/v4/text-to-image) (fal): $0.039 per image. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | {"width":2048,"height":2048} | The size of the generated image. Total pixels must be between 960x960 and 4096x4096. |
| num_images | 1 to 6 | 1 | Number of separate model generations to be run with the prompt. |
| max_images | 1 to 6 | 1 | If set to a number greater than one, enables multi-image generation. The model will potentially return up to `max_images` images every generation, and in total, `num_images` generations will be carried out. In total, the number of images generated will be between `num_images` and `max_images*num_images`. |
| seed |  | — | Random seed to control the stochasticity of image generation. |
| enhance_prompt_mode | standard, fast | standard | The mode to use for enhancing prompt enhancement. Standard mode provides higher quality results but takes longer to generate. Fast mode provides average quality results but takes less time to generate. |

## What can you do with Seedream 4.0 Text to Image in Muse Code?

Create visual assets from project briefs or revise images already in the repository. Use the agent to turn written requirements into specific compositions and coordinated image sets.

### Storyboard a short scene

Request four related images with one character and one visual style. Describe each scene separately: arrival, discovery, decision, and departure.

### Develop a poster concept

Specify the poster's purpose, subject, layout, and exact headline. Use a 2048 × 2048 square for a first composition or request a larger image when the design needs more space.

### Revise an existing visual

Use Edit with a supplied image and a concrete instruction, such as replacing a background or changing an object's color. Name the target object directly.

### Create a coordinated illustration set

Describe a shared palette, medium, and recurring subject, then request a small series. Give each image a distinct scene while repeating the visual requirements.

### Combine visual references

Supply references for a character, setting, or style and explain the intended result. State which visual elements each reference contributes.

### Explore a new composition from text

Start with a written brief for an illustration or poster. Specify the subject's position, the environment, and the direction of light.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Seedream 4.0 Text to Image in other agents

- [Amp](https://spiral.ai/integrations/amp/seedream-4-0-text-to-image)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/seedream-4-0-text-to-image)
- [Claude](https://spiral.ai/integrations/claude-desktop/seedream-4-0-text-to-image)
- [Claude Code](https://spiral.ai/integrations/claude-code/seedream-4-0-text-to-image)
- [Cline](https://spiral.ai/integrations/cline/seedream-4-0-text-to-image)
- [Codex](https://spiral.ai/integrations/codex/seedream-4-0-text-to-image)
- [Cursor](https://spiral.ai/integrations/cursor/seedream-4-0-text-to-image)
- [Devin](https://spiral.ai/integrations/devin/seedream-4-0-text-to-image)
- [dots](https://spiral.ai/integrations/dots/seedream-4-0-text-to-image)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/seedream-4-0-text-to-image)
- [Gemini](https://spiral.ai/integrations/gemini/seedream-4-0-text-to-image)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/seedream-4-0-text-to-image)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/seedream-4-0-text-to-image)
- [goose](https://spiral.ai/integrations/goose/seedream-4-0-text-to-image)
- [Grok](https://spiral.ai/integrations/grok/seedream-4-0-text-to-image)
- [Grok Build](https://spiral.ai/integrations/grok-build/seedream-4-0-text-to-image)
- [Hermes](https://spiral.ai/integrations/hermes/seedream-4-0-text-to-image)
- [Instinct](https://spiral.ai/integrations/instinct/seedream-4-0-text-to-image)
- [Manus](https://spiral.ai/integrations/manus/seedream-4-0-text-to-image)
- [Muse](https://spiral.ai/integrations/muse/seedream-4-0-text-to-image)
- [n8n](https://spiral.ai/integrations/n8n/seedream-4-0-text-to-image)
- [Notion](https://spiral.ai/integrations/notion/seedream-4-0-text-to-image)
- [OpenClaw](https://spiral.ai/integrations/openclaw/seedream-4-0-text-to-image)
- [opencode](https://spiral.ai/integrations/opencode/seedream-4-0-text-to-image)
- [Perplexity](https://spiral.ai/integrations/perplexity/seedream-4-0-text-to-image)
- [Raycast](https://spiral.ai/integrations/raycast/seedream-4-0-text-to-image)
- [VS Code](https://spiral.ai/integrations/vscode/seedream-4-0-text-to-image)
- [Windsurf](https://spiral.ai/integrations/windsurf/seedream-4-0-text-to-image)
- [Zapier](https://spiral.ai/integrations/zapier/seedream-4-0-text-to-image)

## More Muse Code guides

- [Seedream 4.0 Edit](https://spiral.ai/integrations/muse-code/seedream-4-0-edit)
- [Seedream 4.5 Edit](https://spiral.ai/integrations/muse-code/seedream-4-5-edit)
- [Sana Sprint](https://spiral.ai/integrations/muse-code/sana-sprint)
- [Seedream 4.5 Text to Image](https://spiral.ai/integrations/muse-code/seedream-4-5-text-to-image)
- [Sana 1.5 4.8B](https://spiral.ai/integrations/muse-code/sana-1-5-4-8b)
- [Seedream 5.0 Flash Image Editing](https://spiral.ai/integrations/muse-code/seedream-5-0-flash-image-editing)

## Questions about Seedream 4.0 Text to Image in Muse Code

**Can Muse Code use Seedream 4.0 Text to Image?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Seedream 4.0 Text to Image like any built-in tool.

**How much does Seedream 4.0 Text to Image cost in Muse Code?**

$0.039 per image. Billed on `num_images`, default 1. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need a fal account to use Seedream 4.0 Text to Image in Muse Code?**

No. Spiral runs Seedream 4.0 Text to Image on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Seedream 4.0 Text to Image in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Seedream 4.0 Text to Image runs?**

Seedream 4.0 Text to Image runs in the background. Muse Code starts the run, checks on it and gives you the image when it's ready.

**When should I choose Edit instead of Text to Image?**

Choose Edit when you have a source image or visual references to follow. Choose Text to Image when your starting point is a written description; both use Seedream 4.0's shared generation and editing architecture.

**How large can Seedream 4.0 images be?**

The model supports up to 4K, including a 4096 × 4096 square. Custom dimensions must satisfy both the total pixel limit and the aspect ratio limit.

**Can it create a matching series of images?**

Yes. Related image sequences are a documented use for storyboards, comics, and coordinated designs. Describe the shared character and style, then specify what changes in each image.

**How should I request text inside an image?**

Put the exact wording in double quotation marks and state its role, such as the poster title or product label. For example, request a poster with the title "Weekend pottery".

**Do longer prompts produce better results?**

Very long prompts can cause the model to overlook details. BytePlus recommends staying under 600 English words; start with the subject, action, and setting, then add the visual requirements that matter.

