Docs

Generate chapters with AI

Starts AI chapter generation for a video from its transcript and returns immediately with an operation handle. Consumes credits per minute of video: the amount charged is returned. Generation runs asynchronously: poll the generation status, then list the chapters. Generated chapters are editable like any other chapter. Requires a ready transcript and sufficient credit balance.

POST
/v1/videos/{id}/chapters/generate

Authorization

BearerAuth
AuthorizationBearer <token>

Pass the raw API key as a Bearer token (Authorization: Bearer <key>). Publishable keys start with mvi_pub_ (playback-scoped). Other prefixes denote private/admin keys for general REST routes. GET /v1/embeds/{embedId}/playback accepts publishable keys only.

In: header

Path Parameters

id*string

Video UUID.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.moviie.ai/v1/videos/497f6eca-6276-4993-bfeb-53cbbbba6f08/chapters/generate"
{
  "status": "running",
  "operationId": "string",
  "creditsCharged": 3,
  "minutes": 3
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}