# Ideogram V3 Character Edit

Edit and enhance images with Ideogram V3 Character Edit from fal through one Spiral API key. It runs in the background and returns images. Pay as you go, with no subscription.

- Provider: fal
- Category: Image
- Runs: In the background
- Returns: image
- Tool id: `fal` / `fal-ai/ideogram/character/edit`
- Page: https://spiral.ai/tools/fal/fal-ai/ideogram/character/edit

## Pricing

$0.065 per image. Billed on `num_images`, default 1.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `image_urls` | URLs or files |  | — | A set of images to use as style references (maximum total size 10MB across all style references). The images should be in JPEG, PNG or WebP format |
| `rendering_speed` | one of | TURBO, BALANCED, QUALITY | BALANCED | The rendering speed to use. |
| `color_palette` | JSON |  | — | A color palette for generation, must EITHER be specified via one of the presets (name) or explicitly via hexadecimal representations of the color with optional weights (members) |
| `style_codes` | list |  | — | A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style_reference_images or style |
| `expand_prompt` | true or false |  | true | Determine if MagicPrompt should be used in generating the request or not. |
| `num_images` | number (whole) | 1 to 8 | 1 | Number of images to generate. |
| `seed` | number (whole) |  | — | Seed for the random number generator |
| `prompt` (required) | text |  | — | The prompt to fill the masked part of the image. |
| `image_url` (required) | URL or file |  | — | The image URL to generate an image from. MUST have the exact same dimensions (width and height) as the mask image. |
| `mask_url` (required) | URL or file |  | — | The mask URL to inpaint the image. MUST have the exact same dimensions (width and height) as the input image. |
| `reference_image_urls` (required) | URLs or files |  | — | A set of images to use as character references. Currently only 1 image is supported, rest will be ignored. (maximum total size 10MB across all character references). The images should be in JPEG, PNG or WebP format |
| `reference_mask_urls` | list |  | — | A set of masks to apply to the character references. Currently only 1 mask is supported, rest will be ignored. (maximum total size 10MB across all character references). The masks should be in JPEG, PNG or WebP format |

## Example

```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/ideogram/character/edit",
    "input": {
      "prompt": "woman holding bag",
      "image_url": "https://v3.fal.media/files/panda/-LC_gNNV3wUHaGMQT3klE_output.png",
      "mask_url": "https://v3.fal.media/files/panda/jVDAgSkpsZFDP080ceSZJ_woman_face_mask.png",
      "reference_image_urls": [
        "<reference_image_urls>"
      ]
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=fal-ai%2Fideogram%2Fcharacter%2Fedit

## Common questions

### Ideogram V3 Character Edit

**How much does Ideogram V3 Character Edit cost?**

$0.065 per image. Billed on `num_images`, default 1. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Ideogram V3 Character Edit through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/ideogram/character/edit"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with fal to use Ideogram V3 Character Edit?**

No. Spiral runs it on its own fal account and charges your Spiral balance.

**Can my AI agent use Ideogram V3 Character Edit?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

