cURL
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>" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Success
The response is of type object.
object