Skip to main content
images:write The images:write scope lets you start asynchronous AI image generation into a site’s Media Library and regenerate an existing generated image in place. It is included in the Full Access and Content Generation presets and in the MCP Read + Create profile. Reading images back (including polling a generation) uses images:read; keys that hold only images:write may still poll GET /public/images/{imageId}. Generation is gated by the site’s IMAGE_GENERATION plan entitlement. Denied sites receive 403 plan_upgrade_required before any asset or job is created.

Endpoints


Generate image

Returns 202 with image_id (the Media Library asset id). Send X-Idempotency-Key to make retries safe. Pass asset_id in the body to regenerate an existing image.

Example


Get image

Returns status (generating, complete, error), image_url once complete, and error on failure — plus the full image read projection (alt text, AI metadata, prompts, variants) documented under images:read.

Webhooks

Subscribe to image.generation.completed and image.generation.failed instead of polling. Both carry asset_id (the image_id), generation_id, and idempotency_key; completed events add image_url and reused, failed events add error.
See Webhooks for delivery and signature details.
Last modified on September 6, 2026