[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Juggernaut Flux Base](https://spiral.ai/integrations/opencode/juggernaut-flux-base)

# How to Use Juggernaut Flux Base in opencode

Juggernaut Flux Base creates realistic portraits, architectural concepts, and illustrations from written descriptions. Unlike Juggernaut Flux Base Image to Image, it starts from text alone.

|  |  |
| --- | --- |
| Model | Juggernaut Flux Base |
| Available through | fal |
| Category | Image |
| Price | $0.0455 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 Juggernaut Flux Base in opencode

- Read the homepage brief in this project and use Juggernaut Flux Base to create a 1280 by 720 architectural hero concept: a timber library at dusk, warm interior light, wet pavement, low camera angle. Leave open sky for the heading.
- Read the game's environment brief and use Juggernaut Flux Base to create a digital art concept of an abandoned mountain observatory, weathered copper roof, cold morning light, and a small explorer in the foreground.
- Use Juggernaut Flux Base to create a 1280 by 720 oil painting concept for the travel article in this project: a coastal village after rain, muted blue roofs, warm evening light, viewed from the hillside.
- Generate a product photo with Juggernaut Flux Base: 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 Juggernaut Flux Base.

## How to set up Juggernaut Flux Base 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 Juggernaut Flux Base**: 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": "rundiffusion-fal/juggernaut-flux/base",
    "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 Juggernaut Flux Base on Spiral, shows the price and runs it.

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

## Juggernaut Flux Base tools and prices

- [Juggernaut Flux Base](https://spiral.ai/tools/fal/rundiffusion-fal/juggernaut-flux/base) (fal): $0.0455 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. |
| num_inference_steps | 1 to 50 | 28 | The number of inference steps to perform. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| guidance_scale | 1 to 20 | 3.5 | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| output_format | jpeg, png | png | The format of the generated image. |

## What can you do with Juggernaut Flux Base in opencode?

Create visual concepts for a project's website, game, or editorial content with Juggernaut Flux Base. A coding agent can turn the project's brief into detailed image descriptions and keep the selected images with the project assets.

### Portrait concepts

Explore portrait lighting, clothing, and backgrounds for an editorial brief. Specify the skin texture, light direction, and camera position you want.

### Architectural mood boards

Explore building exteriors through different materials, daylight conditions, and viewpoints. Use the images to discuss a visual direction.

### Interior design studies

Compare room concepts with wood, stone, brass, or concrete finishes. Describe the lighting and viewing angle so each proposal has a clear brief.

### Fashion editorial planning

Explore garment shapes, fabric textures, and studio lighting before a shoot. Describe the clothing construction and backdrop in concrete terms.

### Illustration direction

Develop an illustration brief in an oil painting, cartoon, anime, or digital art style. Compare how the same subject reads in each treatment.

### Environment concepts

Explore settings for a game or story, from a weathered observatory to a flooded city. Specify the architecture, atmosphere, and foreground subject.

## Overview

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

## Juggernaut Flux Base in other agents

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

## More opencode guides

- [Image to SVG](https://spiral.ai/integrations/opencode/image-to-svg)
- [Juggernaut Flux Base Image to Image](https://spiral.ai/integrations/opencode/juggernaut-flux-base-image-to-image)
- [Image Editing Time of Day](https://spiral.ai/integrations/opencode/image-editing-time-of-day)
- [Juggernaut Flux Lightning](https://spiral.ai/integrations/opencode/juggernaut-flux-lightning)
- [Image Editing Reframe](https://spiral.ai/integrations/opencode/image-editing-reframe)
- [Juggernaut Flux Pro](https://spiral.ai/integrations/opencode/juggernaut-flux-pro)

## Questions about Juggernaut Flux Base in opencode

**Can opencode use Juggernaut Flux Base?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Juggernaut Flux Base like any built-in tool.

**How much does Juggernaut Flux Base cost in opencode?**

$0.0455 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 Juggernaut Flux Base in opencode?**

No. Spiral runs Juggernaut Flux Base on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Juggernaut Flux Base in opencode?**

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

**Does opencode wait while Juggernaut Flux Base runs?**

Juggernaut Flux Base runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What is Juggernaut Flux Base useful for?**

Use it to explore realistic imagery, illustrations, and visual concepts. RunDiffusion's examples include architecture, fashion, interiors, and portraits.

**Does Juggernaut Flux Base only make realistic images?**

No. RunDiffusion also lists cartoons, anime, digital art, oil paintings, and graphic design among Juggernaut Flux's supported styles.

**How should I describe the image I want?**

Name the subject, materials, setting, lighting, and viewpoint. RunDiffusion's examples use concrete directions such as golden-hour light and a low camera angle; follow that pattern when drafting your description.

**What does guidance change?**

Guidance controls how closely the model follows your description. To compare its effect, keep the description and other settings fixed while changing guidance.

**Can I reproduce a result?**

The documentation says the same seed and prompt reproduce the same image with the same model version. Keep the remaining settings fixed when comparing results, and keep the same source image when using one.

