Spiral gives your agent every tool with one account. Browse the tools →

Codex · ImageReleased 2025-09-09

How to Use Seedream 4.0 Text to Image in Codex

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.

Prompts to try with Seedream 4.0 Text to Image in Codex

Copy an example into Codex, or ask in your own words.

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.

Seedream 4.0 Text to ImageCodex
Try asking
  • 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 Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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.

    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.

    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: Codex finds Seedream 4.0 Text to Image on Spiral, shows the price and runs it.

Seedream 4.0 Text to Image providers and prices

Spiral runs Seedream 4.0 Text to Image through fal. Open a card for today's price, with every fee included.

falImage
Bytedance Seedream V4 · Text to Image
fal-ai/bytedance/seedream/v4/text-to-image

Settings you can ask for

Seedream 4.0 Text to Image works from your prompt. Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of images1 to 61

Number of separate model generations to be run with the prompt.

Max images1 to 61

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.

Seeda whole number

Random seed to control the stochasticity of image generation.

Enhance prompt modestandard or faststandard

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.

Every API field of Bytedance Seedream V4 · Text to Image is on its tool page: open its card above.

What can you do with Seedream 4.0 Text to Image in Codex?

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.

Questions about Seedream 4.0 Text to Image in Codex

Can Codex use Seedream 4.0 Text to Image?

Yes. Add Spiral to Codex as an MCP server, and Codex 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 Codex?

$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 Codex plan is separate.

Do I need a fal account to use Seedream 4.0 Text to Image in Codex?

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 Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while Seedream 4.0 Text to Image runs?

Seedream 4.0 Text to Image runs in the background. Codex 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.

Get started

Start using Seedream 4.0 Text to Image in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options