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

Gemini · ImageReleased 2024-08-01

How to Use FLUX.1 Dev in Gemini

FLUX.1 Dev turns written descriptions into images for editorial illustrations, product concepts, and scene studies. Black Forest Labs places its image quality below FLUX.1 Pro, with adjustable guidance and generation steps for refining results.

Prompts to try with FLUX.1 Dev in Gemini

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

Use FLUX.1 Dev to create a square illustration, 1024 pixels on each side, of a fox reading beneath a large oak tree. Use watercolor, autumn leaves, soft afternoon light, and an eye-level view.

FLUX.1 DevGemini
Try asking
  • Use FLUX.1 Dev to create a landscape image, 1360 pixels wide by 768 tall, of a fictional ceramic coffee dripper on a walnut table. Show pale blue glaze, soft window light from the left, and a close view of the material.

  • Use FLUX.1 Dev to create a portrait image, 768 pixels wide by 1024 tall, for a mystery book cover. Show a solitary lighthouse above a foggy harbor, painted in ink and muted watercolor, with open sky at the top for a title.

  • Use FLUX.1 Dev to create a square image, 1024 pixels on each side, of a compact reading room. Show oak shelving, a rust-colored armchair, linen curtains, and overcast daylight. Frame it from the doorway so the furniture arrangement is visible.

  • Use FLUX.1 Dev to illustrate a complicated workflow as a tangled garden hose beside a neatly coiled hose. Make a landscape image, 1360 pixels wide by 768 tall, with colored pencil texture and a simple garden setting.

How to set up FLUX.1 Dev in Gemini

Pick the way that suits you. Each takes about two minutes.

Use the Gemini connector

  1. Open Connected Apps

    On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

  2. Add Spiral as a custom app

    Under Custom apps, click Add a custom app and paste this MCP server URL:

    https://api.spiral.ai/mcp
  3. Sign in to Spiral and approve

    Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

Use the Spiral skill

  1. Send Gemini 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 FLUX.1 Dev

    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": "fal-ai/flux-1/dev",
        "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: Gemini finds FLUX.1 Dev on Spiral, shows the price and runs it.

FLUX.1 Dev providers and prices

Spiral runs FLUX.1 Dev through fal and fal. Open a card for today's price, with every fee included. Name one in your prompt, or let Gemini pick.

falImage
falImage

Settings you can ask for

FLUX.1 Dev works from your prompt. Ask Gemini 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 pngjpeg

The format of the generated image.

Accelerationnone, regular, or highnone

The speed of the generation. The higher the speed, the faster the generation.

Every API field of FLUX.1 [dev] · Text to Image is on its tool page: open its card above.

What can you do with FLUX.1 Dev in Gemini?

Turn an idea discussed in chat into a concrete image for review. Ask for a clearly described subject, setting, and visual style, then refine the brief after inspecting the result.

Article illustrations

Turn an article's central idea into a visual metaphor, such as a tangled garden hose representing a complicated workflow.

Website artwork

Create an original scene from a written brief, specifying the subject's placement and leaving room for a heading.

Fictional product concepts

Explore a proposed object's shape, materials, and lighting before commissioning a prototype or arranging a photo shoot.

Game environment studies

Develop visual directions for a location by describing its architecture, weather, time of day, and camera position.

Cover artwork

Draft an illustrated book or podcast cover from a scene description, reserving space for lettering added during layout.

Interior design studies

Compare written room concepts with different furniture, materials, and light. Use the results to discuss appearance during planning.

Campaign visual exploration

Try several compositions for one campaign brief, keeping the subject and palette explicit while changing one creative choice at a time.

Questions about FLUX.1 Dev in Gemini

Can Gemini use FLUX.1 Dev?

Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run FLUX.1 Dev like any built-in tool.

How much does FLUX.1 Dev cost in Gemini?

$0.0325 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 Gemini plan is separate.

Do I need a fal account to use FLUX.1 Dev in Gemini?

No. Spiral runs FLUX.1 Dev 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 Dev in Gemini?

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

Does Gemini wait while FLUX.1 Dev runs?

FLUX.1 Dev runs in the background. Gemini starts the run, checks on it and gives you the image when it's ready.

What should I use FLUX.1 Dev for?

Use it to turn a written visual brief into an image. Practical starting points include article illustrations, fictional product concepts, scene studies, and website artwork.

What image resolution does FLUX.1 Dev support?

Black Forest Labs describes FLUX.1 as supporting different aspect ratios and resolutions from 0.1 to 2.0 megapixels. For a starting point, try a 1024 × 1024 square.

How should I write a FLUX.1 Dev prompt?

Write a short visual description in complete sentences. Name the subject, its action, the setting, lighting, and desired medium; describe what should appear using positive language.

How long can a FLUX.1 Dev prompt be?

Its T5 encoder supports up to 512 tokens. Treat that as a ceiling: start with a focused paragraph and add details only when they help define the image.

Should I increase guidance to improve FLUX.1 Dev results?

Start around 3.5 and inspect the result before increasing it. Higher guidance encourages closer adherence to the prompt, but it can reduce image quality.

Get started

Start using FLUX.1 Dev in Gemini

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

Paste this into Gemini:

Set up Gemini

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