Skip to Content

Images API

Generate images using AI models.

Endpoint

POST https://api.ofox.ai/v1/images/generations

Request Parameters

ParameterTypeRequiredDescription
modelstringImage generation model
promptstringImage description text
nnumberNumber of images, default 1
sizestringImage size, e.g. 1024x1024
qualitystringImage quality: standard or hd
response_formatstringReturn format: url or b64_json

Request Examples

Terminal
curl https://api.ofox.ai/v1/images/generations \ -H "Authorization: Bearer $OFOX_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/dall-e-3", "prompt": "A cute fox wearing sunglasses and surfing", "n": 1, "size": "1024x1024" }'

Response Format

{ "created": 1703123456, "data": [ { "url": "https://...", "revised_prompt": "..." } ] }

For supported image generation models and pricing, check the Model Catalog .