Skip to main content
POST
/
v1
/
images
/
variations
curl https://gateway.bud.studio/v1/images/variations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "image=@original.png" \
  -F "model=dall-e-2" \
  -F "n=2" \
  -F "size=1024x1024"
{
  "created": 1699000000,
  "data": [
    {
      "url": "https://storage.example.com/variation_abc123.png"
    },
    {
      "url": "https://storage.example.com/variation_def456.png"
    }
  ]
}
curl https://gateway.bud.studio/v1/images/variations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "image=@original.png" \
  -F "model=dall-e-2" \
  -F "n=2" \
  -F "size=1024x1024"
{
  "created": 1699000000,
  "data": [
    {
      "url": "https://storage.example.com/variation_abc123.png"
    },
    {
      "url": "https://storage.example.com/variation_def456.png"
    }
  ]
}

Headers

ParameterTypeRequiredDescription
AuthorizationstringYesBearer authentication header
Content-TypestringYesMust be multipart/form-data

Form Data

ParameterTypeRequiredDescription
imagefileYesSource image file (PNG only, must be square, max 4MB)
modelstringYesModel identifier (e.g., dall-e-2)
nintegerNoNumber of variations to generate (1-10). Default: 1
sizestringNoImage size: 256x256, 512x512, 1024x1024. Default: 1024x1024
response_formatstringNoResponse format: url or b64_json. Default: url
userstringNoUnique identifier for end-user

Supported Providers

OpenAI

DALL-E 2 for creating image variations

Azure OpenAI

Enterprise DALL-E 2 with secure deployments