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

# Get a video

> Accepts a Render ID (`render_` prefix), an H3 generation ID
(`vid_` prefix), a Remake generation ID (`anim_`), or
an upscale ID (`vsr_`), created with the calling API key, and returns
its full current state. This endpoint replaces the retired
`GET /v1/renders/{render_id}`.

Result files are deleted 24 hours after the job finishes; after that
the video still reads `ready` with `video_url` and `alpha_url` null.




## OpenAPI

````yaml /openapi.yaml get /v1/videos/{video_id}
openapi: 3.0.3
info:
  title: Viggle API
  description: >
    The Viggle API generates AI video (Viggle H3, Viggle Remake, Video

    Remix), images (Viggle Image), 2x video upscaling (FlashVSR), and JST-2

    3D characters, motions, and scenes. Every job is asynchronous: create it,

    then poll (or, for renders, watch) until it reaches a terminal status.


    Base URL: `https://apis.viggle.ai`. Authenticate every request with

    `Authorization: Bearer <API key>`. Usage is billed in credits

    (1 credit = $0.01). Guides and pricing:
    https://docs.viggle.ai/v1/introduction
  version: 2.0.0
  contact:
    name: Viggle Support
    url: https://viggle.ai
servers:
  - url: https://apis.viggle.ai
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Renders
    description: >-
      Video Remix (JST-1). Prepare inputs, create renders, watch progress,
      cancel, and download results. Read render status through `GET
      /v1/videos/{video_id}`.
  - name: Credits
    description: Read the credit balance available to the calling API key.
  - name: Characters
    description: |
      Create, list, inspect, and delete reusable character assets. `type`
      selects whether creation also extracts a 3D vsplat; export its
      download URL separately once ready.
  - name: Motions
    description: |
      Create, list, inspect, and delete reusable motion assets, and import one
      from an official motion template. `type` selects whether creation also
      extracts or generates a 3D animation; export its download URL
      separately once ready.
  - name: Videos
    description: |
      Generate a Viggle H3 video from text, frames, or references (`vid_`
      prefix) or a Viggle Remake video from a driving video and character
      images (`anim_` prefix), upscale a video 2x with FlashVSR (`vsr_`
      prefix), and read the unified view over every video the calling API
      key created — H3 generations, Remake generations, and Video Remix
      renders (`render_` prefix) — merged into one resource.
  - name: Images
    description: |
      Viggle Image — generate 1–6 PNG images from a text prompt,
      optionally guided by up to 8 reference images
      (`img_` prefix), and retrieve them by ID.
  - name: Scenes
    description: |
      Scene model — build a 3D Gaussian-splat scene (`.spz`) from a text
      prompt or a 360° panorama, generate new posed views of it, and
      reconstruct it from those views. Every operation is an asynchronous
      task (`scn_` prefix) read back by ID. Every run costs 1 credit per
      view, and a panorama counts as 6 views. Credits are refunded in full
      unless the task finishes `ready`.
paths:
  /v1/videos/{video_id}:
    parameters:
      - $ref: '#/components/parameters/VideoId'
      - $ref: '#/components/parameters/RequestId'
    get:
      tags:
        - Videos
      summary: Get a video
      description: |
        Accepts a Render ID (`render_` prefix), an H3 generation ID
        (`vid_` prefix), a Remake generation ID (`anim_`), or
        an upscale ID (`vsr_`), created with the calling API key, and returns
        its full current state. This endpoint replaces the retired
        `GET /v1/renders/{render_id}`.

        Result files are deleted 24 hours after the job finishes; after that
        the video still reads `ready` with `video_url` and `alpha_url` null.
      operationId: getVideo
      responses:
        '200':
          description: Current video state.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Video'
        '401':
          $ref: '#/components/responses/V1Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  parameters:
    VideoId:
      name: video_id
      in: path
      required: true
      description: >-
        Public video ID owned by the caller — a Render (`render_` prefix), H3
        generation (`vid_`), Remake generation (`anim_`), or super-resolution
        task (`vsr_`).
      schema:
        type: string
        minLength: 1
      example: render_job_3f9a2c71b5e04d18
    RequestId:
      name: X-Request-Id
      in: header
      required: false
      description: >-
        Optional caller-supplied correlation ID, echoed as sent in the response
        header. Omit it and the service generates one. Use it for tracing and
        support.
      schema:
        type: string
        minLength: 1
  headers:
    RequestId:
      description: Stable request identifier for support and tracing.
      schema:
        type: string
  schemas:
    Video:
      description: |
        Unified, read-only full-state resource for a finished
        character+motion Render (`render_` prefix), a Viggle H3
        video generation (`vid_` prefix), or a Remake
        generation (`anim_` prefix). It carries no `links` field.

        `stage` is populated only when this is a Render-sourced video and
        `status` is `processing`; it is null in every other case, including
        every H3 and Remake video. `alpha_url` is populated
        only on a Render-sourced video created with
        `background_mode=transparent` once it is `ready`; it is always null
        otherwise. `seed` is H3-only — present (not present-but-null; simply
        absent from the response) only on an H3-origin video, never on a
        Render-sourced or Remake one.
      type: object
      additionalProperties: false
      required:
        - id
        - status
        - stage
        - progress
        - video_url
        - alpha_url
        - created_at
        - completed_at
        - error
      properties:
        id:
          type: string
          description: >-
            Public video ID — a Render (`render_` prefix), an H3 generation
            (`vid_` prefix), or a Remake generation (`anim_` prefix).
          minLength: 1
        status:
          description: >-
            Overall lifecycle. `ready`, `failed`, and `cancelled` are terminal
            states.
          allOf:
            - $ref: '#/components/schemas/ResourceStatus'
        stage:
          type: string
          description: >-
            Coarse pipeline phase, Render-only. Null except while a
            Render-sourced video's `status` is `processing`; always null for an
            H3 video.
          nullable: true
          allOf:
            - $ref: '#/components/schemas/RenderStage'
        progress:
          type: integer
          description: >-
            For a render (`render_`), a best-effort percentage from 0 through
            100, `0` until the pipeline reports progress. For H3 (`vid_`),
            Remake (`anim_`) and upscale (`vsr_`) videos, null until the video
            is `ready`, then `100`, with no values in between; on H3 and Remake,
            watch `queue_position` and `estimated_wait_seconds` instead.
          nullable: true
          minimum: 0
          maximum: 100
        video_url:
          type: string
          description: >-
            URL of the completed video; null until ready, when no output was
            produced, or once the result files are deleted 24 hours after the
            job finishes. For H3, Remake, and upscale videos it is a signed URL
            valid for 1 hour, re-signed on every read; for a render it is a CDN
            URL.
          nullable: true
          format: uri
        alpha_url:
          type: string
          description: >-
            Render-only alpha/mask video URL for transparent-background output;
            null on every H3 video and on any Render not created with
            `background_mode=transparent`.
          nullable: true
          format: uri
        created_at:
          type: string
          description: >-
            Creation timestamp. Render-sourced videos report nanosecond
            precision; H3 videos report second precision.
          nullable: true
          format: date-time
        completed_at:
          type: string
          description: |
            Terminal-state timestamp; null while the video is active. On a
            Render-sourced video this can lag `status` reaching `ready` by
            up to roughly 30 seconds before it is backfilled — use `status`
            (or check `video_url`), not the presence of this field, to
            detect completion.
          nullable: true
          format: date-time
        error:
          type: object
          description: >-
            Structured failure details when `status` is `failed`; otherwise
            null.
          nullable: true
          allOf:
            - $ref: '#/components/schemas/ErrorBody'
        seed:
          type: integer
          format: int64
          description: >-
            H3-only — present only on an H3-origin video, absent (not null) on
            Render-, Remake-, and super-resolution-sourced ones. The seed
            actually used for generation — a caller-supplied value echoed back,
            or the value generated when `POST /v1/videos` omitted one. Generated
            seeds are random 63-bit integers (0 to 2^63−1), so they usually
            exceed 2^53 − 1 — parse this field with a 64-bit-safe JSON decoder;
            JavaScript's `JSON.parse` silently rounds it.
        queue_position:
          type: integer
          nullable: true
          minimum: 0
          description: >-
            Present on H3 (`vid_`) and Remake (`anim_`) videos. Exact number of
            tasks ahead while the video is queued. Present as `null` once
            processing starts and at terminal states; absent entirely for
            Render- and super-resolution-origin videos.
        estimated_wait_seconds:
          type: integer
          nullable: true
          minimum: 0
          description: >-
            Present on H3 (`vid_`) and Remake (`anim_`) videos. Approximate
            remaining wait in seconds, based on fleet-wide average render time
            and current queue/dispatch state — while queued, the expected wait
            to finish; while processing, the remaining average render time.
            Present as `null` at terminal states or when no bounded estimate is
            available; absent entirely for Render- and super-resolution-origin
            videos.
    ResourceStatus:
      description: |
        The public lifecycle shared by every asynchronous resource. It carries
        the same values as `RenderStatus`.
      type: string
      enum:
        - queued
        - processing
        - ready
        - failed
        - cancelled
    RenderStage:
      description: |
        A coarse progress hint, set only while a render is `processing`.
        Treat an unrecognized value as "in progress" rather than failing.
      type: string
      enum:
        - analyzing
        - rendering
        - finishing
    ErrorBody:
      type: object
      additionalProperties: false
      required:
        - code
        - message
        - retryable
        - request_id
        - details
        - remediation
      properties:
        code:
          description: >-
            Stable, machine-readable error code. Use it for programmatic
            handling instead of parsing `message`.
          allOf:
            - $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: >-
            Human-readable explanation suitable for logs or presentation to a
            developer.
        retryable:
          type: boolean
          description: >-
            Whether retrying the operation without changing its input may
            succeed. True for HTTP 408, 429, and 5xx responses.
        request_id:
          type: string
          description: >-
            Correlation identifier for tracing and support. Include it when
            reporting the failure.
        details:
          type: object
          description: Error-specific structured context; available keys depend on `code`.
          additionalProperties: true
        remediation:
          description: Suggested recovery action and optional retry delay.
          allOf:
            - $ref: '#/components/schemas/ErrorRemediation'
    ErrorResponse:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          description: >-
            Error payload containing the stable code, message, retry guidance,
            correlation ID, and error-specific details.
          allOf:
            - $ref: '#/components/schemas/ErrorBody'
    ErrorCode:
      description: |
        Error codes the API emits, in the synchronous error envelope and in
        the `error` object of a failed job. Clients should tolerate codes not
        listed here. Asynchronous failures that have no public mapping
        surface as `PROCESSING_FAILED`.
      type: string
      enum:
        - INVALID_REQUEST
        - UNAUTHENTICATED
        - INVALID_CREDENTIAL
        - INSUFFICIENT_CREDITS
        - RENDER_NOT_FOUND
        - CHARACTER_NOT_FOUND
        - MOTION_NOT_FOUND
        - DRAFT_NOT_FOUND
        - NOT_FOUND
        - RESULT_EXPIRED
        - IDEMPOTENCY_KEY_REUSED
        - ID_ALREADY_EXISTS
        - UPLOAD_TIMEOUT
        - CONTENT_POLICY_VIOLATION
        - RATE_LIMITED
        - SERVICE_BUSY
        - INTERNAL_ERROR
        - IMAGE_REQUIRED
        - MOTION_VIDEO_REQUIRED
        - UNSUPPORTED_MEDIA
        - VIDEO_TOO_LONG
        - VIDEO_TOO_LARGE
        - VIDEO_RESOLUTION_TOO_HIGH
        - VIDEO_UNREADABLE
        - VIDEO_DIMENSIONS_MUST_BE_EVEN
        - VIDEO_INACCESSIBLE
        - NO_HUMANS_DETECTED
        - MOTION_NOT_READY
        - MOTION_MODEL_MISMATCH
        - INVALID_BACKGROUND_MODE
        - ALL_WORKERS_BUSY
        - WORKER_STOPPED
        - TASK_FAILED
        - PROCESSING_FAILED
    ErrorRemediation:
      type: object
      additionalProperties: false
      required:
        - action
        - retry_after_ms
      properties:
        action:
          type: string
          enum:
            - none
            - retry
          description: >-
            Suggested next action. Synchronous errors always carry `none`; a
            failed job's `error` carries `retry` when the failure is retryable.
        retry_after_ms:
          type: integer
          description: >-
            Recommended delay in milliseconds before retrying; null when no
            timed retry is advised.
          nullable: true
          format: int64
          minimum: 0
  responses:
    V1Unauthorized:
      description: Missing or invalid API key. Code `UNAUTHENTICATED`.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: |
        Not found, or not owned by the calling API key (code
        `RENDER_NOT_FOUND`, `DRAFT_NOT_FOUND`, or `NOT_FOUND` for images).
        A render whose result files were deleted by retention answers
        `RESULT_EXPIRED`.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Unexpected server error.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ServiceUnavailable:
      description: Service temporarily unavailable.
      headers:
        Retry-After:
          schema:
            type: integer
            minimum: 0
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: |
        Send your API key as `Authorization: Bearer <API key>`. Keys begin
        with `sk-`. A missing or invalid key answers `401 UNAUTHENTICATED`.
        Never expose an API key in browser code.

````

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