> ## Documentation Index
> Fetch the complete documentation index at: https://fal.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> fal has two developer products. Model APIs run hosted models through an API key. fal Serverless deploys your own Python apps and models on fal GPUs.
> To call a hosted model, start with the [Quick Start](https://fal.ai/docs/documentation/quickstart.md) and the [Model APIs overview](https://fal.ai/docs/documentation/model-apis/overview.md).
> To deploy your own model with fal Serverless, start with these pages:
> - [Introduction to Serverless](https://fal.ai/docs/documentation/serverless/index.md): What fal Serverless is and the three ways to deploy on it.
> - [Installation & Setup](https://fal.ai/docs/documentation/development/getting-started/installation.md): Install the fal CLI with `pip install fal` and authenticate.
> - [Quick Start](https://fal.ai/docs/documentation/development/getting-started/quick-start.md): Build a Hello World app, test it with `fal run`, and ship it with `fal deploy`.
> - [App Lifecycle](https://fal.ai/docs/documentation/development/app-lifecycle.md): How a `fal.App` goes from code to running runners.
> - [Define Your Endpoints](https://fal.ai/docs/documentation/development/endpoints-overview.md): Structure the API endpoints that your app exposes.
> - [Deploy to Production](https://fal.ai/docs/documentation/deployment/deploy-to-production.md): Persistent URLs, authentication modes, and automatic scaling.
> - [Machine Types](https://fal.ai/docs/documentation/deployment/machine-types.md): Available GPU and CPU machine types and how to choose one.
> - [Pricing](https://fal.ai/docs/documentation/serverless/pricing.md): Per-second billing and the runner states that are billed.
> - [Scaling Parameter Reference](https://fal.ai/docs/documentation/deployment/scale-your-application.md): Parameters that control runners, concurrency, and scale to zero.
> - [Optimizing Cold Starts](https://fal.ai/docs/documentation/serverless/optimizations/optimize-cold-starts.md): Causes of cold starts and ways to make them shorter.
> - [Examples](https://fal.ai/docs/examples/index.md): Complete Serverless apps for image, video, audio, 3D, realtime, and multi-GPU workloads.
> - [Migrating to fal](https://fal.ai/docs/documentation/development/migrating-to-fal.md): Guides to move an existing Docker server or an app from another platform to fal.
> fal Serverless deploys need access that the fal team approves for each account. Request access at https://fal.ai/dashboard/serverless-get-started.

# Ideogram V3 API

> API reference for Ideogram V3. Generate high-quality images, posters, and logos with Ideogram V3. Features exceptional typography handling and realistic outputs optimized for commercial and creative u

> [tab] V3
>
> **Endpoint:** `POST https://fal.run/fal-ai/ideogram/v3`
> **Endpoint ID:** `fal-ai/ideogram/v3`
>
> > [card] [Try it in the Playground](https://fal.ai/models/fal-ai/ideogram/v3/playground)
> >
> > Run this model interactively with your own prompts.
>
> ### Quick Start
>
> ```python title="Python" theme={null}
> import fal_client
>
> def on_queue_update(update):
>     if isinstance(update, fal_client.InProgress):
>         for log in update.logs:
>            print(log["message"])
>
> result = fal_client.subscribe(
>     "fal-ai/ideogram/v3",
>     arguments={
>         "prompt": "The Bone Forest stretched across the horizon, its trees fashioned from the ossified remains of ancient leviathans that once swam through the sky. Shamans with antlers growing from their shoulders and eyes that revealed the true nature of any being they beheld conducted rituals to commune with the spirits that still inhabited the calcified grove. In sky writes \"Ideogram V3 in fal.ai\""
>     },
>     with_logs=True,
>     on_queue_update=on_queue_update,
> )
> print(result)
> ```
>
> ```javascript title="JavaScript" theme={null}
> import { fal } from "@fal-ai/client";
>
> const result = await fal.subscribe("fal-ai/ideogram/v3", {
>   input: {
>       prompt: "The Bone Forest stretched across the horizon, its trees fashioned from the ossified remains of ancient leviathans that once swam through the sky. Shamans with antlers growing from their shoulders and eyes that revealed the true nature of any being they beheld conducted rituals to commune with the spirits that still inhabited the calcified grove. In sky writes \"Ideogram V3 in fal.ai\""
>     },
>   logs: true,
>   onQueueUpdate: (update) => {
>     if (update.status === "IN_PROGRESS") {
>       update.logs.map((log) => log.message).forEach(console.log);
>     }
>   },
> });
> console.log(result.data);
> console.log(result.requestId);
> ```
>
> ```bash title="cURL" theme={null}
> curl --request POST \
>   --url https://fal.run/fal-ai/ideogram/v3 \
>   --header "Authorization: Key $FAL_KEY" \
>   --header "Content-Type: application/json" \
>   --data '{
>   "prompt": "The Bone Forest stretched across the horizon, its trees fashioned from the ossified remains of ancient leviathans that once swam through the sky. Shamans with antlers growing from their shoulders and eyes that revealed the true nature of any being they beheld conducted rituals to commune with the spirits that still inhabited the calcified grove. In sky writes \"Ideogram V3 in fal.ai\""
> }'
> ```
>
> ### Input Schema
>
> **image\_urls** `list\<string\>`
>
> 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** `RenderingSpeedEnum` (default: BALANCED)
>
> The rendering speed to use. Default value: `"BALANCED"`
>
> Possible values: `TURBO`, `BALANCED`, `QUALITY`
>
> **color\_palette** `ColorPalette`
>
> 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\<string\>`
>
> A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style\_reference\_images or style
>
> **style** `Enum`
>
> The style type to generate with. Cannot be used with style\_codes.
>
> Possible values: `AUTO`, `GENERAL`, `REALISTIC`, `DESIGN`
>
> **expand\_prompt** `boolean` (default: true)
>
> Determine if MagicPrompt should be used in generating the request or not. Default value: `true`
>
> **num\_images** `integer` (default: 1)
>
> Number of images to generate. Default value: `1`
>
> Range: `1` to `8`
>
> **seed** `integer`
>
> Seed for the random number generator
>
> **sync\_mode** `boolean` (default: false)
>
> If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
>
> **style\_preset** `Enum`
>
> Style preset for generation. The chosen style preset will guide the generation.
>
> Possible values: `80S_ILLUSTRATION`, `90S_NOSTALGIA`, `ABSTRACT_ORGANIC`, `ANALOG_NOSTALGIA`, `ART_BRUT`, `ART_DECO`, `ART_POSTER`, `AURA`, `AVANT_GARDE`, `BAUHAUS`, `BLUEPRINT`, `BLURRY_MOTION`, `BRIGHT_ART`, `C4D_CARTOON`, `CHILDRENS_BOOK`, `COLLAGE`, `COLORING_BOOK_I`, `COLORING_BOOK_II`, `CUBISM`, `DARK_AURA`, `DOODLE`, `DOUBLE_EXPOSURE`, `DRAMATIC_CINEMA`, `EDITORIAL`, `EMOTIONAL_MINIMAL`, `ETHEREAL_PARTY`, `EXPIRED_FILM`, `FLAT_ART`, `FLAT_VECTOR`, `FOREST_REVERIE`, `GEO_MINIMALIST`, `GLASS_PRISM`, `GOLDEN_HOUR`, `GRAFFITI_I`, `GRAFFITI_II`, `HALFTONE_PRINT`, `HIGH_CONTRAST`, `HIPPIE_ERA`, `ICONIC`, `JAPANDI_FUSION`, `JAZZY`, `LONG_EXPOSURE`, `MAGAZINE_EDITORIAL`, `MINIMAL_ILLUSTRATION`, `MIXED_MEDIA`, `MONOCHROME`, `NIGHTLIFE`, `OIL_PAINTING`, `OLD_CARTOONS`, `PAINT_GESTURE`, `POP_ART`, `RETRO_ETCHING`, `RIVIERA_POP`, `SPOTLIGHT_80S`, `STYLIZED_RED`, `SURREAL_COLLAGE`, `TRAVEL_POSTER`, `VINTAGE_GEO`, `VINTAGE_POSTER`, `WATERCOLOR`, `WEIRD`, `WOODBLOCK_PRINT`
>
> **prompt** `string` *required*
>
> **image\_size** `ImageSize | Enum` (default: square\_hd)
>
> The resolution of the generated image Default value: `square_hd`
>
> Possible values: `square_hd`, `square`, `portrait_4_3`, `portrait_16_9`, `landscape_4_3`, `landscape_16_9`
>
> **negative\_prompt** `string`
>
> Description of what to exclude from an image. Descriptions in the prompt take precedence to descriptions in the negative prompt. Default value: `""`
>
> ### Output Schema
>
> **images** `list\<File\>` *required*
>
> **seed** `integer` *required*
>
> Seed used for the random number generator
>
> ### Input Example
>
> ```json theme={null}
> {
>   "rendering_speed": "BALANCED",
>   "expand_prompt": true,
>   "num_images": 1,
>   "sync_mode": false,
>   "prompt": "The Bone Forest stretched across the horizon, its trees fashioned from the ossified remains of ancient leviathans that once swam through the sky. Shamans with antlers growing from their shoulders and eyes that revealed the true nature of any being they beheld conducted rituals to commune with the spirits that still inhabited the calcified grove. In sky writes \"Ideogram V3 in fal.ai\"",
>   "image_size": "square_hd",
>   "negative_prompt": ""
> }
> ```
>
> ### Output Example
>
> ```json theme={null}
> {
>   "images": [
>     {
>       "url": "https://v3.fal.media/files/penguin/lHdRabS80guysb8Zw1kul_image.png"
>     }
>   ],
>   "seed": 123456
> }
> ```

> [tab] Reframe
>
> **Endpoint:** `POST https://fal.run/fal-ai/ideogram/v3/reframe`
> **Endpoint ID:** `fal-ai/ideogram/v3/reframe`
>
> > [card] [Try it in the Playground](https://fal.ai/models/fal-ai/ideogram/v3/reframe/playground)
> >
> > Run this model interactively with your own prompts.
>
> ### Quick Start
>
> ```python title="Python" theme={null}
> import fal_client
>
> def on_queue_update(update):
>     if isinstance(update, fal_client.InProgress):
>         for log in update.logs:
>            print(log["message"])
>
> result = fal_client.subscribe(
>     "fal-ai/ideogram/v3/reframe",
>     arguments={
>         "image_url": "https://v3.fal.media/files/lion/0qJs_qW8nz0wYsXhFa6Tk.png",
>         "image_size": "square_hd"
>     },
>     with_logs=True,
>     on_queue_update=on_queue_update,
> )
> print(result)
> ```
>
> ```javascript title="JavaScript" theme={null}
> import { fal } from "@fal-ai/client";
>
> const result = await fal.subscribe("fal-ai/ideogram/v3/reframe", {
>   input: {
>       image_url: "https://v3.fal.media/files/lion/0qJs_qW8nz0wYsXhFa6Tk.png",
>       image_size: "square_hd"
>     },
>   logs: true,
>   onQueueUpdate: (update) => {
>     if (update.status === "IN_PROGRESS") {
>       update.logs.map((log) => log.message).forEach(console.log);
>     }
>   },
> });
> console.log(result.data);
> console.log(result.requestId);
> ```
>
> ```bash title="cURL" theme={null}
> curl --request POST \
>   --url https://fal.run/fal-ai/ideogram/v3/reframe \
>   --header "Authorization: Key $FAL_KEY" \
>   --header "Content-Type: application/json" \
>   --data '{
>   "image_url": "https://v3.fal.media/files/lion/0qJs_qW8nz0wYsXhFa6Tk.png",
>   "image_size": "square_hd"
> }'
> ```
>
> ### Input Schema
>
> **image\_urls** `list\<string\>`
>
> 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** `RenderingSpeedEnum` (default: BALANCED)
>
> The rendering speed to use. Default value: `"BALANCED"`
>
> Possible values: `TURBO`, `BALANCED`, `QUALITY`
>
> **color\_palette** `ColorPalette`
>
> 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\<string\>`
>
> A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style\_reference\_images or style
>
> **style** `Enum`
>
> The style type to generate with. Cannot be used with style\_codes.
>
> Possible values: `AUTO`, `GENERAL`, `REALISTIC`, `DESIGN`
>
> **num\_images** `integer` (default: 1)
>
> Number of images to generate. Default value: `1`
>
> Range: `1` to `8`
>
> **seed** `integer`
>
> Seed for the random number generator
>
> **sync\_mode** `boolean` (default: false)
>
> If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
>
> **style\_preset** `Enum`
>
> Style preset for generation. The chosen style preset will guide the generation.
>
> Possible values: `80S_ILLUSTRATION`, `90S_NOSTALGIA`, `ABSTRACT_ORGANIC`, `ANALOG_NOSTALGIA`, `ART_BRUT`, `ART_DECO`, `ART_POSTER`, `AURA`, `AVANT_GARDE`, `BAUHAUS`, `BLUEPRINT`, `BLURRY_MOTION`, `BRIGHT_ART`, `C4D_CARTOON`, `CHILDRENS_BOOK`, `COLLAGE`, `COLORING_BOOK_I`, `COLORING_BOOK_II`, `CUBISM`, `DARK_AURA`, `DOODLE`, `DOUBLE_EXPOSURE`, `DRAMATIC_CINEMA`, `EDITORIAL`, `EMOTIONAL_MINIMAL`, `ETHEREAL_PARTY`, `EXPIRED_FILM`, `FLAT_ART`, `FLAT_VECTOR`, `FOREST_REVERIE`, `GEO_MINIMALIST`, `GLASS_PRISM`, `GOLDEN_HOUR`, `GRAFFITI_I`, `GRAFFITI_II`, `HALFTONE_PRINT`, `HIGH_CONTRAST`, `HIPPIE_ERA`, `ICONIC`, `JAPANDI_FUSION`, `JAZZY`, `LONG_EXPOSURE`, `MAGAZINE_EDITORIAL`, `MINIMAL_ILLUSTRATION`, `MIXED_MEDIA`, `MONOCHROME`, `NIGHTLIFE`, `OIL_PAINTING`, `OLD_CARTOONS`, `PAINT_GESTURE`, `POP_ART`, `RETRO_ETCHING`, `RIVIERA_POP`, `SPOTLIGHT_80S`, `STYLIZED_RED`, `SURREAL_COLLAGE`, `TRAVEL_POSTER`, `VINTAGE_GEO`, `VINTAGE_POSTER`, `WATERCOLOR`, `WEIRD`, `WOODBLOCK_PRINT`
>
> **image\_url** `string` *required*
>
> The image URL to reframe
>
> **image\_size** `ImageSize | Enum` *required*
>
> The resolution for the reframed output image
>
> Possible values: `square_hd`, `square`, `portrait_4_3`, `portrait_16_9`, `landscape_4_3`, `landscape_16_9`
>
> ### Output Schema
>
> **images** `list\<File\>` *required*
>
> **seed** `integer` *required*
>
> Seed used for the random number generator
>
> ### Input Example
>
> ```json theme={null}
> {
>   "rendering_speed": "BALANCED",
>   "num_images": 1,
>   "sync_mode": false,
>   "image_url": "https://v3.fal.media/files/lion/0qJs_qW8nz0wYsXhFa6Tk.png",
>   "image_size": "square_hd"
> }
> ```
>
> ### Output Example
>
> ```json theme={null}
> {
>   "images": [
>     {
>       "url": "https://v3.fal.media/files/zebra/LVW4AhVs3sCxsVKdg3EfT_image.png"
>     }
>   ],
>   "seed": 123456
> }
> ```

> [tab] Generate Transparent
>
> **Endpoint:** `POST https://fal.run/fal-ai/ideogram/v3/generate-transparent`
> **Endpoint ID:** `fal-ai/ideogram/v3/generate-transparent`
>
> > [card] [Try it in the Playground](https://fal.ai/models/fal-ai/ideogram/v3/generate-transparent/playground)
> >
> > Run this model interactively with your own prompts.
>
> ### Quick Start
>
> ```python title="Python" theme={null}
> import fal_client
>
> def on_queue_update(update):
>     if isinstance(update, fal_client.InProgress):
>         for log in update.logs:
>            print(log["message"])
>
> result = fal_client.subscribe(
>     "fal-ai/ideogram/v3/generate-transparent",
>     arguments={
>         "prompt": "A logo for Ideogram Coffee."
>     },
>     with_logs=True,
>     on_queue_update=on_queue_update,
> )
> print(result)
> ```
>
> ```javascript title="JavaScript" theme={null}
> import { fal } from "@fal-ai/client";
>
> const result = await fal.subscribe("fal-ai/ideogram/v3/generate-transparent", {
>   input: {
>       prompt: "A logo for Ideogram Coffee."
>     },
>   logs: true,
>   onQueueUpdate: (update) => {
>     if (update.status === "IN_PROGRESS") {
>       update.logs.map((log) => log.message).forEach(console.log);
>     }
>   },
> });
> console.log(result.data);
> console.log(result.requestId);
> ```
>
> ```bash title="cURL" theme={null}
> curl --request POST \
>   --url https://fal.run/fal-ai/ideogram/v3/generate-transparent \
>   --header "Authorization: Key $FAL_KEY" \
>   --header "Content-Type: application/json" \
>   --data '{
>   "prompt": "A logo for Ideogram Coffee."
> }'
> ```
>
> ## Examples
>
> > A low-poly 3D fox sitting upright, in warm orange and white geometric facets
>
> ![Generated image: A low-poly 3D fox sitting upright, in warm orange and white geometric facets](https://v3b.fal.media/files/b/0a954d91/792FF8-bFC7lEaJ5KQ1n8_image.png)
>
> ### Input Schema
>
> **prompt** `string` *required*
>
> **aspect\_ratio** `AspectRatioEnum` (default: 1:1)
>
> The aspect ratio of the generated image. Default value: `"1:1"`
>
> Possible values: `1:3`, `3:1`, `1:2`, `2:1`, `9:16`, `16:9`, `10:16`, `16:10`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `1:1`
>
> **rendering\_speed** `RenderingSpeedEnum` (default: BALANCED)
>
> The rendering speed to use. Default value: `"BALANCED"`
>
> Possible values: `FLASH`, `TURBO`, `BALANCED`, `QUALITY`
>
> **expand\_prompt** `boolean` (default: true)
>
> Determine if MagicPrompt should be used in generating the request or not. Default value: `true`
>
> **negative\_prompt** `string`
>
> Description of what to exclude from an image. Descriptions in the prompt take precedence to descriptions in the negative prompt. Default value: `""`
>
> **num\_images** `integer` (default: 1)
>
> Number of images to generate. Default value: `1`
>
> Range: `1` to `8`
>
> **seed** `integer`
>
> Seed for the random number generator
>
> **sync\_mode** `boolean` (default: false)
>
> If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
>
> ### Output Schema
>
> **images** `list\<File\>` *required*
>
> **seed** `integer` *required*
>
> Seed used for the random number generator
>
> ### Input Example
>
> ```json theme={null}
> {
>   "prompt": "A logo for Ideogram Coffee.",
>   "aspect_ratio": "1:1",
>   "rendering_speed": "BALANCED",
>   "expand_prompt": true,
>   "negative_prompt": "",
>   "num_images": 1,
>   "sync_mode": false
> }
> ```
>
> ### Output Example
>
> ```json theme={null}
> {
>   "images": [
>     {
>       "url": "https://v3.fal.media/files/lion/AUfCjtLkLOsdc9zEFrV-5_image.png"
>     }
>   ],
>   "seed": 123456
> }
> ```

> [tab] Edit
>
> **Endpoint:** `POST https://fal.run/fal-ai/ideogram/v3/edit`
> **Endpoint ID:** `fal-ai/ideogram/v3/edit`
>
> > [card] [Try it in the Playground](https://fal.ai/models/fal-ai/ideogram/v3/edit/playground)
> >
> > Run this model interactively with your own prompts.
>
> ### Quick Start
>
> ```python title="Python" theme={null}
> import fal_client
>
> def on_queue_update(update):
>     if isinstance(update, fal_client.InProgress):
>         for log in update.logs:
>            print(log["message"])
>
> result = fal_client.subscribe(
>     "fal-ai/ideogram/v3/edit",
>     arguments={
>         "prompt": "black bag",
>         "image_url": "https://v3.fal.media/files/panda/-LC_gNNV3wUHaGMQT3klE_output.png",
>         "mask_url": "https://v3.fal.media/files/kangaroo/1dd3zEL5MXQ3Kb4-mRi9d_indir%20(20).png"
>     },
>     with_logs=True,
>     on_queue_update=on_queue_update,
> )
> print(result)
> ```
>
> ```javascript title="JavaScript" theme={null}
> import { fal } from "@fal-ai/client";
>
> const result = await fal.subscribe("fal-ai/ideogram/v3/edit", {
>   input: {
>       prompt: "black bag",
>       image_url: "https://v3.fal.media/files/panda/-LC_gNNV3wUHaGMQT3klE_output.png",
>       mask_url: "https://v3.fal.media/files/kangaroo/1dd3zEL5MXQ3Kb4-mRi9d_indir%20(20).png"
>     },
>   logs: true,
>   onQueueUpdate: (update) => {
>     if (update.status === "IN_PROGRESS") {
>       update.logs.map((log) => log.message).forEach(console.log);
>     }
>   },
> });
> console.log(result.data);
> console.log(result.requestId);
> ```
>
> ```bash title="cURL" theme={null}
> curl --request POST \
>   --url https://fal.run/fal-ai/ideogram/v3/edit \
>   --header "Authorization: Key $FAL_KEY" \
>   --header "Content-Type: application/json" \
>   --data '{
>   "prompt": "black bag",
>   "image_url": "https://v3.fal.media/files/panda/-LC_gNNV3wUHaGMQT3klE_output.png",
>   "mask_url": "https://v3.fal.media/files/kangaroo/1dd3zEL5MXQ3Kb4-mRi9d_indir%20(20).png"
> }'
> ```
>
> ### Input Schema
>
> **image\_urls** `list\<string\>`
>
> 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** `RenderingSpeedEnum` (default: BALANCED)
>
> The rendering speed to use. Default value: `"BALANCED"`
>
> Possible values: `TURBO`, `BALANCED`, `QUALITY`
>
> **color\_palette** `ColorPalette`
>
> 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\<string\>`
>
> 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** `boolean` (default: true)
>
> Determine if MagicPrompt should be used in generating the request or not. Default value: `true`
>
> **num\_images** `integer` (default: 1)
>
> Number of images to generate. Default value: `1`
>
> Range: `1` to `8`
>
> **seed** `integer`
>
> Seed for the random number generator
>
> **sync\_mode** `boolean` (default: false)
>
> If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
>
> **style\_preset** `Enum`
>
> Style preset for generation. The chosen style preset will guide the generation.
>
> Possible values: `80S_ILLUSTRATION`, `90S_NOSTALGIA`, `ABSTRACT_ORGANIC`, `ANALOG_NOSTALGIA`, `ART_BRUT`, `ART_DECO`, `ART_POSTER`, `AURA`, `AVANT_GARDE`, `BAUHAUS`, `BLUEPRINT`, `BLURRY_MOTION`, `BRIGHT_ART`, `C4D_CARTOON`, `CHILDRENS_BOOK`, `COLLAGE`, `COLORING_BOOK_I`, `COLORING_BOOK_II`, `CUBISM`, `DARK_AURA`, `DOODLE`, `DOUBLE_EXPOSURE`, `DRAMATIC_CINEMA`, `EDITORIAL`, `EMOTIONAL_MINIMAL`, `ETHEREAL_PARTY`, `EXPIRED_FILM`, `FLAT_ART`, `FLAT_VECTOR`, `FOREST_REVERIE`, `GEO_MINIMALIST`, `GLASS_PRISM`, `GOLDEN_HOUR`, `GRAFFITI_I`, `GRAFFITI_II`, `HALFTONE_PRINT`, `HIGH_CONTRAST`, `HIPPIE_ERA`, `ICONIC`, `JAPANDI_FUSION`, `JAZZY`, `LONG_EXPOSURE`, `MAGAZINE_EDITORIAL`, `MINIMAL_ILLUSTRATION`, `MIXED_MEDIA`, `MONOCHROME`, `NIGHTLIFE`, `OIL_PAINTING`, `OLD_CARTOONS`, `PAINT_GESTURE`, `POP_ART`, `RETRO_ETCHING`, `RIVIERA_POP`, `SPOTLIGHT_80S`, `STYLIZED_RED`, `SURREAL_COLLAGE`, `TRAVEL_POSTER`, `VINTAGE_GEO`, `VINTAGE_POSTER`, `WATERCOLOR`, `WEIRD`, `WOODBLOCK_PRINT`
>
> **prompt** `string` *required*
>
> The prompt to fill the masked part of the image.
>
> **image\_url** `string` *required*
>
> The image URL to generate an image from. MUST have the exact same dimensions (width and height) as the mask image.
>
> **mask\_url** `string` *required*
>
> The mask URL to inpaint the image. MUST have the exact same dimensions (width and height) as the input image.
>
> ### Output Schema
>
> **images** `list\<File\>` *required*
>
> **seed** `integer` *required*
>
> Seed used for the random number generator
>
> ### Input Example
>
> ```json theme={null}
> {
>   "rendering_speed": "BALANCED",
>   "expand_prompt": true,
>   "num_images": 1,
>   "sync_mode": false,
>   "prompt": "black bag",
>   "image_url": "https://v3.fal.media/files/panda/-LC_gNNV3wUHaGMQT3klE_output.png",
>   "mask_url": "https://v3.fal.media/files/kangaroo/1dd3zEL5MXQ3Kb4-mRi9d_indir%20(20).png"
> }
> ```
>
> ### Output Example
>
> ```json theme={null}
> {
>   "images": [
>     {
>       "url": "https://v3.fal.media/files/panda/xr7EI_0X5kM8fDOjjcMei_image.png"
>     }
>   ],
>   "seed": 123456
> }
> ```

> [tab] Layerize Text
>
> **Endpoint:** `POST https://fal.run/fal-ai/ideogram/v3/layerize-text`
> **Endpoint ID:** `fal-ai/ideogram/v3/layerize-text`
>
> > [card] [Try it in the Playground](https://fal.ai/models/fal-ai/ideogram/v3/layerize-text/playground)
> >
> > Run this model interactively with your own prompts.
>
> ### Quick Start
>
> ```python title="Python" theme={null}
> import fal_client
>
> def on_queue_update(update):
>     if isinstance(update, fal_client.InProgress):
>         for log in update.logs:
>            print(log["message"])
>
> result = fal_client.subscribe(
>     "fal-ai/ideogram/v3/layerize-text",
>     arguments={
>         "image_url": "https://v3.fal.media/files/lion/0qJs_qW8nz0wYsXhFa6Tk.png"
>     },
>     with_logs=True,
>     on_queue_update=on_queue_update,
> )
> print(result)
> ```
>
> ```javascript title="JavaScript" theme={null}
> import { fal } from "@fal-ai/client";
>
> const result = await fal.subscribe("fal-ai/ideogram/v3/layerize-text", {
>   input: {
>       image_url: "https://v3.fal.media/files/lion/0qJs_qW8nz0wYsXhFa6Tk.png"
>     },
>   logs: true,
>   onQueueUpdate: (update) => {
>     if (update.status === "IN_PROGRESS") {
>       update.logs.map((log) => log.message).forEach(console.log);
>     }
>   },
> });
> console.log(result.data);
> console.log(result.requestId);
> ```
>
> ```bash title="cURL" theme={null}
> curl --request POST \
>   --url https://fal.run/fal-ai/ideogram/v3/layerize-text \
>   --header "Authorization: Key $FAL_KEY" \
>   --header "Content-Type: application/json" \
>   --data '{
>   "image_url": "https://v3.fal.media/files/lion/0qJs_qW8nz0wYsXhFa6Tk.png"
> }'
> ```
>
> ## Examples
>
> ![Example output from Ideogram](https://v3b.fal.media/files/b/0a9552a2/Nw6eNYNT6_UzsiMsVI9f9_image.png)
>
> ![Example output from Ideogram](https://v3b.fal.media/files/b/0a955269/sCOtM2vExnZl_Qk9bUBq5_image.png)
>
> ### Input Schema
>
> **image\_url** `string` *required*
>
> URL of the flat graphic image to layerize. Must be JPEG, PNG, or WebP (max 10MB).
>
> **prompt** `string`
>
> Optional prompt to guide the layerization.
>
> **seed** `integer`
>
> Seed for the random number generator.
>
> **font\_file\_h1\_url** `string`
>
> URL of the font file to use for h1 text. Cannot be used with font\_name\_h1.
>
> **font\_name\_h1** `string`
>
> Name of the font to use for h1 text. Cannot be used with font\_file\_h1\_url.
>
> **font\_file\_h2\_url** `string`
>
> URL of the font file to use for h2 text. Cannot be used with font\_name\_h2.
>
> **font\_name\_h2** `string`
>
> Name of the font to use for h2 text. Cannot be used with font\_file\_h2\_url.
>
> **font\_file\_body\_url** `string`
>
> URL of the font file to use for body text. Cannot be used with font\_name\_body.
>
> **font\_name\_body** `string`
>
> Name of the font to use for body text. Cannot be used with font\_file\_body\_url.
>
> **font\_file\_small\_url** `string`
>
> URL of the font file to use for small text. Cannot be used with font\_name\_small.
>
> **font\_name\_small** `string`
>
> Name of the font to use for small text. Cannot be used with font\_file\_small\_url.
>
> **sync\_mode** `boolean` (default: false)
>
> If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
>
> ### Output Schema
>
> **image** `File` *required*
>
> The background image with text removed.
>
> **prompt** `string` *required*
>
> The prompt used for layerization. May differ from the input prompt if MagicPrompt expanded it.
>
> **text\_containers** `list\<object\>`
>
> Structured text containers with hierarchical text data (container -> items -> spans).
>
> **text\_html** `string`
>
> Rendered overlay HTML for compositing text over the background image.
>
> **image\_layers** `list\<object\>`
>
> Image layers extracted from the design.
>
> **seed** `integer` *required*
>
> Seed used for the random number generator.
>
> ### Input Example
>
> ```json theme={null}
> {
>   "image_url": "https://v3.fal.media/files/lion/0qJs_qW8nz0wYsXhFa6Tk.png",
>   "sync_mode": false
> }
> ```
>
> ### Output Example
>
> ```json theme={null}
> {
>   "image": {
>     "url": "",
>     "content_type": "image/png",
>     "file_name": "z9RV14K95DvU.png",
>     "file_size": 4404019
>   },
>   "prompt": "",
>   "seed": 123456
> }
> ```

> [tab] Remix
>
> **Endpoint:** `POST https://fal.run/fal-ai/ideogram/v3/remix`
> **Endpoint ID:** `fal-ai/ideogram/v3/remix`
>
> > [card] [Try it in the Playground](https://fal.ai/models/fal-ai/ideogram/v3/remix/playground)
> >
> > Run this model interactively with your own prompts.
>
> ### Quick Start
>
> ```python title="Python" theme={null}
> import fal_client
>
> def on_queue_update(update):
>     if isinstance(update, fal_client.InProgress):
>         for log in update.logs:
>            print(log["message"])
>
> result = fal_client.subscribe(
>     "fal-ai/ideogram/v3/remix",
>     arguments={
>         "prompt": "Old ancient city day light",
>         "image_url": "https://v3.fal.media/files/lion/9-Yt8JfTw4OxrAjiUzwP9_output.png"
>     },
>     with_logs=True,
>     on_queue_update=on_queue_update,
> )
> print(result)
> ```
>
> ```javascript title="JavaScript" theme={null}
> import { fal } from "@fal-ai/client";
>
> const result = await fal.subscribe("fal-ai/ideogram/v3/remix", {
>   input: {
>       prompt: "Old ancient city day light",
>       image_url: "https://v3.fal.media/files/lion/9-Yt8JfTw4OxrAjiUzwP9_output.png"
>     },
>   logs: true,
>   onQueueUpdate: (update) => {
>     if (update.status === "IN_PROGRESS") {
>       update.logs.map((log) => log.message).forEach(console.log);
>     }
>   },
> });
> console.log(result.data);
> console.log(result.requestId);
> ```
>
> ```bash title="cURL" theme={null}
> curl --request POST \
>   --url https://fal.run/fal-ai/ideogram/v3/remix \
>   --header "Authorization: Key $FAL_KEY" \
>   --header "Content-Type: application/json" \
>   --data '{
>   "prompt": "Old ancient city day light",
>   "image_url": "https://v3.fal.media/files/lion/9-Yt8JfTw4OxrAjiUzwP9_output.png"
> }'
> ```
>
> ### Input Schema
>
> **image\_urls** `list\<string\>`
>
> 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** `RenderingSpeedEnum` (default: BALANCED)
>
> The rendering speed to use. Default value: `"BALANCED"`
>
> Possible values: `TURBO`, `BALANCED`, `QUALITY`
>
> **color\_palette** `ColorPalette`
>
> 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\<string\>`
>
> A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style\_reference\_images or style
>
> **style** `Enum`
>
> The style type to generate with. Cannot be used with style\_codes.
>
> Possible values: `AUTO`, `GENERAL`, `REALISTIC`, `DESIGN`
>
> **expand\_prompt** `boolean` (default: true)
>
> Determine if MagicPrompt should be used in generating the request or not. Default value: `true`
>
> **num\_images** `integer` (default: 1)
>
> Number of images to generate. Default value: `1`
>
> Range: `1` to `8`
>
> **seed** `integer`
>
> Seed for the random number generator
>
> **sync\_mode** `boolean` (default: false)
>
> If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
>
> **prompt** `string` *required*
>
> The prompt to remix the image with
>
> **image\_url** `string` *required*
>
> The image URL to remix
>
> **strength** `float` (default: 0.8)
>
> Strength of the input image in the remix Default value: `0.8`
>
> Range: `0.01` to `1`
>
> **image\_size** `ImageSize | Enum` (default: square\_hd)
>
> The resolution of the generated image Default value: `square_hd`
>
> Possible values: `square_hd`, `square`, `portrait_4_3`, `portrait_16_9`, `landscape_4_3`, `landscape_16_9`
>
> **negative\_prompt** `string`
>
> Description of what to exclude from an image. Descriptions in the prompt take precedence to descriptions in the negative prompt. Default value: `""`
>
> ### Output Schema
>
> **images** `list\<File\>` *required*
>
> **seed** `integer` *required*
>
> Seed used for the random number generator
>
> ### Input Example
>
> ```json theme={null}
> {
>   "rendering_speed": "BALANCED",
>   "expand_prompt": true,
>   "num_images": 1,
>   "sync_mode": false,
>   "prompt": "Old ancient city day light",
>   "image_url": "https://v3.fal.media/files/lion/9-Yt8JfTw4OxrAjiUzwP9_output.png",
>   "strength": 0.8,
>   "image_size": "square_hd",
>   "negative_prompt": ""
> }
> ```
>
> ### Output Example
>
> ```json theme={null}
> {
>   "images": [
>     {
>       "url": "https://v3.fal.media/files/koala/eYZG26O54NTdWzdpDWBL-_image.png"
>     }
>   ],
>   "seed": 123456
> }
> ```

> [tab] Replace Background
>
> **Endpoint:** `POST https://fal.run/fal-ai/ideogram/v3/replace-background`
> **Endpoint ID:** `fal-ai/ideogram/v3/replace-background`
>
> > [card] [Try it in the Playground](https://fal.ai/models/fal-ai/ideogram/v3/replace-background/playground)
> >
> > Run this model interactively with your own prompts.
>
> ### Quick Start
>
> ```python title="Python" theme={null}
> import fal_client
>
> def on_queue_update(update):
>     if isinstance(update, fal_client.InProgress):
>         for log in update.logs:
>            print(log["message"])
>
> result = fal_client.subscribe(
>     "fal-ai/ideogram/v3/replace-background",
>     arguments={
>         "prompt": "A beautiful sunset over mountains that writes Ideogram v3 in fal.ai",
>         "image_url": "https://v3.fal.media/files/rabbit/F6dvKPFL9VzKiM8asJOgm_MJj6yUB6rGjTsv_1YHIcA_image.webp"
>     },
>     with_logs=True,
>     on_queue_update=on_queue_update,
> )
> print(result)
> ```
>
> ```javascript title="JavaScript" theme={null}
> import { fal } from "@fal-ai/client";
>
> const result = await fal.subscribe("fal-ai/ideogram/v3/replace-background", {
>   input: {
>       prompt: "A beautiful sunset over mountains that writes Ideogram v3 in fal.ai",
>       image_url: "https://v3.fal.media/files/rabbit/F6dvKPFL9VzKiM8asJOgm_MJj6yUB6rGjTsv_1YHIcA_image.webp"
>     },
>   logs: true,
>   onQueueUpdate: (update) => {
>     if (update.status === "IN_PROGRESS") {
>       update.logs.map((log) => log.message).forEach(console.log);
>     }
>   },
> });
> console.log(result.data);
> console.log(result.requestId);
> ```
>
> ```bash title="cURL" theme={null}
> curl --request POST \
>   --url https://fal.run/fal-ai/ideogram/v3/replace-background \
>   --header "Authorization: Key $FAL_KEY" \
>   --header "Content-Type: application/json" \
>   --data '{
>   "prompt": "A beautiful sunset over mountains that writes Ideogram v3 in fal.ai",
>   "image_url": "https://v3.fal.media/files/rabbit/F6dvKPFL9VzKiM8asJOgm_MJj6yUB6rGjTsv_1YHIcA_image.webp"
> }'
> ```
>
> ### Input Schema
>
> **image\_urls** `list\<string\>`
>
> 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** `RenderingSpeedEnum` (default: BALANCED)
>
> The rendering speed to use. Default value: `"BALANCED"`
>
> Possible values: `TURBO`, `BALANCED`, `QUALITY`
>
> **color\_palette** `ColorPalette`
>
> 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\<string\>`
>
> A list of 8 character hexadecimal codes representing the style of the image. Cannot be used in conjunction with style\_reference\_images or style
>
> **style** `Enum`
>
> The style type to generate with. Cannot be used with style\_codes.
>
> Possible values: `AUTO`, `GENERAL`, `REALISTIC`, `DESIGN`
>
> **expand\_prompt** `boolean` (default: true)
>
> Determine if MagicPrompt should be used in generating the request or not. Default value: `true`
>
> **num\_images** `integer` (default: 1)
>
> Number of images to generate. Default value: `1`
>
> Range: `1` to `8`
>
> **seed** `integer`
>
> Seed for the random number generator
>
> **sync\_mode** `boolean` (default: false)
>
> If `True`, the media will be returned as a data URI and the output data won't be available in the request history.
>
> **style\_preset** `Enum`
>
> Style preset for generation. The chosen style preset will guide the generation.
>
> Possible values: `80S_ILLUSTRATION`, `90S_NOSTALGIA`, `ABSTRACT_ORGANIC`, `ANALOG_NOSTALGIA`, `ART_BRUT`, `ART_DECO`, `ART_POSTER`, `AURA`, `AVANT_GARDE`, `BAUHAUS`, `BLUEPRINT`, `BLURRY_MOTION`, `BRIGHT_ART`, `C4D_CARTOON`, `CHILDRENS_BOOK`, `COLLAGE`, `COLORING_BOOK_I`, `COLORING_BOOK_II`, `CUBISM`, `DARK_AURA`, `DOODLE`, `DOUBLE_EXPOSURE`, `DRAMATIC_CINEMA`, `EDITORIAL`, `EMOTIONAL_MINIMAL`, `ETHEREAL_PARTY`, `EXPIRED_FILM`, `FLAT_ART`, `FLAT_VECTOR`, `FOREST_REVERIE`, `GEO_MINIMALIST`, `GLASS_PRISM`, `GOLDEN_HOUR`, `GRAFFITI_I`, `GRAFFITI_II`, `HALFTONE_PRINT`, `HIGH_CONTRAST`, `HIPPIE_ERA`, `ICONIC`, `JAPANDI_FUSION`, `JAZZY`, `LONG_EXPOSURE`, `MAGAZINE_EDITORIAL`, `MINIMAL_ILLUSTRATION`, `MIXED_MEDIA`, `MONOCHROME`, `NIGHTLIFE`, `OIL_PAINTING`, `OLD_CARTOONS`, `PAINT_GESTURE`, `POP_ART`, `RETRO_ETCHING`, `RIVIERA_POP`, `SPOTLIGHT_80S`, `STYLIZED_RED`, `SURREAL_COLLAGE`, `TRAVEL_POSTER`, `VINTAGE_GEO`, `VINTAGE_POSTER`, `WATERCOLOR`, `WEIRD`, `WOODBLOCK_PRINT`
>
> **prompt** `string` *required*
>
> Cyber punk city with neon lights and skyscrappers
>
> **image\_url** `string` *required*
>
> The image URL whose background needs to be replaced
>
> ### Output Schema
>
> **images** `list\<File\>` *required*
>
> **seed** `integer` *required*
>
> Seed used for the random number generator
>
> ### Input Example
>
> ```json theme={null}
> {
>   "rendering_speed": "BALANCED",
>   "expand_prompt": true,
>   "num_images": 1,
>   "sync_mode": false,
>   "prompt": "A beautiful sunset over mountains that writes Ideogram v3 in fal.ai",
>   "image_url": "https://v3.fal.media/files/rabbit/F6dvKPFL9VzKiM8asJOgm_MJj6yUB6rGjTsv_1YHIcA_image.webp"
> }
> ```
>
> ### Output Example
>
> ```json theme={null}
> {
>   "images": [
>     {
>       "url": "https://v3.fal.media/files/lion/AUfCjtLkLOsdc9zEFrV-5_image.png"
>     }
>   ],
>   "seed": 123456
> }
> ```

## Related

* [Ideogram](https://fal.ai/docs/model-api-reference/image-generation-api/ideogram) — Image Generation
* [Ideogram V3 Edit](https://fal.ai/docs/model-api-reference/image-generation-api/ideogram-v3-edit) — Image Generation
* [Ideogram Replace Background](https://fal.ai/docs/model-api-reference/image-generation-api/ideogram-replace-background) — Image Generation
* [Ideogram Text to Image](https://fal.ai/docs/model-api-reference/image-generation-api/ideogram-text-to-image) — Image Generation

## Limitations

* `rendering_speed` restricted to: `TURBO`, `BALANCED`, `QUALITY`
* `style` restricted to: `AUTO`, `GENERAL`, `REALISTIC`, `DESIGN`
* `num_images` range: 1 to 8
* `image_size` restricted to: `square_hd`, `square`, `portrait_4_3`, `portrait_16_9`, `landscape_4_3`, `landscape_16_9`
* `rendering_speed` restricted to: `FLASH`, `TURBO`, `BALANCED`, `QUALITY`
* `strength` range: 0.01 to 1
