---
title: "List LLM Provider Models"
method: POST
path: "/api/v1/actions/ai/llmProvider/listModels"
tags: ["Smart Functions"]
---

# List LLM Provider Models

`POST /api/v1/actions/ai/llmProvider/listModels`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/actions/ai/llmProvider/listModels`
- Auth: none declared

Lists models available on an LLM provider with a full definition. For Azure AI Foundry providers, the model family will be set to UNKNOWN because the endpoint does not expose the family.

## Request body

- ListLlmProviderModelsRequest
  - `providerConfig` union, required: Provider configuration overrides.
    - AnthropicProviderConfig: Configuration for Anthropic provider.
      - `auth` AnthropicProviderAuth, required: Authentication configuration.
        - `apiKey` string, nullable: Anthropic API key.
        - `type` 'API_KEY', required: Authentication type.
      - `baseUrl` string: Custom base URL for the Anthropic API. Defaults to the official endpoint; override only for enterprise proxies or compatible gateways.
      - `type` 'ANTHROPIC', required: Provider type.
    - AwsBedrockProviderConfig: Configuration for AWS Bedrock provider.
      - `auth` BedrockProviderAuth, required: Authentication configuration.
        - `accessKeyId` string, nullable: AWS Access Key ID.
        - `secretAccessKey` string, nullable: AWS Secret Access Key.
        - `sessionToken` string, nullable: AWS Session Token (for temporary credentials).
        - `type` 'ACCESS_KEY', required: Authentication type.
      - `region` string, required: AWS region for Bedrock.
      - `type` 'AWS_BEDROCK', required: Provider type.
    - AzureFoundryProviderConfig: Configuration for Azure Foundry provider.
      - `auth` AzureFoundryProviderAuth, required: Authentication configuration.
        - `apiKey` string, nullable: Azure API key.
        - `type` 'API_KEY', required: Authentication type.
      - `endpoint` string, required: Azure OpenAI endpoint URL.
      - `type` 'AZURE_FOUNDRY', required: Provider type.
    - OpenAIProviderConfig: Configuration for OpenAI provider.
      - `auth` OpenAiProviderAuth, required: Authentication configuration.
        - `apiKey` string, nullable: OpenAI API key.
        - `type` 'API_KEY', required: Authentication type.
      - `baseUrl` string: Custom base URL for OpenAI API.
      - `organization` string, nullable: OpenAI organization ID.
      - `type` 'OPENAI', required: Provider type.

## Response `200`

OK

- ListLlmProviderModelsResponse
  - `message` string, required: Message about the listing result.
  - `models` LlmModel[], required: Available models on the provider.
    - `family` 'OPENAI' | 'ANTHROPIC' | 'META' | 'MISTRAL' | 'AMAZON' | 'GOOGLE' | 'COHERE' | 'UNKNOWN', required
    - `id` string, required: Unique identifier of the model (e.g., gpt-5.3, claude-4.6).
  - `success` boolean, required: Whether the model listing succeeded.

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
