v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Client

Generate images (deprecated)

Deprecated compatibility proxy. New integrations should use OpenRouter image-capable models directly with the provisioned OpenRouter key.

post/api/ai/image/generation

Request body

modelstring required

OpenRouter model identifier for image generation

promptstring required

Text prompt describing the desired image

Example request

{
  "model": "openai/dall-e-3",
  "prompt": "A serene landscape with mountains and a lake at sunset"
}

Response

Images generated successfully

modelstring

Model used for generation

textstring

Text content from multimodal models

countinteger

Number of images generated

nextActionsstring

Example response

{
  "nextActions": "Images have been generated successfully. Use the returned URLs or base64 data to access them."
}