---
title: "Get download sizes for a generated image"
method: GET
path: "/v3/ai/image-generations/{generationRequestId}/images/{index}/download-sizes"
tags: ["AiGenerator"]
---

# Get download sizes for a generated image

`GET /v3/ai/image-generations/{generationRequestId}/images/{index}/download-sizes`

## Request

- Base URL: `https://api.gettyimages.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gettyimages.com/v3/ai/image-generations/{generationRequestId}/images/{index}/download-sizes`
- Auth: one of:
  - API key in header `Api-Key`
  - OAuth 2
    - Authorization code: `https://authentication.gettyimages.com/oauth2/auth`
    - Client credentials
    - Password
    - Token URL: `https://authentication.gettyimages.com/oauth2/token`
- TypeScript: <https://skmtc.dev/gettyimages/apis/getty-images-api/docs/v3/ai/image-generations/:generationRequestId/images/:index/download-sizes/get.ts> (a function with typed inputs; its response is checked against the schema)

# AI Generator - Get Download Sizes

Given a fulfilled generation request `id` and the `index` of a generated image, gets a list of download sizes for the image.

## Path parameters

- `generationRequestId` string, required
- `index` integer, required

## Response `200`

Returns the result of a request

- DownloadSizesResponse
  - `download_sizes` DownloadSizeResponse[], nullable
    - `size_name` string, nullable
    - `height` integer
    - `width` integer

## Other responses

- `400`: InvalidProduct
- `403`: NotAuthorized
- `404`: Either the generation id does not exist, the index is incorrect, or the generation is still pending
- `409`: ConcurrencyConflict
- `410`: GenerationRequestGone
- `429`: DailyRequestLimitExceeded

## Changes

- **2025-03-07** `328d929c7310`: 3 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `409`
  - added the non-success response with the status `429`
- **2024-11-23** `f751fa2a43c9`: 2 info
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `429`
- **2024-08-26** `00000cbae4c7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gettyimages/apis/getty-images-api/changes/v3/ai/image-generations/:generationRequestId/images/:index/download-sizes/get.md)

---

[API](https://skmtc.dev/gettyimages/apis/getty-images-api.md) - [All operations](https://skmtc.dev/gettyimages/apis/getty-images-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gettyimages/apis/getty-images-api/revisions/f20ce986456b?raw)
