Documentation

Your familiar SDK. A clear path from API key to first response.

Image variations

Choose a guide or find an API method. Copy examples to your project; this page does not execute requests.

Image variations

POST /v1/images/variations

Request fields

Use the same size, quality, and reference formats and limits as for edits. Set n: 1 and pass model and at least one reference. If prompt is omitted, Quanteex supplies a variation instruction that preserves the main subject.

Input and mask formats

Image prices and limits

Create a variation

Place input.png in your working directory. The example sends it as a JSON data URL. Billing uses the same size and quality table as edits.

Base URL
IMAGE_BASE64="$(base64 < input.png | tr -d '\r\n')"

curl "https://api.quanteex.com/v1/images/variations" \
  -H "Authorization: Bearer $QUANTEEX_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<JSON
{
  "model": "gpt-image-2.6-flare",
  "prompt": "Create a variation of this image while preserving its main subject",
  "size": "auto",
  "n": 1,
  "images": [
    {
      "image_url": "data:image/png;base64,$IMAGE_BASE64"
    }
  ]
}
JSON

Compatibility

This Quanteex endpoint performs an image edit with a variation instruction. It is not a promise of the retired OpenAI DALL·E variations behavior. Use one of the published GPT image model IDs.

Result and streaming

Decode data[0].b64_json for JSON. With stream: true, the final image arrives as image_edit.completed without progressive previews. The current size, quantity and upload limits are the same as edits.

Input and mask formats

Image prices and limits

Search documentation