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

ParameterTypeRequiredDescription
modelstringYesImage model ID.
promptstringYesImage description.
sizestringNoOutput size, for example `1024x1024`.
nintegerNoNumber of images.
response_formatstringNoURL 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.
Images · uouo cloud