Spiral gives your agent every tool with one account. Browse the tools →

opencode · Image

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.

Prompts to try with Juggernaut Flux Base in opencode

Copy an example into opencode, or ask in your own words.

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.

Juggernaut Flux Baseopencode
Try asking
  • 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.

    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.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    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.

    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.

    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.

Juggernaut Flux Base providers and prices

Spiral runs Juggernaut Flux Base through fal. Open a card for today's price, with every fee included.

falImage
Juggernaut Flux Base
rundiffusion-fal/juggernaut-flux/base

Settings you can ask for

Juggernaut Flux Base works from your prompt. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of inference steps1 to 5028

The number of inference steps to perform.

Seeda whole number

The same seed and the same prompt given to the same version of the model

will output the same image every time.

Guidance scale (CFG)1 to 203.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.

Number of images1 to 41

The number of images to generate.

Output formatjpeg or pngpng

The format of the generated image.

Every API field of Juggernaut Flux Base is on its tool page: open its card above.

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.

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.

Get started

Start using Juggernaut Flux Base in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options