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

# Get a video

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns a video job of this app: its status and, once `completed`, the MP4 file's URL.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/media/videos/{video_id}
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/media/videos/{video_id}:
    get:
      summary: Get a video
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns a video job of this app: its status and, once `completed`, the
        MP4 file's URL.
      operationId: get_video_api_apps__app_id__media_videos__video_id__get
      parameters:
        - name: video_id
          in: path
          required: true
          schema:
            type: string
            description: The video's ID, as Create a video returned it.
            title: Video Id
          description: The video's ID, as Create a video returned it.
          example: video_6820f3a4e7b91d003c45a1f2
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app to generate media for.
            title: App Id
          description: ID of the app to generate media for.
          example: 6820f3a4e7b91d003c45a1f2
        - name: X-Active-Branch-Id
          in: header
          required: false
          schema:
            type: string
            description: >-
              ID of the branch the editor shows. Used when `branch_id` is
              omitted, for users who work on protected-main branches.
            title: X-Active-Branch-Id
          description: >-
            ID of the branch the editor shows. Used when `branch_id` is omitted,
            for users who work on protected-main branches.
          example: 68f1a2b3c4d5e6f708192a3b
      responses:
        '200':
          description: The job. `url` is set once `status` is `completed`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoResponse'
              example:
                id: video_6820f3a4e7b91d003c45a1f2
                status: completed
                model: veo_3_1_fast
                seconds: '8'
                created_at: '2026-11-23T10:00:00Z'
                completed_at: '2026-11-23T10:01:30Z'
                url: https://media.base44.com/videos/public/6820f3a4/clip.mp4
                usage:
                  credits: 80
        '403':
          description: >-
            The workspace's AI policy turns off media generation for this app
            (`forbidden`).
          content:
            application/json:
              examples:
                forbidden:
                  summary: forbidden
                  value:
                    error:
                      code: forbidden
                      message: AI media generation is turned off for this app.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '404':
          description: >-
            No video with this ID in this app (`video_not_found`), or the API
            isn't enabled for you, or the app doesn't exist or you can't edit it
            (`not_found`).
          content:
            application/json:
              examples:
                video_not_found:
                  summary: video_not_found
                  value:
                    error:
                      code: video_not_found
                      message: Video not found.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '429':
          description: >-
            Too many requests (`rate_limited`). The base limit is 120 requests
            per 60 seconds for each caller, raised by your plan's multiplier.
            Retry after the `Retry-After` seconds.
          content:
            application/json:
              examples:
                rate_limited:
                  summary: rate_limited
                  value:
                    error:
                      code: rate_limited
                      message: Rate limit exceeded.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - read_only
        - WorkspaceApiKeyAuth:
            - read_only
        - WorkspaceApiKeyBearerAuth:
            - read_only
components:
  schemas:
    VideoResponse:
      properties:
        id:
          type: string
          title: Id
          description: The video's ID, for Get a video.
          examples:
            - video_6820f3a4e7b91d003c45a1f2
        status:
          type: string
          enum:
            - queued
            - in_progress
            - completed
            - failed
          title: Status
        model:
          type: string
          title: Model
          examples:
            - veo_3_1_fast
        seconds:
          anyOf:
            - type: string
            - type: 'null'
          title: Seconds
          description: Clip length in seconds.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the job was created, ISO 8601 UTC.
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
          description: When the job finished, ISO 8601 UTC, or `null`.
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: >-
            Public URL of the MP4 once `completed`, else `null`. Anyone with the
            link can open it, and the link doesn't expire.
        error:
          anyOf:
            - $ref: '#/components/schemas/VideoFailure'
            - type: 'null'
          description: Why the job failed, or `null`.
        usage:
          anyOf:
            - $ref: '#/components/schemas/MediaUsage'
            - type: 'null'
          description: Credits charged, once known.
      type: object
      required:
        - id
        - status
        - model
        - seconds
        - created_at
        - completed_at
        - url
        - error
        - usage
      title: VideoResponse
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    VideoFailure:
      properties:
        code:
          type: string
          title: Code
          description: Stable error code.
        message:
          type: string
          title: Message
          description: What went wrong.
      type: object
      required:
        - code
        - message
      title: VideoFailure
    MediaUsage:
      properties:
        credits:
          type: number
          title: Credits
          description: Credits charged to the app, or the estimate for a dry run.
          examples:
            - 4
      type: object
      required:
        - credits
      title: MediaUsage
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

## Related topics

- [Generate video with the AI Gateway](https://docs.base44.com/developers/references/sdk/getting-started/ai-gateway-video.md)
- [Creating a video to show off your app](https://docs.base44.com/promoting-your-app/show-off-video.md)
- [Using Base44 built-in integrations](https://docs.base44.com/Integrations/built-in-integrations.md)
- [Generate music with the AI Gateway](https://docs.base44.com/developers/references/sdk/getting-started/ai-gateway-music.md)
- [Creating images and videos with Base44 Studio](https://docs.base44.com/Building-your-app/base44-studio.md)


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