---
title: "POST /generate-video/extend"
method: POST
path: "/generate-video/extend"
---

# POST /generate-video/extend

`POST /generate-video/extend`

Extend a Midjourney video using a task-based flow (taskId + index).

## Request body

- VideoExtendRequest
  - `taskId` string, required — Run ID from the original Midjourney video request.
  - `index` integer, required — Zero-based index of the Midjourney video to extend (0-3).

## Response `202`

Video extension request submitted successfully (asynchronous processing)

- VideoGenerationResponse
  - `runId` string, required — Unique identifier for the video generation request
  - `projectId` string — Project identifier (for LongStories models)
  - `status` 'pending' | 'processing' | 'completed' | 'failed', required — Current status of the generation
  - `model` string, required — The model used for generation
  - `cost` number — Cost of the video generation
  - `paymentSource` string — Payment source used (USD or XNO)
  - `remainingBalance` number — Remaining balance after the generation
  - `prechargeLabel` string — Provider label for the precharge

## Other responses

- `400` — Bad Request - Invalid parameters or safety filter triggered
- `401` — Unauthorized - Invalid or missing API key
- `500` — Server Error - Video extension failed

---

[API](https://skmtc.dev/nano-gpt/apis/nanogpt-api.md) · [All operations](https://skmtc.dev/nano-gpt/apis/nanogpt-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nano-gpt/nanogpt-api/revisions/584e96d146b0/schema)
