Admin Magic AI

Generates one or more images from a prompt with the configured AI provider. Each image is returned as a base64 data URL in url. Requires Magic AI and its image generation feature to be enabled in Configuration → Magic AI.

post/magic-ai/image

Request

Request body

promptstring required
modelstring nullable
ninteger
size'1:1' | '2:3' | '3:2' required
quality'high' | 'medium' | 'low'

Response

The generated images.

Changes