Inpaint with a custom Ideogram 3.0 model
Repaint the masked region of a source image with a custom Ideogram 3.0
model, passed as custom_model_uri. Upload the source image and its
mask using multipart/form-data. Returns results directly by
default; set async to get a generation_id and poll
GET /v2/generations/{generation_id}.
Authentication
API key for access control. Use in the header with the name "Api-Key"
Query parameters
When true, the request is validated and priced but not run: nothing is
generated, stored, or billed, and no safety review is performed. The
response is a PriceQuote object instead of the usual response for this
endpoint. Send exactly the request you would send to generate, so the
quote reflects the same options.
Request
Use multipart/form-data to upload the source image, its mask, and any style_reference_images.
The custom model URI returned by the custom-model API, in the form model/<model_name>/version/<version_name>. The authenticated user or organization must have access to the model.
The source image to repaint (max 25MB), as JPEG, PNG, or WEBP. Multipart requests only.
A black-and-white mask the same size as the source image, as JPEG, PNG, or WEBP. Black marks the region to repaint. Multipart requests only.
Controls magic prompt (automatic prompt rewriting). Defaults to auto.
A list of 8-character hexadecimal codes representing the style of the image. Refer to each endpoint for supported combinations with style types, presets, and reference images.
Images to use as style references (max 10, max 25MB each), as JPEG, PNG, or WEBP.
Optional. Opt this request into post-generation copyright detection. Adds detection latency; flagged images return is_image_safe: false.
When false, wait until the images are ready. When true, return as soon as the request is accepted and poll GET /v2/generations/{generation_id}.
Response
URL-safe base64 ID accepted by the generation polling endpoint.