---
title: "Generate a YouTube thumbnail"
method: POST
path: "/actions/thumbnails_generate"
tags: ["thumbnails"]
---

# Generate a YouTube thumbnail

`POST /actions/thumbnails_generate`

## Request

- Base URL: `https://api.voicecheap.ai/v1`
- URL: `https://api.voicecheap.ai/v1/actions/thumbnails_generate`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Generate a 1280×720 thumbnail for the connected account, using the web app’s media allowance. Reuse requestId when retrying the same request; use thumbnails_download to retrieve the result.

## Headers

- `Idempotency-Key` string, uuid

## Request body

- object
  - `requestId` string, uuid, required: UUID v4 for this action. Reuse the same ID with identical arguments on retries.
  - `prompt` string, required
  - `referenceImageKeys` string[]

## Response `200`

Completed result or saved request state.

- object
  - `data` unknown, required
  - `requestId` string, uuid

## Other responses

- `202`: The action is running. Poll action_request_get with requestId and operation.
- `400`: Invalid arguments.
- `401`: Invalid or expired API key.
- `403`: Permission or subscription required.
- `409`: Idempotency conflict or account concurrency limit.
- `429`: Shared account rate or monthly limit reached.

---

[API](https://skmtc.dev/voicecheap/apis/voicecheap-api.md) · [All operations](https://skmtc.dev/voicecheap/apis/voicecheap-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voicecheap/apis/voicecheap-api/revisions/0cb50268f31a?raw)
