---
title: "Creates a variation of a given image."
method: POST
path: "/images/variations"
tags: ["Images"]
---

# Creates a variation of a given image.

`POST /images/variations`

## Response `200`

OK

- ImagesResponse
  - `created` integer, required
  - `data` Image[], required
    - `b64_json` string — The base64-encoded JSON of the generated image, if `response_format` is `b64_json`.
    - `url` string — The URL of the generated image, if `response_format` is `url` (default).
    - `revised_prompt` string — The prompt that was used to generate the image, if there was any revision to the prompt.

---

[API](https://skmtc.net/openai/apis/openai-api-2.md) · [All operations](https://skmtc.net/openai/apis/openai-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openai/openai-api-2/versions/2f8ca92b9b18/schema)
