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

# Get model metadata

> Retrieve metadata for a single model by ID, including context length, max completion tokens, capabilities, and EU sovereignty region.



## OpenAPI

````yaml /en/api-reference/openapi_infercom.yml get /models/{model_id}
openapi: 3.1.1
info:
  title: Infercom Inference Service API
  description: Infercom Inference Service API Specification
  version: 1.0.0
  termsOfService: https://infercom.ai/terms-of-service
  contact:
    email: support@infercom.ai
    name: Infercom Support
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.infercom.ai/v1
security:
  - api_key: []
externalDocs:
  description: Find out more in the official Infercom docs
  url: /en/api-reference/overview
paths:
  /models/{model_id}:
    get:
      tags:
        - Models
      summary: Get environment's available model metadata
      description: >-
        Retrieve metadata for a single model by ID, including context length,
        max completion tokens, capabilities, and EU sovereignty region.
      operationId: getModel
      parameters:
        - in: path
          name: model_id
          required: true
          schema:
            title: Model Id
            type: string
            description: model id to get metadata
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelMetadata'
          description: Successful Response
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleError'
      x-codeSamples:
        - lang: Python
          source: |-
            from openai import OpenAI

            client = OpenAI(
                base_url="https://api.infercom.ai/v1",
                api_key="your-infercom-api-key",
            )

            model = client.models.retrieve("MiniMax-M2.7")
            print(model.id)
        - lang: cURL
          source: |-
            curl https://api.infercom.ai/v1/models/MiniMax-M2.7 \
              -H "Authorization: Bearer $INFERCOM_API_KEY"
components:
  schemas:
    ModelMetadata:
      title: Model Metadata
      type: object
      description: model metadata
      additionalProperties: true
      properties:
        id:
          title: Id
          type: string
          description: model id
        object:
          title: Object
          type: string
          description: type
          const: model
          default: model
          enum:
            - model
        owned_by:
          title: OwnedBy
          type: string
          description: model owner
        context_length:
          title: context length
          type: integer
          description: model context length
        max_completion_tokens:
          title: max completion tokens
          type: integer
          description: model max completion tokens
        sn_metadata:
          title: sn metadata
          type: object
          description: >-
            Additional metadata provided by SambaNova. Use the `?verbose=true`
            query parameter on `/v1/models` to ensure this field is populated.
          properties:
            region:
              title: region
              type: string
              description: >-
                Hosting region for the model. `"EU"` indicates the model runs on
                Infercom's EU infrastructure (Equinix Munich 4, Germany) with
                full data sovereignty.
              example: EU
            is_external:
              title: is_external
              type: boolean
              description: >-
                `false` = EU-hosted on Infercom infrastructure (sovereign).
                `true` = routed to SambaNova's global infrastructure (US).
              example: false
            architecture:
              title: architecture
              type: string
              description: Model architecture identifier
            provider:
              title: provider
              type: string
              description: Model provider (e.g., Meta, DeepSeek, MiniMax, OpenAI)
            capabilities:
              title: capabilities
              type: array
              items:
                type: string
              description: Model capabilities (e.g., text, reasoning, vision)
            license:
              title: license
              type: string
              description: Model license type
            status:
              title: status
              type: string
              description: Model availability status (e.g., active)
            hf_link:
              title: hf_link
              type: string
              description: Hugging Face model page URL
            overview:
              title: overview
              type: string
              description: Brief model description
        pricing:
          title: pricing
          type: object
          description: pricing details
          additionalProperties: true
          properties:
            prompt:
              title: prompt
              type: number
              description: price per prompt token in USD
            completion:
              title: completion
              type: number
              description: price per completion token in USD
            duration_per_hour:
              title: duration per hour
              type: number
              description: price per input hour
              nullable: true
      required:
        - id
    SimpleError:
      title: SimpleError
      type: object
      description: other kind of simple schema errors
      properties:
        error:
          title: error
          type: string
          description: error detail.
          nullable: true
      required:
        - error
  securitySchemes:
    api_key:
      type: http
      description: Infercom API Key
      scheme: bearer
      bearerFormat: apiKey

````