Ad resizer
ideogram_ad_resizerResize and reframe ads to exact platform ad dimensions, keeping creative inside published safe zones and optionally editing during the resize.
Instructions
Reframe an ad to a platform's exact ad size (resolution WIDTHxHEIGHT from the list; platform picks the published safe zone), optionally editing while reframing. Takes the creative as a local file, a public https URL or an Ideogram asset. Results are saved to the output directory; long jobs come back as a generation_id for ideogram_generation; ideogram_quote prices a call first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | The source photo or ad to work on: a local image file or a public https URL (image_asset_identifier for an Ideogram asset) | |
| prompt | No | What to create or change, in natural language | |
| wait_s | No | Seconds to wait for the result (0-50, default 45). The job is accepted first; if it is still running when the wait ends, the result is its generation_id for ideogram_generation (never resubmitted, never billed twice). | |
| private | No | Keep the result out of Ideogram's public feed; true unless you set false (enterprise accounts are always private) | |
| quality | No | low, medium or high: higher may improve detail and takes longer | |
| platform | No | The ad platform whose published safe zone the ad stays inside (google, meta, meta_reels, meta_stories, snapchat, tiktok) | |
| num_images | No | How many outputs to make (each is billed) | |
| resolution | No | Exact output size WIDTHxHEIGHT from the model's list; not with aspect_ratio | |
| inline_images | No | true: each saved image is also returned as image content (base64; one over 3.75 MB, or past 10 MB in total, by path only), for a client without file access | |
| image_asset_identifier | No | An Ideogram asset (an upload or an earlier result) instead of a local image |