---
title: "Write an Instagram caption for the video from its script, in the"
method: POST
path: "/api/v1/videos/{video_id}/generate-caption"
tags: ["Videos"]
---

# Write an Instagram caption for the video from its script, in the

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

## 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-caption`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

avatar's voice, and persist it to `Video.ig_caption`.

## Path parameters

- `video_id` integer, required

## Response `200`

OK

- GenerateCaptionResponse
  - `caption` string, required
  - `success` boolean, required

## 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)
