Images

Generate image

Creates an image given a text prompt using Flux, Stable Diffusion, and other models.

post/images/generations

Request

  • Base URL
    https://www.aimagicx.com/api/v1
  • Auth
    HTTP bearer

Query parameters

asyncboolean

Run generation asynchronously and return a job ID

Request body

promptstring required

Text description of the image

modelstring

Model ID

size'512x512' | '1024x1024' | '1792x1024' | '1024x1792'
ninteger

Number of images (1-10)

upscale'2x' | '4x' nullable

Upscale factor

style'vivid' | 'natural'
negative_promptstring nullable

What to avoid in the image

seedinteger nullable

Random seed for reproducibility

Response

Successful response

OR

Changes

No recorded changes to this operation across all 1 revision of this API.