---
title: "Openai Images Variations"
method: POST
path: "/v1/images/variations"
tags: ["Image Generation"]
---

# Openai Images Variations

`POST /v1/images/variations`

Generate a similar image using OpenAI Images Variations API

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Response `200`

Successful Response

- OpenAIImagesOut
  - `created` integer — Unix timestamp of when the images were created
  - `data` OpenAIImageData[], required — List of generated images
    - `b64_json` string, nullable — The base64-encoded image data
    - `revised_prompt` string, nullable — The prompt used to generate this image
    - `url` string, nullable — The URL of the generated image

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/revisions/51b817b3f80f/schema)
