API
Images
Generate or edit images through OpenAI-compatible image endpoints.
Overview
Image endpoints create images from prompts or edit existing images when supported by the selected model.
Request
`POST https://uouo.cloud/v1/images/generations`
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Image model ID. |
| prompt | string | Yes | Image description. |
| size | string | No | Output size, for example `1024x1024`. |
| n | integer | No | Number of images. |
| response_format | string | No | URL or base64 JSON, depending on provider support. |
Example
curl https://uouo.cloud/v1/images/generations \
-H "Authorization: Bearer $UOUODUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-1",
"prompt": "A clean product diagram of an AI gateway routing requests",
"size": "1024x1024"
}'Notes
- Provider safety policies apply to image prompts and generated output.
- Some providers return temporary URLs; download assets promptly if needed.
- Image generation costs can differ from text token pricing.