Create image
Creates an image given a prompt.
AuthorizationBearer <token>
In: header
promptstring
A text description of the desired image(s).
n?integer
The number of images to generate. Must be between 1 and 10.
Range
1 <= value <= 10
size?string
The size of the generated images.
Value in
"256x256" | "512x512" | "1024x1024"
response_format?string
Value in
"url" | "b64_json"
user?string
Response Body
curl -X POST "https://api.openroute.cn/v1/images/generations" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A cute baby sea otter", "n": 1, "size": "1024x1024" }'
Last updated on