---
title: "Create image variation"
method: POST
path: "/v2/router/images/variations"
tags: ["Images"]
---

# Create image variation

`POST /v2/router/images/variations`

Create an Image Variation

## Response `200`

Represents an image variation response from the API.

- object
  - `created` number, required — The Unix timestamp (in seconds) of when the image was created.
  - `output_format` string — The output format of the image generation
  - `size` string — The size of the image generated
  - `quality` string — The quality of the image generated
  - `data` object[], required — The list of generated images.
    - `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)
  - `usage` object — The token usage information for the image generation.
    - `total_tokens` number, required — The total number of tokens (images and text) used for the image generation.
    - `input_tokens` number, required — The number of tokens (images and text) in the input prompt.
    - `output_tokens` number, required — The number of output tokens generated by the model.
    - `input_tokens_details` object, required — The input tokens detailed information for the image generation.
      - `text_tokens` number, required — The number of text tokens in the input prompt.
      - `image_tokens` number, required — The number of image tokens in the input prompt.

---

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