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

# List Models

List the AI models available to the authenticated user. The response mirrors the model choices available to that user in Alai and marks the default model with `default: true`.

Pass a returned `id` in the `model` object of a generate or edit request. If `model` is omitted, Alai uses the current default. Version 1 supports `fallback_policy: "deny"`: Alai fails the operation instead of silently switching away from your selected model.

```json theme={null}
{
  "model": {
    "id": "anthropic/claude-opus-4.8",
    "fallback_policy": "deny"
  }
}
```

<Note>
  Model availability can differ by account and may change over time. Discover models at runtime instead of hard-coding the full model list.
</Note>


## OpenAPI

````yaml GET /api/modern/v1/models
openapi: 3.1.0
info:
  title: Alai API
  description: API endpoints for Alai Classic, Creative, and Modern presentation generation
  version: 1.1.0
servers:
  - url: https://slides-api.getalai.com
security:
  - BearerAuth: []
paths:
  /api/modern/v1/models:
    get:
      tags:
        - Modern Slides API
      summary: List Models
      operationId: list_models_api_modern_v1_models_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ModernApiModel'
                type: array
                title: Response List Models Api Modern V1 Models Get
components:
  schemas:
    ModernApiModel:
      properties:
        id:
          $ref: '#/components/schemas/AgentPrimaryModel'
        label:
          type: string
          title: Label
        internal_only:
          type: boolean
          title: Internal Only
          default: false
        default:
          type: boolean
          title: Default
          default: false
      type: object
      required:
        - id
        - label
      title: ModernApiModel
    AgentPrimaryModel:
      type: string
      enum:
        - openai/gpt-5.6-sol
        - openai/gpt-5.6-terra
        - anthropic/claude-opus-4.8
        - anthropic/claude-sonnet-5
        - anthropic/claude-sonnet-4-6
        - anthropic/claude-haiku-4-5
        - google/gemini-3.1-pro-preview
        - moonshotai/kimi-k2.6
        - z-ai/glm-5.2
        - anthropic/claude-opus-4.8-fast
        - anthropic/claude-fable-5
      title: AgentPrimaryModel
      description: >-
        Selectable primary model for the modern deck and design system agents.


        Values are OpenRouter model IDs (see OpenRouterModels in
        ai_models/model_list.py).
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Your Alai API key. Get one from your account settings at app.getalai.com

````