> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkmodel.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Video generation

> This historical endpoint remains supported with no announced sunset date. New integrations should use `POST /v1/videos/generations`.

The request body uses the same model-specific fields shown on the primary video model pages. The generic schema below requires `model` and allows those additional fields without duplicating every model schema here.

If a POST request times out or returns an uncertain result, do not blindly retry it. A retry can create another task and billing order.




## OpenAPI

````yaml /openapi/legacy/_video-create.yaml post /video-generation
openapi: 3.0.3
info:
  title: Video generation
  version: 1.0.0
  description: Historical video creation endpoint retained for existing integrations.
servers:
  - url: https://api.linkmodel.ai/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: legacy
paths:
  /video-generation:
    post:
      tags:
        - legacy
      summary: Video generation
      description: >
        This historical endpoint remains supported with no announced sunset
        date. New integrations should use `POST /v1/videos/generations`.


        The request body uses the same model-specific fields shown on the
        primary video model pages. The generic schema below requires `model` and
        allows those additional fields without duplicating every model schema
        here.


        If a POST request times out or returns an uncertain result, do not
        blindly retry it. A retry can create another task and billing order.
      operationId: legacy-video-generation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
              additionalProperties: true
              properties:
                model:
                  type: string
                  description: Video model id from `GET /v1/models`.
                  example: sora-2
                prompt:
                  type: string
                  example: A futuristic city at sunset
      responses:
        '200':
          description: Business response containing `data.task_id` when `code=0`.
        '401':
          description: Unauthorized — missing or invalid API key.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````