开发者文档

从这些内容开始

搜索标题与正文↑ ↓ 选择 · Enter 打开 · Esc 关闭

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

bash
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