How to Use Ideogram 2.0 Edit in opencode
Ideogram 2.0 Edit fills a masked area in an existing image, useful for replacing a sign or revising part of a poster. Unlike Ideogram 2.0 Remix, it targets a selected area.
Prompts to try with Ideogram 2.0 Edit in opencode
Copy an example into opencode, or ask in your own words.
Use Ideogram 2.0 Edit with this project's poster image and matching headline mask. Replace the selected headline with "Night Market" in Design style, then check every letter.
Use Ideogram 2.0 Edit with the storefront image and matching sign mask in this project. Fill the selected sign with the words "Northline Coffee" and inspect the spelling.
Remove the background from the photo I attach with Ideogram 2.0 Edit and give me a transparent PNG. Save the result in ./assets.
Use Ideogram 2.0 Edit to clean up these product shots so they sit on pure white.
Edit this image with Ideogram 2.0 Edit: keep the subject, swap the background for a sunlit studio.
How to set up Ideogram 2.0 Edit in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Ideogram 2.0 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/ideogram/v2/edit", "input": { "prompt": "A knight in shining armour holding a greatshield with \"FAL\" on it", "image_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/knight.jpeg", "mask_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/mask_knight.jpeg" } }'
Then paste one of the prompts above: opencode finds Ideogram 2.0 Edit on Spiral, shows the price and runs it.
Ideogram 2.0 Edit providers and prices
Spiral runs Ideogram 2.0 Edit through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Ideogram 2.0 Edit works from your prompt, image URL, and mask URL. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | Seed for the random number generator | |
| Style | auto, general, realistic, design, render_3D, or anime | auto | The style of the generated image |
| Expand prompt | on or off | on | Whether to expand the prompt with MagicPrompt functionality. |
Every API field of Ideogram V2 Edit · Image to Image is on its tool page: open its card above.
What can you do with Ideogram 2.0 Edit in opencode?
Turn a project's visual brief into poster, logo, and lettering concepts. Use the agent to compare drafts against the project's wording and identify text that needs another pass.
Event poster concepts
Develop a poster with a short event name and a clear visual theme. Create the first draft from a brief, reinterpret existing artwork with Remix, or revise a masked headline with Edit.
Logo concept exploration
Explore a short brand name with a simple symbol. Generate initial directions from text, remix an existing concept, or mask the lettering for a focused revision.
Typography studies
Compare treatments of a short phrase in a poster composition. Start from a written brief, reinterpret an existing study, or edit the selected lettering area.
Promotional graphic drafts
Build a campaign graphic around a short message such as "Open Studio". Generate a new composition, remix approved artwork into another direction, or replace a masked message.
Selected-area revisions
Use an existing image and a matching mask to replace one sign, headline, or object. Describe what should appear inside the selected area.
More on Ideogram 2.0 Edit and opencode
Overview
Ideogram 2.0 Edit in other agents
Questions about Ideogram 2.0 Edit in opencode
Can opencode use Ideogram 2.0 Edit?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Ideogram 2.0 Edit like any built-in tool.
How much does Ideogram 2.0 Edit cost in opencode?
$0.104 per image. 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 Ideogram 2.0 Edit in opencode?
No. Spiral runs Ideogram 2.0 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 Ideogram 2.0 Edit in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Ideogram 2.0 Edit runs?
Ideogram 2.0 Edit runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.
What is Ideogram 2.0 useful for?
Start with posters, logo concepts, and images where lettering is part of the design. Realistic imagery is another supported use.
How do I ask for specific words in an image?
Put the exact wording in quotation marks. For example, ask for a poster with the headline "Night Market" rather than asking the model to invent a headline.
Can I rely on every word being spelled correctly?
Check the result before using it. Short headlines give you fewer opportunities for missing letters or typos than paragraphs.
Which style should I try for lettering?
Try Design when the words are central to the image. Ideogram says this style improves text accuracy in Ideogram 2.0.
Is Ideogram 2.0 suitable for logo work?
It is a useful starting point for logo concepts and lettering exploration. Give each draft a short name, then inspect the generated letters before choosing a direction.
Start using Ideogram 2.0 Edit in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


