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

# How to Use Juggernaut Flux Base Image to Image in opencode

Juggernaut Flux Base Image to Image reworks an existing image with a written description. Unlike Juggernaut Flux Base, it uses a source image and a strength control to guide the transformation.

|  |  |
| --- | --- |
| Model | Juggernaut Flux Base Image to Image |
| Available through | fal |
| Category | Image |
| Price | Up to $0.0455 per run at the default inputs. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Juggernaut Flux Base Image to Image in opencode

- Use Juggernaut Flux Base Image to Image with the portrait in assets/portrait.png to explore an editorial treatment: charcoal jacket, soft window light from the left, natural skin texture, plain gray backdrop. Save the result beside the source.
- Use Juggernaut Flux Base Image to Image with assets/interior.png to explore a boutique interior with brass shelves, marble flooring, and warm ambient lighting. Compare two strength settings with the same seed and description.
- Generate a product photo with Juggernaut Flux Base Image to Image: 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 Image to Image.
- Create a 16:9 hero image of a quiet mountain cabin at dusk with Juggernaut Flux Base Image to Image.

## How to set up Juggernaut Flux Base Image to Image 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 Image to Image**: 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/image-to-image",
    "input": {
      "image_url": "https://fal.media/files/koala/Chls9L2ZnvuipUTEwlnJC.png",
      "prompt": "a cat dressed as a wizard with a background of a mystic forest."
    }
  }'
```

Then paste one of the prompts above: opencode finds Juggernaut Flux Base Image to Image on Spiral, shows the price and runs it.

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

## Juggernaut Flux Base Image to Image tools and prices

- [Juggernaut Flux Base · Image to Image](https://spiral.ai/tools/fal/rundiffusion-fal/juggernaut-flux/base/image-to-image) (fal): Up to $0.0455 per run at the default inputs.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| strength | 0.01 to 1 | 0.95 | The strength of the initial image. Higher strength values are better for this model. |
| num_inference_steps | 10 to 50 | 40 | 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 Image to Image 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.

### Existing artwork exploration

Use an existing image as the starting point for a new visual treatment. Describe the intended result and compare strength settings before choosing a direction.

## Overview

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

## Juggernaut Flux Base Image to Image in other agents

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

## More opencode guides

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

## Questions about Juggernaut Flux Base Image to Image in opencode

**Can opencode use Juggernaut Flux Base Image to Image?**

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

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

Up to $0.0455 per run at the default inputs. 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 Image to Image in opencode?**

No. Spiral runs Juggernaut Flux Base Image to Image 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 Image to Image in opencode?**

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

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

Juggernaut Flux Base Image to Image 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.

