Skip to main content
Endpoint: POST https://fal.run/fal-ai/ideogram/character Endpoint ID: fal-ai/ideogram/character

Try it in the Playground

Run this model interactively with your own prompts.

Quick Start

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/character",
    arguments={
        "prompt": "Place the woman leisurely enjoying a cup of espresso while relaxing at a sunlit café table in Siena, Italy. The café setting showcases vintage wooden furniture with peeling white paint, aged brick flooring, and sun-bleached stone walls decorated with trailing ivy and vibrant potted geraniums that capture Siena's medieval character. Golden late-morning light streams through overhead, creating soft shadows that highlight the weathered architectural details. The composition appears slightly off-center, conveying the unguarded tranquility and personal intimacy of a peaceful moment savoring the Tuscan morning ambiance.",
        "reference_image_urls": [
            "https://v3.fal.media/files/kangaroo/0rinwnj_Kn9Fsu2dK-aKm_image.png"
        ]
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

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
StyleEnum
default:"AUTO"
The style type to generate with. Cannot be used with style_codes. Default value: "AUTO"Possible values: AUTO, REALISTIC, FICTION
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: 1Range: 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 fill the masked part of the image.
image_size
ImageSize | Enum
default:"square_hd"
The resolution of the generated image Default value: square_hdPossible values: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9
negative_prompt
string
default:""
Description of what to exclude from an image. Descriptions in the prompt take precedence to descriptions in the negative prompt. Default value: ""
reference_image_urls
list<string>
required
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<string>
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

Output Schema

images
list<File>
required
seed
integer
required
Seed used for the random number generator

Input Example

{
  "rendering_speed": "BALANCED",
  "style": "AUTO",
  "expand_prompt": true,
  "num_images": 1,
  "sync_mode": false,
  "prompt": "Place the woman leisurely enjoying a cup of espresso while relaxing at a sunlit café table in Siena, Italy. The café setting showcases vintage wooden furniture with peeling white paint, aged brick flooring, and sun-bleached stone walls decorated with trailing ivy and vibrant potted geraniums that capture Siena's medieval character. Golden late-morning light streams through overhead, creating soft shadows that highlight the weathered architectural details. The composition appears slightly off-center, conveying the unguarded tranquility and personal intimacy of a peaceful moment savoring the Tuscan morning ambiance.",
  "image_size": "square_hd",
  "negative_prompt": "",
  "reference_image_urls": [
    "https://v3.fal.media/files/kangaroo/0rinwnj_Kn9Fsu2dK-aKm_image.png"
  ]
}

Output Example

{
  "images": [
    {
      "url": "https://v3.fal.media/files/monkey/NC_1eo9ecE9fARcxviJ2R_image.png"
    }
  ],
  "seed": 123456
}

Limitations

  • rendering_speed restricted to: TURBO, BALANCED, QUALITY
  • style restricted to: AUTO, REALISTIC, FICTION
  • 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
  • strength range: 0.01 to 1