v53

latestOpenAPI 3.1.0Apache-2.0raw.githubusercontent.com2026-08-021596144.5 KB
Images

Create an image variation

Creates a variation of a given image using the OpenAI-compatible Images API. The request is sent as multipart/form-data with the image file as a binary upload.

Not every provider implements the Images API. Requests routed to a provider that does not support it return 400 Bad Request with an explanatory error message; use /chat/completions for those providers.

post/images/variations

Query parameters

provider'ollama' | 'ollama_cloud' | 'groq' | 'llamacpp' | 'openai' | 'cloudflare' | 'cohere' | 'anthropic' | 'deepseek' | 'google' | 'mistral' | 'minimax' | 'moonshot' | 'nvidia' | 'zai'

Specific provider to use (default determined by model)

Response

Successful response

createdinteger required

The Unix timestamp (in seconds) of when the image was created.