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

# Create Video Generation



## OpenAPI

````yaml /api-reference/openapi.json post /v1/videos/generations
openapi: 3.1.0
info:
  title: Lyceum Cloud API
  version: 0.1.0
servers:
  - url: https://api.lyceum.technology
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - Video Generation
      summary: Create Video Generation
      operationId: create_video_generation_v1_videos_generations_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoGenerationRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    VideoGenerationRequest:
      properties:
        model:
          type: string
          title: Model
        prompt:
          type: string
          title: Prompt
          description: >-
            What to generate, for models that generate from a prompt. Required
            for those models; a replace works from a clip instead.
        video_url:
          type: string
          title: Video Url
          description: >-
            The clip to work from, for models that replace within one. Must be
            reachable at a public address.
        reference_image_url:
          type: string
          title: Reference Image Url
          description: A still to work from. Must be reachable at a public address.
        duration_seconds:
          type: integer
          title: Duration Seconds
          description: How long a generated clip runs. Defaults to 5.
          minimum: 2
          maximum: 12
          default: 5
        size:
          type: string
          title: Size
          description: >-
            The resolution for models priced by one: 720p or 1080p for video
            replace. Not read by models that size by model.
      type: object
      required:
        - model
      title: VideoGenerationRequest
    VideoGenerationResponse:
      properties:
        created:
          type: integer
          title: Created
        data:
          type: array
          title: Data
          items:
            type: object
            title: GenerationResult
            properties:
              url:
                type: string
                title: Url
        usage:
          type: object
          title: Usage
          description: What the generation was billed on.
          properties:
            total_tokens:
              type: integer
              title: Total Tokens
            duration_seconds:
              type: number
              title: Duration Seconds
            size:
              type: string
              title: Size
            estimated:
              type: boolean
              title: Estimated
              description: >-
                The figure was worked out here because the upstream reported
                none.
      type: object
      required:
        - created
        - data
      title: VideoGenerationResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass an API key (prefixed `lk_`) or a JWT access token as a bearer
        token. Generate API keys in the dashboard at
        https://dashboard.lyceum.technology/api-keys. Organization and account
        endpoints accept a JWT only; each of them says so.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.