Model API
Ideogram V4.5
Edit images with Ideogram 4.5: prompt edits with up to 4 reference images, optional mask, and a high-precision mode that keeps unchanged pixels intact.
Model id
ideogram/v4.5/editThis model has other modes with their own ids: ideogram/v4.5.
Run it
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram/v4.5/edit",
"input": {
"prompt": "A red ceramic cup on a wooden table, soft morning light",
"image_url": "https://example.com/input.png"
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "ideogram/v4.5/edit", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","image_url":"https://example.com/input.png"}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"Input
| Name | Type | Description |
|---|---|---|
promptrequired | string | The generation or editing prompt. |
image_urlrequired | string (image URL) | Primary source image to edit. |
reference_image_urls | array of image URLs | Up to four references plus the primary source, or three references plus the primary source and mask. |
mask_url | string (image URL) | Mask matching the source dimensions. Black edits, white preserves. Must contain both regions after rounding. |
edit_precision | string (enum) | regular uses Generate; high uses Precise Edit with unchanged-pixel restoration. Both always prepare structured edit instructions. |
quality | string (enum) | Quality tier for either edit precision. Defaults to medium. |
image_size | string (enum) | Auto preserves source geometry, downscaled by the provider if needed. Only unmasked regular edits accept named presets or custom sizes: dimensions >=256, multiples of 32, area <=4194304, ratio <=6:1. Named presets use standard dimensions. |
num_images | integer | Number of images to generate. |
seed | integer | Random seed. Omit to choose automatically. |
sync_mode | boolean | Return image data directly in the response. |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]Pricing
- Very low$0.02/ image
- Low$0.05/ image
- Medium$0.10/ image
- High$0.35/ image
The exact charge for your input comes from a quote. How charges settle