﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>> ## 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.

# List models

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

Returns the image, video, speech and music models these routes serve now, each with the values it accepts. The list changes as models are added or retired, so read it rather than keeping a copy.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/media/models
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/models:
    get:
      summary: List models
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns the image, video, speech and music models these routes serve
        now, each with the values it accepts. The list changes as models are
        added or retired, so read it rather than keeping a copy.
      operationId: list_models_api_apps__app_id__media_models_get
      parameters:
        - 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: type
          in: query
          required: false
          schema:
            enum:
              - image
              - video
              - speech
              - music
            type: string
            description: 'Only list models of this type: image, video, speech or music.'
            title: Type
          description: 'Only list models of this type: image, video, speech or music.'
          example: video
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Models per page, 1 to 100.
            default: 100
            title: Limit
          description: Models per page, 1 to 100.
          example: 20
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            description: >-
              `next_cursor` from the previous page. It carries `type`, so
              sending `type` beside it returns a `400`.
            title: Cursor
          description: >-
            `next_cursor` from the previous page. It carries `type`, so sending
            `type` beside it returns a `400`.
          example: gAAAAABn7vJ0q2kX
        - 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: One page of models, filtered by `type` when given.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsResponse'
              example:
                models:
                  - id: veo_3_1_fast
                    type: video
                    owned_by: google
                    capabilities:
                      durations:
                        - 4
                        - 6
                        - 8
                      resolutions:
                        - 1080p
                        - 720p
                      aspect_ratios:
                        - '16:9'
                        - '9:16'
        '400':
          description: >-
            The cursor is invalid or expired, or was sent beside `type`
            (`invalid_request`).
          content:
            application/json:
              examples:
                invalid_request:
                  summary: invalid_request
                  value:
                    error:
                      code: invalid_request
                      message: Invalid cursor
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '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: >-
            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:
                not_found:
                  summary: not_found
                  value:
                    error:
                      code: not_found
                      message: Not found.
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '422':
          description: >-
            `type` is not one of image, video, speech or music
            (`invalid_request`).
          content:
            application/json:
              examples:
                invalid_request:
                  summary: invalid_request
                  value:
                    error:
                      code: invalid_request
                      message: Invalid request
                      details: {}
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
        '429':
          description: >-
            Too many requests (`rate_limited`). The base limit is 60 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:
    ModelsResponse:
      properties:
        models:
          items:
            $ref: '#/components/schemas/MediaModel'
          type: array
          title: Models
          description: One page of models, ordered by `id`.
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Send as `cursor` for the next page; `null` on the last page.
          examples:
            - gAAAAABn7vJ0q2kX
      type: object
      required:
        - models
      title: ModelsResponse
    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.
    MediaModel:
      properties:
        id:
          type: string
          title: Id
          description: The id to send as `model`.
          examples:
            - veo_3_1_fast
        type:
          type: string
          enum:
            - image
            - video
            - speech
            - music
          title: Type
        owned_by:
          type: string
          title: Owned By
          description: The model's maker.
          examples:
            - google
        capabilities:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Capabilities
          description: >-
            What the model accepts, such as lengths, sizes and reference limits.
            Values outside them are refused with 400.
      type: object
      required:
        - id
        - type
        - owned_by
      title: MediaModel
    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

- [Connectors catalog](https://docs.base44.com/Integrations/connectors-catalog.md)
- [List agents](https://docs.base44.com/api-reference/compliance/list-agents.md)
- [Managing MCP connections](https://docs.base44.com/documentation/account-and-billing/setting-up-a-custom-mcp.md)
- [List integrations](https://docs.base44.com/api-reference/compliance/list-integrations.md)
- [Supported Models](https://docs.base44.com/developers/backend/resources/models.md)


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