[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [FLUX 1.1 Pro](https://spiral.ai/integrations/opencode/flux-1-1-pro)

# How to Use FLUX 1.1 Pro in opencode

FLUX 1.1 Pro turns written descriptions into photographs, illustrations, and visual concepts with strong prompt following. Unlike FLUX 1.1 Pro Ultra, it targets standard-resolution work rather than 4-megapixel output.

|  |  |
| --- | --- |
| Model | FLUX 1.1 Pro |
| Available through | fal |
| Category | Image |
| Price | $0.052 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with FLUX 1.1 Pro in opencode

- Read the homepage copy and use FLUX 1.1 Pro to create a 1280 × 720 hero image that expresses its main idea. Describe one clear subject in an editorial photography style, place it on the right, and leave the left half visually quiet for the headline.
- Read the gardening article in this project and use FLUX 1.1 Pro to generate a 1024 × 1024 illustration: a gardener's hands holding a small terracotta pot with a young tomato plant, rendered as a detailed watercolor against a pale blue background.
- Use FLUX 1.1 Pro to create a 1024 × 1024 empty-state illustration for the reading list screen: a closed red book beside an empty wooden chair, painted in gouache with broad shapes and a plain white background. Match the tone of the screen's copy.
- Read the game's setting notes and use FLUX 1.1 Pro to generate a 1280 × 720 environment concept. Show the main settlement from street level, specify its building materials and weather, and use a painted concept-art style.
- Use FLUX 1.1 Pro to create a 1024 × 1024 image for the coffee shop demo: an overhead photograph of an espresso cup on a dark wooden table, a folded linen napkin at the lower right, soft window light, and crisp ceramic texture. Leave prompt enhancement off.

## How to set up FLUX 1.1 Pro 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 FLUX 1.1 Pro**: 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/flux-pro/v1.1",
    "input": {
      "prompt": "Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture…"
    }
  }'
```

Then paste one of the prompts above: opencode finds FLUX 1.1 Pro on Spiral, shows the price and runs it.

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

## FLUX 1.1 Pro tools and prices

- [FLUX1.1 \[pro\] · Text to Image](https://spiral.ai/tools/fal/fal-ai/flux-pro/v1.1) (fal): $0.052 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | landscape_4_3 | The size of the generated image. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| output_format | jpeg, png | jpeg | The format of the generated image. |
| safety_tolerance | 1, 2, 3, 4, 5, 6 | 2 | The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. |
| enhance_prompt |  | false | Whether to enhance the prompt for better results. |

## What can you do with FLUX 1.1 Pro in opencode?

Create artwork that fits the project you are building, from website headers to illustrated empty states. Have the agent turn project copy into a concrete visual brief, then use FLUX 1.1 Pro to generate the image.

### Website hero artwork

Create a landscape image from a written brief, placing the main subject to one side and reserving an uncluttered area for the headline.

### Article illustrations

Turn an article's central idea into a photographic scene or painted visual metaphor, such as a greenhouse for a story about patient growth.

### Social post artwork

Generate square images around one clear subject, with the campaign caption added separately during layout.

### Product concept scenes

Explore an imagined product's materials, setting, and photographic treatment from a written description before planning a shoot.

### Presentation visuals

Create landscape illustrations for slide topics, using simple compositions with space for titles and annotations.

### Art direction studies

Render the same written concept as a studio photograph, oil painting, or surreal scene to compare creative directions.

### Game environment concepts

Describe a fictional location, its architecture, and its mood to create a scene for early visual development.

## Overview

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

## FLUX 1.1 Pro in other agents

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

## More opencode guides

- [FIBO Edit Restyle](https://spiral.ai/integrations/opencode/fibo-edit-restyle)
- [FLUX 1.1 Pro Ultra](https://spiral.ai/integrations/opencode/flux-1-1-pro-ultra)
- [FIBO Edit 1.5](https://spiral.ai/integrations/opencode/fibo-edit-1-5)
- [FLUX 3 Image](https://spiral.ai/integrations/opencode/flux-3-image)
- [FASHN Virtual Try-On v1.6](https://spiral.ai/integrations/opencode/fashn-virtual-try-on-v1-6)
- [FLUX 3 Image Edit](https://spiral.ai/integrations/opencode/flux-3-image-edit)

## Questions about FLUX 1.1 Pro in opencode

**Can opencode use FLUX 1.1 Pro?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run FLUX 1.1 Pro like any built-in tool.

**How much does FLUX 1.1 Pro cost in opencode?**

$0.052 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. 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 FLUX 1.1 Pro in opencode?**

No. Spiral runs FLUX 1.1 Pro on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up FLUX 1.1 Pro in opencode?**

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

**Does opencode wait while FLUX 1.1 Pro runs?**

FLUX 1.1 Pro runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What is FLUX 1.1 Pro good at?**

FLUX 1.1 Pro is useful for turning a written art direction into photographic or illustrated images. Use it to explore subjects, visual styles, and compositions for digital content.

**How large are FLUX 1.1 Pro images?**

Black Forest Labs documents standard FLUX.1 output at up to 1,048,576 pixels, roughly one megapixel. A 1024 × 1024 square fits that limit.

**How should I write a FLUX 1.1 Pro prompt?**

Describe a clear subject and name the visual style you want. For example, specify a ceramic cup photographed beside a window rather than asking for a beautiful product image.

**Does FLUX 1.1 Pro support negative prompts?**

No. Describe the result positively: use an empty beach or a plain backdrop instead of listing things to exclude.

**When should I leave prompt enhancement off?**

Leave it off when you want to test your exact wording or have already written a detailed brief. Prompt expansion adds detail before generation, so try it when a short description needs development.

