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

Google Antigravity · ImageReleased 2026-05-08

How to Use HiDream O1 Image Dev Edit in Google Antigravity

HiDream O1 Image Dev Edit changes existing images or places referenced subjects in new scenes. Unlike HiDream O1 Image Dev, it requires reference images, making it a fit for revising artwork and reusing established characters.

Prompts to try with HiDream O1 Image Dev Edit in Google Antigravity

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

Use HiDream O1 Image Dev Edit with the product image in this project's assets. Place the product on a wooden desk beside a window, preserve its visible shape and markings, and keep it centered.

HiDream O1 Image Dev EditGoogle Antigravity
Try asking
  • Use HiDream O1 Image Dev Edit to revise the project's event poster. Set the headline to "Community night" at the top and "Doors open at 6" along the bottom; preserve the central illustration.

  • Use HiDream O1 Image Dev Edit on the selected project illustration. Replace the red bicycle with a yellow bicycle, preserve the rider and street, and use 28 steps with guidance at zero.

  • Remove the background from the photo I attach with HiDream O1 Image Dev Edit and give me a transparent PNG. Save the result in ./assets.

  • Use HiDream O1 Image Dev Edit to clean up these product shots so they sit on pure white.

How to set up HiDream O1 Image Dev Edit in Google Antigravity

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

Use Spiral's MCP server

  1. Open the MCP config

    * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit ~/.gemini/config/mcp_config.json.

  2. Add the server

    Add Spiral under mcpServers:

    {
      "mcpServers": {
        "spiral": {
          "serverUrl": "https://api.spiral.ai/mcp"
        }
      }
    }
  3. Sign in

    In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

Use the Spiral skill

  1. Send Google Antigravity 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 HiDream O1 Image Dev Edit

    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/hidream-o1-image/dev/edit",
        "input": {
          "prompt": "A cinematic product photo of a ceramic mug on a marble counter, soft window light, shallow depth of field.",
          "reference_image_urls": [
            "<reference_image_urls>"
          ]
        }
      }'

Then paste one of the prompts above: Google Antigravity finds HiDream O1 Image Dev Edit on Spiral, shows the price and runs it.

HiDream O1 Image Dev Edit providers and prices

Spiral runs HiDream O1 Image Dev Edit through fal. Open a card for today's price, with every fee included.

falImage
Hidream O1 Image
fal-ai/hidream-o1-image/dev/edit

Settings you can ask for

HiDream O1 Image Dev Edit works from your prompt and reference image URLs. Ask Google Antigravity for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of inference steps1 to 2828

Number of denoising steps. The dev model is distilled for 28 steps.

Guidance scale0 to 200

Classifier-free guidance scale. The dev model uses 0.0 by default.

Seeda whole number

Random seed for reproducible generation.

Number of images1 to 41

Number of images to generate.

Output formatjpeg, png, or webppng

The format of the generated image.

Keep original aspecton or offoff

When exactly one reference image is provided, preserve its aspect ratio for the output image.

Every API field of Hidream O1 Image is on its tool page: open its card above.

What can you do with HiDream O1 Image Dev Edit in Google Antigravity?

Create and revise project artwork with controlled compositions, supplied text, and referenced subjects. A coding agent can turn design notes and existing assets into concrete image briefs for review.

Product scene concepts

Place a referenced product in a new setting, such as a ceramic mug on a breakfast table. Specify the product's position and which visible details to preserve.

Character scene illustrations

Use character references to illustrate a new scene. Describe the character's appearance, action, and position explicitly, then review identity consistency.

Poster revisions

Revise existing poster artwork with supplied headlines and a planned reading order. Identify the exact text and its intended location.

Storyboard sheets

Turn a referenced subject and scene brief into a storyboard image containing multiple panels. Describe each panel's action and composition separately.

Object replacements

Replace an object in an existing image through a written instruction. State the replacement clearly and identify the surrounding details to preserve.

Campaign scene exploration

Reuse referenced subjects across proposed campaign scenes. Compare backgrounds and compositions while keeping the subject description consistent.

Questions about HiDream O1 Image Dev Edit in Google Antigravity

Can Google Antigravity use HiDream O1 Image Dev Edit?

Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run HiDream O1 Image Dev Edit like any built-in tool.

How much does HiDream O1 Image Dev Edit cost in Google Antigravity?

$0.0065 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Default 4 MP per image. 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 Google Antigravity plan is separate.

Do I need a fal account to use HiDream O1 Image Dev Edit in Google Antigravity?

No. Spiral runs HiDream O1 Image Dev Edit on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up HiDream O1 Image Dev Edit in Google Antigravity?

About two minutes: open the MCP config, then add the server, then sign in.

Does Google Antigravity wait while HiDream O1 Image Dev Edit runs?

HiDream O1 Image Dev Edit runs in the background. Google Antigravity starts the run, checks on it and gives you the image when it's ready.

What is HiDream O1 Image Dev useful for?

Use it for images with planned text placement, changes to existing artwork, and new scenes featuring referenced subjects. Storyboard sheets are another documented use.

How large can HiDream O1 Image Dev images be?

Plan for output up to approximately 2048 × 2048 pixels. Reference-based results use the nearest supported resolution, so check the returned dimensions before placing an image in a fixed layout.

Can HiDream O1 Image Dev put text in images?

HiDream documents multilingual text rendering and placement across multiple regions. Include the exact wording, reading order, and intended location, then proofread the result before using it.

How should I describe a composition?

Specify where each important element belongs: foreground, background, top left, or bottom edge. For text, provide the complete copy and reading order instead of asking the model to invent them.

Which generation settings should I start with?

Start with 28 steps and guidance at zero, matching the maker's Dev inference recipe. Treat that as your baseline when comparing prompt revisions.

Get started

Start using HiDream O1 Image Dev Edit in Google Antigravity

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

Paste this into Google Antigravity:

Set up Google Antigravity

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