AI Image Generator - Protected
Generate Single Image
Start an AI image generation job. Returns {job_id} immediately; client polls GET /websites/{website_id}/generate-image/{job_id} for the result.
Body: {"prompt": "...", "use_context": true, "page_slug": "...", "block_type": "...", "block_props": {...}, "aspect_ratio": "16:9", # optional — one of 1:1,2:3,3:2,3:4,4:3,9:16,16:9,21:9 "image_size": "2K"} # optional — 1K | 2K | 4K (default 2K)
post/api/websites/{website_id}/generate-single-image
Path parameters
website_idinteger required
Headers
x-api-tokenstring nullable
Request body
object required
Response
Successful Response
{"stackTrail":"paths:/api/websites/{website_id}/generate-single-image:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
No recorded changes to this endpoint across all 1 revision of this API.