Skip to content

Universal Image API

The Universal Image API standardizes image generation and editing tasks across multiple AI providers including OpenAI (DALL-E), Google (Imagen), and more.

Unified Endpoints

Image Generation

Endpoint: POST https://llm.siraya.ai/v1/images/generations
Generate images from natural language prompts.

Usage Example

curl https://llm.siraya.ai/v1/images/generations \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "imagen-4.0-generate-001",
    "prompt": "A futuristic city in the clouds",
    "n": 1
  }'
import requests

url = "https://llm.siraya.ai/v1/images/generations"
data = {
    "model": "imagen-4.0-generate-001",
    "prompt": "A futuristic city in the clouds"
}
headers = {"Authorization": "Bearer <API_KEY>"}

response = requests.post(url, headers=headers, json=data)
print(response.json())

For full parameter details, see the Text to Image documentation.