POST
/
v1
/
image
/
gen
/
sd
curl --request POST \
  --url https://openapi.monica.im/v1/image/gen/sd \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "sd3_5",
  "prompt": "An astronaut riding a rainbow unicorn, cinematic, dramatic",
  "negative_prompt": "",
  "seed": "42",
  "size": "1024x1024",
  "steps": 28,
  "cfg_scale": "3.5",
  "num_outputs": 1,
  "output_quality": 90,
  "scheduler": "K_EULER",
  "num_inference_steps": 50
}'
{
  "data": [
    {
      "url": "<string>"
    }
  ]
}
Follow the quickstart guide to get your own API Key.

Stable Diffusion represents a series of open-source image generation models developed by Stability AI. See the pricing page for pricing details.

Stable Diffusion XL 1.0

  • Efficient image generation model
  • Good quality and performance
  • Suitable for general use

Stable Diffusion 3

  • Advanced model with better prompting
  • Higher image quality and details
  • Ideal for professional work

Stable Diffusion 3.5 Large

  • Latest model with best quality
  • Exceptional detail and realism
  • Superior artistic capabilities

Previews

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200 - application/json
Success

The response is of type object.