---
title: "Generate Single Image"
method: POST
path: "/api/websites/{website_id}/generate-single-image"
tags: ["AI Image Generator - Protected"]
---

# Generate Single Image

`POST /api/websites/{website_id}/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)

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/8492136eefc5/schema)
