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

opencode · ImageReleased 2025-12-03

How to Use Seedream 4.5 Edit in opencode

Seedream 4.5 Edit revises images while preserving details such as faces, lighting, and color. Unlike Seedream 4.5 Text to Image, it uses reference images for tasks such as product swaps, background changes, and layout edits.

Prompts to try with Seedream 4.5 Edit in opencode

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

Use Seedream 4.5 Edit with the product photo in this project's assets folder. Replace the background with a pale blue studio backdrop while preserving the product's shape, label, color, and camera angle. Produce one 2K square image.

Seedream 4.5 Editopencode
Try asking
  • Use Seedream 4.5 Edit with the project's existing campaign image and replacement product photo. Replace only the product, preserve the headline and layout, and match the existing lighting. Produce one 2K square image.

  • Remove the background from the photo I attach with Seedream 4.5 Edit and give me a transparent PNG. Save the result in ./assets.

  • Use Seedream 4.5 Edit to clean up these product shots so they sit on pure white.

  • Edit this image with Seedream 4.5 Edit: keep the subject, swap the background for a sunlit studio.

How to set up Seedream 4.5 Edit in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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.5 Edit

    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.5/edit",
        "input": {
          "prompt": "Replace the product in Figure 1 with that in Figure 2. For the title copy the text in Figure 3 to the top of the screen, the title should have a clear contrast…",
          "image_urls": [
            "<image_urls>"
          ]
        }
      }'

Then paste one of the prompts above: opencode finds Seedream 4.5 Edit on Spiral, shows the price and runs it.

Seedream 4.5 Edit providers and prices

Spiral runs Seedream 4.5 Edit through fal. Open a card for today's price, with every fee included.

falImage
Bytedance Seedream V4.5 Edit · Image Editing
fal-ai/bytedance/seedream/v4.5/edit

Settings you can ask for

Seedream 4.5 Edit works from your prompt and image URLs. Ask opencode 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. The total number of images (image inputs + image outputs) must not exceed 15

Seeda whole number

Random seed to control the stochasticity of image generation.

Every API field of Bytedance Seedream V4.5 Edit · Image Editing is on its tool page: open its card above.

What can you do with Seedream 4.5 Edit in opencode?

Create visual assets from the project's design brief, including posters, product concepts, and promotional artwork. Your coding agent can turn layout requirements into focused Seedream 4.5 prompts and review the results against the brief.

Event poster concepts

Develop a poster with a clear title, supporting details, and a specified visual hierarchy. Use a written brief for new artwork or reference artwork for an edit.

Packaging design studies

Explore package imagery, material appearance, and label placement before choosing a design direction. Check every word in the result.

Campaign artwork

Develop promotional images around a specific subject, palette, lighting treatment, and headline. Describe each composition separately so its priorities stay clear.

Product presentation concepts

Explore how a product could appear in a studio or lifestyle scene. Start from a description for concept work, or use Seedream 4.5 Edit with the actual product image.

Film and game concept art

Develop characters, environments, and scene compositions for pre-production. Specify materials, lighting, and the relationship between objects.

Product swaps in existing artwork

Replace a product in an existing composition using a separate product reference. State which layout, lighting, and lettering should stay unchanged.

Portrait background and wardrobe edits

Change the setting or clothing in a portrait while asking to preserve the person's facial features. Identify the source of each replacement when using multiple references.

Questions about Seedream 4.5 Edit in opencode

Can opencode use Seedream 4.5 Edit?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Seedream 4.5 Edit like any built-in tool.

How much does Seedream 4.5 Edit cost in opencode?

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

Do I need a fal account to use Seedream 4.5 Edit in opencode?

No. Spiral runs Seedream 4.5 Edit 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.5 Edit in opencode?

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

Does opencode wait while Seedream 4.5 Edit runs?

Seedream 4.5 Edit runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

What is Seedream 4.5 useful for?

Seedream 4.5 suits visual work that combines an image with deliberate layout and lettering, such as posters, packaging concepts, and campaign artwork. Its documented strengths include composition, typography, and readable small text.

What resolution can Seedream 4.5 produce?

Seedream 4.5 supports 2K and 4K output. Choose the image shape to match its intended use, then describe where the subject and lettering should sit.

Can Seedream 4.5 put words inside an image?

Yes. Typography and readable small text are documented strengths, and the maker recommends enclosing the exact wording in double quotation marks. Check the finished lettering before using the image.

Which prompt languages does Seedream 4.5 support?

The maker documents Chinese and English prompt support. That does not establish equal accuracy for lettering in every language.

How should I structure a Seedream 4.5 prompt?

Write a clear description of the subject, action, and environment. Add the intended image type, composition, lighting, and exact lettering where they matter.

Get started

Start using Seedream 4.5 Edit in opencode

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

Paste this into opencode:

Set up opencode

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