[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [HiDream O1 Image Dev Edit](https://spiral.ai/integrations/grok/hidream-o1-image-dev-edit)

# How to Use HiDream O1 Image Dev Edit in Grok

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.

|  |  |
| --- | --- |
| Model | HiDream O1 Image Dev Edit |
| Available through | fal |
| Category | Image |
| Price | $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. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with HiDream O1 Image Dev Edit in Grok

- Use HiDream O1 Image Dev Edit on the supplied room image. Replace the armchair with a green velvet chair, keep the window and table, and preserve the original image proportions.
- Use HiDream O1 Image Dev Edit with the supplied product photo. Place the ceramic mug on a breakfast table, preserve its handle and painted pattern, and leave space in the upper left.
- Remove the background from the photo I attach with HiDream O1 Image Dev Edit and give me a transparent PNG.
- Use HiDream O1 Image Dev Edit to clean up these product shots so they sit on pure white.
- Edit this image with HiDream O1 Image Dev Edit: keep the subject, swap the background for a sunlit studio.

## How to set up HiDream O1 Image Dev Edit in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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 HiDream O1 Image Dev Edit**: 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": "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: Grok finds HiDream O1 Image Dev Edit on Spiral, shows the price and runs it.

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

## HiDream O1 Image Dev Edit tools and prices

- [Hidream O1 Image](https://spiral.ai/tools/fal/fal-ai/hidream-o1-image/dev/edit) (fal): $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.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | {"width":2048,"height":2048} | Requested output image size. Reference-image outputs use the nearest model-supported resolution up to about 2048x2048 pixels. |
| num_inference_steps | 1 to 28 | 28 | Number of denoising steps. The dev model is distilled for 28 steps. |
| guidance_scale | 0 to 20 | 0 | Classifier-free guidance scale. The dev model uses 0.0 by default. |
| seed |  | — | Random seed for reproducible generation. |
| num_images | 1 to 4 | 1 | Number of images to generate. |
| output_format | jpeg, png, webp | png | The format of the generated image. |

## What can you do with HiDream O1 Image Dev Edit in Grok?

Turn a visual brief into artwork or revise an image through a conversation. A chat app can help specify composition, exact wording, and the details to preserve before generation.

### 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.

## Overview

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

## HiDream O1 Image Dev Edit in other agents

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

## More Grok guides

- [HiDream O1 Image Dev](https://spiral.ai/integrations/grok/hidream-o1-image-dev)
- [HiDream O1 Image Edit](https://spiral.ai/integrations/grok/hidream-o1-image-edit)
- [HiDream O1 Image](https://spiral.ai/integrations/grok/hidream-o1-image)
- [HunyuanImage 2.1](https://spiral.ai/integrations/grok/hunyuanimage-2-1)
- [HiDream I1 Full](https://spiral.ai/integrations/grok/hidream-i1-full)
- [HunyuanImage 3.0](https://spiral.ai/integrations/grok/hunyuanimage-3-0)

## Questions about HiDream O1 Image Dev Edit in Grok

**Can Grok use HiDream O1 Image Dev Edit?**

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

**How much does HiDream O1 Image Dev Edit cost in Grok?**

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

**Do I need a fal account to use HiDream O1 Image Dev Edit in Grok?**

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 Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while HiDream O1 Image Dev Edit runs?**

HiDream O1 Image Dev Edit runs in the background. Grok 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.

