[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Ideogram 4 Tiling](https://spiral.ai/integrations/opencode/ideogram-4-tiling)

# How to Use Ideogram 4 Tiling in opencode

Ideogram 4 Tiling makes repeating textures for backgrounds, wallpaper, and surface designs. Choose it for prompt-led patterns; Ideogram 4 Tiling LoRA adds guidance from a custom-trained style or motif.

|  |  |
| --- | --- |
| Model | Ideogram 4 Tiling |
| Available through | fal |
| Category | Image |
| Price | $0.052 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 Ideogram 4 Tiling in opencode

- Use Ideogram 4 Tiling to create a subtle paper texture matching this project's colors. Add a CSS repeat preview so I can inspect the joins.
- Use Ideogram 4 Tiling to draft a top-down mossy stone texture for this game's courtyard. Keep the lighting even and preview it across a large floor.
- Use Ideogram 4 Tiling to turn the project's existing painted texture into a repeat. Start with low transformation strength to retain its brushwork.
- Use Ideogram 4 Tiling to repair the marked area of our texture. Make the edit mask white there and black elsewhere, then show a repeated preview.
- Generate a product photo with Ideogram 4 Tiling: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.

## How to set up Ideogram 4 Tiling 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

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

### Call the Spiral API

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

2. **Run Ideogram 4 Tiling**: 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": "ideogram/v4/tiling",
    "input": {
      "prompt": "A red panda perched on a mossy branch in a misty forest at sunrise"
    }
  }'
```

Then paste one of the prompts above: opencode finds Ideogram 4 Tiling on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Ideogram 4 Tiling tools and prices

- [Ideogram V4.0q Tiling](https://spiral.ai/tools/fal/ideogram/v4/tiling) (fal): $0.052 per image. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| expansion_model | None, Medium, Large | Medium | Which model expands the prompt. 'None' disables prompt expansion and skips its fee; 'Medium' is fast; 'Large' uses Ideogram's Magic Prompt for the highest quality. |
| image_size |  | square_hd | The resolution of the generated seamlessly tileable image. |
| rendering_speed | TURBO, BALANCED, QUALITY | BALANCED | The rendering speed to use. Faster speeds use fewer denoising steps. |
| acceleration | none, low, regular, high | none | The acceleration level to use for the image generation. |
| num_images | 1 to 4 | 1 | Number of images to generate. |
| seed |  | — | The seed to use for generation. If not provided, a random seed will be used. |

## What can you do with Ideogram 4 Tiling in opencode?

Build repeating visual assets for websites and games with Ideogram 4 Tiling. A coding agent can use the project's design choices to draft textures and place them in a repeat preview.

### Website backgrounds

Create a quiet repeating texture behind a page or section. Preview it across a large area before choosing the final pattern.

### Wallpaper concepts

Explore botanical, geometric, or illustrated repeats for an interior design proposal.

### Fabric print concepts

Draft repeating motifs for apparel or upholstery, with a named palette and consistent spacing.

### Gift wrap and packaging artwork

Make repeating decorative backgrounds for wrapping paper, box interiors, or packaging mockups.

### Game surface textures

Draft repeating stone, soil, or painted surface artwork for a game's environment.

### Source-image pattern studies

Turn an existing image into a repeating texture, adjusting transformation strength to explore closer or looser interpretations.

### Pattern repairs

Regenerate a masked area of an existing tile while preserving the surrounding artwork.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Ideogram 4 Tiling in other agents

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

## More opencode guides

- [Ideogram 3.0 Transparent](https://spiral.ai/integrations/opencode/ideogram-3-0-transparent)
- [Ideogram 4 Tiling LoRA](https://spiral.ai/integrations/opencode/ideogram-4-tiling-lora)
- [Ideogram 3.0 Text to Image](https://spiral.ai/integrations/opencode/ideogram-3-0-text-to-image)
- [Ideogram 4.5 Edit](https://spiral.ai/integrations/opencode/ideogram-4-5-edit)
- [Ideogram 3.0 Replace Background](https://spiral.ai/integrations/opencode/ideogram-3-0-replace-background)
- [Ideogram 4.5 Text to Image](https://spiral.ai/integrations/opencode/ideogram-4-5-text-to-image)

## Questions about Ideogram 4 Tiling in opencode

**Can opencode use Ideogram 4 Tiling?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Ideogram 4 Tiling like any built-in tool.

**How much does Ideogram 4 Tiling 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 Ideogram 4 Tiling in opencode?**

No. Spiral runs Ideogram 4 Tiling 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 4 Tiling in opencode?**

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

**Does opencode wait while Ideogram 4 Tiling runs?**

Ideogram 4 Tiling runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What is Ideogram 4 Tiling best for?**

Repeating surface artwork: wallpaper, fabric patterns, packaging backgrounds, and digital textures. Its matching edges let one image cover a larger area through repetition.

**How should I write a pattern prompt?**

Name the motif, medium, colors, and spacing, such as small navy leaves in a block-print style on white. Keep prompt expansion enabled for plain English; use a structured JSON caption when you want to specify those details directly.

**How can I keep a tile close to a source image?**

Use lower transformation strength to retain more of the source. Increase it when you want the source to serve as inspiration for a more substantial change.

**Can I repair just part of a pattern?**

Yes. Supply the existing image and a mask with white over the area to regenerate and black over the area to preserve.

**Can a repeating pattern include lettering?**

Use short, quoted labels rather than long passages. Ideogram recommends five to seven words per quoted string, so keep repeated lettering brief and check the result before using it.

