Image generation
Use POST /v1/images/generations with models tagged image-generation.
Request
{
"model": "stable-diffusion-xl",
"prompt": "A modern office in Amsterdam at sunrise"
}
Response
{
"created": 1717200000,
"model": "stable-diffusion-xl",
"data": [{
"index": 0,
"b64_json": "iVBORw0KGgoAAAANSUhEUgAA..."
}]
}
Images are returned inline as base64 (b64_json) unless you set response_format; ozeye does not host image files. n, size, quality and style are forwarded where the model supports them. The request body limit is 1 MB.
Wrong-modality models are rejected before routing. Image cost is the serving provider's price per generated image; models explicitly marked free do not deduct credits.