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