API reference for Ideogram V2 Edit. Transform existing images with Ideogram V2’s editing capabilities. Modify, adjust, and refine images while maintaining high fidelity and realistic outputs with prec
import fal_clientdef 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/v2/edit", arguments={ "prompt": "A knight in shining armour holding a greatshield with \"FAL\" on it", "image_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/knight.jpeg", "mask_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/mask_knight.jpeg" }, with_logs=True, on_queue_update=on_queue_update,)print(result)
import { fal } from "@fal-ai/client";const result = await fal.subscribe("fal-ai/ideogram/v2/edit", { input: { prompt: "A knight in shining armour holding a greatshield with \"FAL\" on it", image_url: "https://storage.googleapis.com/falserverless/flux-lora/example-images/knight.jpeg", mask_url: "https://storage.googleapis.com/falserverless/flux-lora/example-images/mask_knight.jpeg" }, 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);
curl --request POST \ --url https://fal.run/fal-ai/ideogram/v2/edit \ --header "Authorization: Key $FAL_KEY" \ --header "Content-Type: application/json" \ --data '{ "prompt": "A knight in shining armour holding a greatshield with \"FAL\" on it", "image_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/knight.jpeg", "mask_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/mask_knight.jpeg"}'
{ "prompt": "A knight in shining armour holding a greatshield with \"FAL\" on it", "image_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/knight.jpeg", "mask_url": "https://storage.googleapis.com/falserverless/flux-lora/example-images/mask_knight.jpeg", "style": "auto", "expand_prompt": true, "sync_mode": false}