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

# Discover invokable models for a provider

> Live per-provider model discovery, reflecting what the configured account can actually invoke (unlike the static catalog). Currently supports provider=bedrock: the server calls the AWS Bedrock discovery APIs (ListFoundationModels + ListInferenceProfiles) with the configured AWS credentials and merges them into invokable ids — a model without on-demand support is returned as its cross-region inference-profile id (e.g. us.anthropic....). Results are cached for 5 minutes. The Configuration UI overlays catalog labels on this list and falls back to the static catalog when discovery is unavailable.



## OpenAPI

````yaml /openapi.yaml get /api/v1/ai/models
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.11.3
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/ai/models:
    get:
      tags:
        - AI
      summary: Discover invokable models for a provider
      description: >-
        Live per-provider model discovery, reflecting what the configured
        account can actually invoke (unlike the static catalog). Currently
        supports provider=bedrock: the server calls the AWS Bedrock discovery
        APIs (ListFoundationModels + ListInferenceProfiles) with the configured
        AWS credentials and merges them into invokable ids — a model without
        on-demand support is returned as its cross-region inference-profile id
        (e.g. us.anthropic....). Results are cached for 5 minutes. The
        Configuration UI overlays catalog labels on this list and falls back to
        the static catalog when discovery is unavailable.
      parameters:
        - name: provider
          in: query
          required: true
          schema:
            type: string
            enum:
              - bedrock
      responses:
        '200':
          description: Discovered models
          content:
            application/json:
              schema:
                type: object
                properties:
                  provider:
                    type: string
                  models:
                    type: array
                    items:
                      type: object
                      properties:
                        value:
                          type: string
                          description: Invokable model or inference-profile id
                        label:
                          type: string
        '400':
          description: Discovery not supported for the given provider
        '502':
          description: >-
            Discovery unavailable — typically no AWS credentials configured, or
            an IAM policy missing bedrock:ListFoundationModels /
            bedrock:ListInferenceProfiles. Callers should fall back to the
            static catalog.
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````