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

# List available text models

> Returns the models available to this app. An enabled app without an active OpenAI credential receives an empty list.



## OpenAPI

````yaml /openapi/backapp-public.json get /v2/texts/models
openapi: 3.1.0
info:
  title: Backapp API
  version: 2.0.0
  description: >-
    Backapp v2 API reference for authentication, files, image effects, and AI
    jobs.
servers:
  - url: https://api.backapp.dev
security: []
paths:
  /v2/texts/models:
    get:
      summary: List available text models
      description: >-
        Returns the models available to this app. An enabled app without an
        active OpenAI credential receives an empty list.
      operationId: listTextModels
      parameters:
        - $ref: '#/components/parameters/AppVersion'
      responses:
        '200':
          description: Text model catalog
          content:
            application/json:
              schema:
                type: object
                properties:
                  models:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        provider:
                          type: string
                          enum:
                            - openai
                        max_output_tokens:
                          type: integer
                        reasoning_efforts:
                          type: array
                          items:
                            type: string
                      required:
                        - id
                        - provider
                        - max_output_tokens
                        - reasoning_efforts
                required:
                  - models
              example:
                models:
                  - id: openai:gpt-6-luna
                    provider: openai
                    max_output_tokens: 128000
                    reasoning_efforts:
                      - none
                      - low
                      - medium
                      - high
                      - xhigh
                      - max
        '400':
          description: Invalid input or model not available
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Operation not enabled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - AppKey: []
          Bearer: []
components:
  parameters:
    AppVersion:
      name: X-App-Version
      in: header
      required: true
      schema:
        type: string
        minLength: 1
      description: Version of the client application.
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            fields:
              type: object
              additionalProperties: true
      required:
        - error
  securitySchemes:
    AppKey:
      type: apiKey
      in: header
      name: X-App-Key
      description: Public application identifier.
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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