AGTCloud API Docs
GuidesAPI ReferenceIntegrations and resourcesUpdate and help
Image generationOpenAI Images

Create image variations

Create image variations with the OpenAI Images Variations API.

Depending on the model, you can control the number of variations, size, and response format.

POST/v1/images/variations

Generate one or more visual variants based on a single input image. Input images must meet the format, size, and size requirements supported by the selected model. Whether the model supports image variants depends on the actual capability of the model visible in the current API Key

Authorization

bearerAuth
AuthorizationBearer <token>

Use Bearer your-api-key in the Authorization Header.

In: header

Request Body

multipart/form-data

Use Multipart to submit the variant source image. The client should automatically generate the Content-Type boundary from the request library.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json