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

# List LLM Models

> Returns available models for a specific LLM provider

List available models for a specific LLM provider. Use the `model_id` value as the agent's `model_name` field when creating or updating an agent.

## Path Parameters

<ParamField path="provider_identifier" type="string" required>
  The provider's `internal_identifier` from [List LLM Providers](/api-reference/v1/misc/list-llm-providers) (e.g., `openai`, `anthropic`)
</ParamField>

## Response

Returns an array of `LLMModelItem` objects.

<ResponseField name="model_id" type="string">
  Model identifier — use this as the `model_name` field when creating/updating agents
</ResponseField>

<ResponseField name="display_name" type="string">
  Human-friendly model name
</ResponseField>

<ResponseField name="tier" type="integer">
  Model tier level (1 = standard, higher = premium)
</ResponseField>

<ResponseField name="description" type="string">
  Brief description of the model's capabilities
</ResponseField>

## Example Request

```bash theme={"dark"}
curl -X GET -H "x-api-key: <your-api-key>" \
  "https://api.xpander.ai/v1/misc/llm_providers/openai/models"
```

## Notes

* Returns `404` if the provider identifier is not found
* Use the `model_id` value as the agent's `model_name` field
* Models are organized by tier — higher tiers indicate more capable (and more expensive) models


## OpenAPI

````yaml GET /v1/misc/llm_providers/{provider_identifier}/models
openapi: 3.1.0
info:
  title: xpander.ai API Service
  description: |2-

        The xpander.ai API Service provides a unified REST API for managing AI agents,
        executing tasks, managing knowledge bases, and integrating with external systems.
        
        Features:
        - Agent Management: Create, update, deploy, and delete AI agents
        - Task Execution: Invoke agents with support for sync, async, and streaming modes
        - Knowledge Bases: Manage knowledge bases and documents for RAG workflows
        - Tools: Discover, connect, and attach tools (connectors, custom functions, MCP servers, sub-agents, workflows) to agents and workflows
        - MCP Integration: Model Context Protocol support for standardized AI interactions
        
        Authentication: All endpoints require authentication via either an API key (`x-api-key`) or an OAuth2 JWT (`Authorization: Bearer <jwt>`).
        
  version: '0.001'
servers:
  - url: https://api.xpander.ai
security: []
paths:
  /v1/misc/llm_providers/{provider_identifier}/models:
    get:
      tags:
        - API v1
        - Misc
        - LLM Providers
      summary: List Llm Models
      description: >-
        Returns available models for a specific LLM provider. Use the model_id
        value as the agent's model_name field when creating or updating an
        agent.
      operationId: List_LLM_models_v1_misc_llm_providers__provider_identifier__models_get
      parameters:
        - name: provider_identifier
          in: path
          required: true
          schema:
            type: string
            title: Provider Identifier
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LLMModelItem'
                title: >-
                  Response List Llm Models V1 Misc Llm Providers  Provider
                  Identifier  Models Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    LLMModelItem:
      properties:
        model_id:
          type: string
          title: Model Id
          description: >-
            The model identifier to use in agent configuration. Set this as the
            agent's model_name field (e.g., 'claude-sonnet-4-6', 'gpt-4o').
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
          description: Human-readable name of the model for display purposes.
        tier:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tier
          description: >-
            Model capability tier. Higher tiers indicate more capable (and
            typically more expensive) models. Tier 1 is standard, higher tiers
            are premium.
          default: 1
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: >-
            Brief description of the model's capabilities and recommended use
            cases.
      type: object
      required:
        - model_id
      title: LLMModelItem
      description: |-
        Public-facing LLM model summary.

        Returned by GET /llm_providers/{provider_identifier}/models.
        Use the model_id value for the agent's model_name field.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: API Key for authentication
      in: header
      name: x-api-key

````