---
title: "Use the video's opening frame as its cover image (free, no AI) and"
method: POST
path: "/api/v1/videos/{video_id}/generate-thumbnail"
tags: ["Videos"]
---

# Use the video's opening frame as its cover image (free, no AI) and

`POST /api/v1/videos/{video_id}/generate-thumbnail`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/videos/{video_id}/generate-thumbnail`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

persist it as the video's thumbnail.

## Path parameters

- `video_id` integer, required

## Response `200`

OK

- GenerateThumbnailResponse: Response for `POST /api/v1/videos/:id/generate-thumbnail`. Returns the stored `faces/<filename>` key of the freshly generated cover image.
  - `success` boolean, required
  - `thumbnail_file` string, nullable

## Other responses

- `404`: Not Found
- `422`: Unprocessable Entity

---

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