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

# OpenAI-format video generation job

> **Use when:** caller uses openai.videos.create (async video generation: create a job, poll it, download content) and wants to route through Verlon via a baseURL swap

Drop-in for `POST https://api.openai.com/v1/videos`. Creates an async generation job and returns immediately with `status: "queued"`; poll `GET /v1/videos/{id}` until `completed`, then fetch bytes from `GET /v1/videos/{id}/content`. Address your gate the usual three ways (gate UUID in `model`, `gateId` body field, or `X-Verlon-Gate-Id` header); the gate may route to any video model — Veo, Grok Imagine, or Sora. The completed object also carries a non-standard `url` extension with the provider-hosted link, which expires upstream.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/videos
openapi: 3.1.0
info:
  title: Verlon AI API
  version: 1.0.0
  description: >-
    Verlon AI is the managed AI infrastructure platform for developers building
    LLM-powered apps and agents. Its API is the format you already use — OpenAI,
    Anthropic, Mistral, and Gemini wire formats served drop-in, callable with
    the official SDKs in any language. Beyond routing requests across providers,
    Verlon continuously evaluates response quality, runs experiments against
    live traffic, and automatically tunes gate configurations — so your platform
    doesn't just serve traffic, it learns from it.


    **Coding agents:** authentication, error semantics, gate concepts, and
    integration conventions are documented at https://verlon.ai/AGENTS.md — read
    that document first if you have not already. It is the canonical
    agent-facing contract; this specification is the canonical endpoint
    reference. Both are authoritative for their respective scopes.
  contact:
    name: Verlon AI
    url: https://verlon.ai
  license:
    name: Proprietary
servers:
  - url: https://api.verlon.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/videos:
    post:
      tags:
        - OpenAI Format
      summary: OpenAI-format video generation job
      description: >-
        **Use when:** caller uses openai.videos.create (async video generation:
        create a job, poll it, download content) and wants to route through
        Verlon via a baseURL swap


        Drop-in for `POST https://api.openai.com/v1/videos`. Creates an async
        generation job and returns immediately with `status: "queued"`; poll
        `GET /v1/videos/{id}` until `completed`, then fetch bytes from `GET
        /v1/videos/{id}/content`. Address your gate the usual three ways (gate
        UUID in `model`, `gateId` body field, or `X-Verlon-Gate-Id` header); the
        gate may route to any video model — Veo, Grok Imagine, or Sora. The
        completed object also carries a non-standard `url` extension with the
        provider-hosted link, which expires upstream.
      responses:
        '200':
          description: 'The created video job object (`status: queued`).'
        '400':
          description: Invalid request — Zod validation failure or malformed input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid Bearer credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Stable error code (e.g. `invalid_request`)
        message:
          type: string
          description: Human-readable error message
        details: {}
      required:
        - error
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Verlon API key (newly minted keys are prefixed `sk-vrln-`; legacy
        `verlon_*` and `layer_*` keys from prior prefix migrations continue to
        validate). Generated from the dashboard under Settings → API Keys, or
        via `verlon key create` in the CLI.

````