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

# List an Agent Gateway's models

> Lists the models the instance serves. Each has the name a request uses, the Telnyx Inference model behind it, and its price per million tokens.



## OpenAPI

````yaml /openapi/source/external/agent-gateway/agent-gateway.json get /agent_gateways/{instance_id}/models
openapi: 3.1.0
info:
  version: 1.0.0
  title: Telnyx API
  x-latency-category: interactive
  x-endpoint-cost: light
  description: >-
    Agent Gateway authenticates, authorizes, and audits the requests agents send
    to models, tools, and other agents. Each gateway runs as a dedicated
    instance on the account's
    [*Network*](https://developers.telnyx.com/docs/network/overview). This API
    creates, lists, and deletes instances, and manages the keys, teams, spend
    logs, MCP servers, APIs, tool permissions, and guardrails on them. Each
    instance serves an OpenAI-compatible API at its `gateway_url`.
servers:
  - url: https://api.telnyx.com/v2
    description: Telnyx API v2
security:
  - bearerAuth: []
tags:
  - name: Agent Gateways
    description: Create, list, retrieve, and delete Agent Gateway instances.
  - name: Agent Gateway Keys
    description: Keys on an instance.
  - name: Agent Gateway Teams
    description: 'Teams on an instance: shared model lists, budgets, and rate limits.'
  - name: Agent Gateway Spend Logs
    description: The requests an instance served, with their cost.
  - name: Agent Gateway MCP Servers
    description: MCP servers on an instance, served to agents at one MCP endpoint.
  - name: Agent Gateway APIs
    description: REST APIs on an instance, served to agents as tools.
  - name: Agent Gateway Tool Permissions
    description: The MCP servers and tools a key or team may use.
  - name: Agent Gateway Guardrails
    description: Checks an instance runs on model and tool requests.
  - name: Agent Gateway Policies
    description: Named sets of guardrails an instance applies to requests.
  - name: Agent Gateway Policy Attachments
    description: Where an instance applies each policy.
paths:
  /agent_gateways/{instance_id}/models:
    get:
      tags:
        - Agent Gateways
      summary: List an Agent Gateway's models
      description: >-
        Lists the models the instance serves. Each has the name a request uses,
        the Telnyx Inference model behind it, and its price per million tokens.
      operationId: ListAgentGatewayModels
      parameters:
        - name: instance_id
          in: path
          required: true
          description: The Agent Gateway's `id`.
          schema:
            type: string
            format: uuid
          example: 32ce035d-3165-4031-b1a7-a7c0c259590a
      responses:
        '200':
          description: The instance's models
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentGatewayModelListResponse'
              example:
                data:
                  - id: 4e416b40-84f1-46e4-9935-bb75079e4b08
                    name: DeepSeek-V4.1-Flash
                    model: deepseek-ai/DeepSeek-V4.1-Flash
                    pricing:
                      input: 0.3
                      output: 1.2
                      cached_input: 0.006
                      currency: USD
                      unit: 1M_tokens
                    priced_at: '2026-10-29T14:53:48.436741Z'
                  - id: bc74a861-f8ed-4963-a15c-c7670811220a
                    name: GLM-5.3
                    model: zai-org/GLM-5.3
                    pricing:
                      input: 1.25
                      output: 4
                      cached_input: 0.24
                      currency: USD
                      unit: 1M_tokens
                    priced_at: '2026-10-29T14:53:48.684077Z'
                  - id: 4384def6-12c6-47ae-b67b-9d153fd5a58d
                    name: GLM-5.3-Flash
                    model: zai-org/GLM-5.3-Flash
                    pricing:
                      input: 0.135
                      output: 0.45
                      cached_input: 0.027
                      currency: USD
                      unit: 1M_tokens
                    priced_at: '2026-10-29T14:53:48.862281Z'
                  - id: 879ec00c-399a-4937-b9d3-362b2a4deaaf
                    name: Qwen3.8-27B
                    model: Qwen/Qwen3.8-27B
                    pricing:
                      input: 0.4
                      output: 3
                      cached_input: 0.05
                      currency: USD
                      unit: 1M_tokens
                    priced_at: '2026-10-29T14:53:49.168161Z'
                  - id: 0adc4aae-1b3b-498f-ba75-9db64cbef0af
                    name: Qwen3.8-27B-nothink
                    model: Qwen/Qwen3.8-27B
                    pricing:
                      input: 0.4
                      output: 3
                      cached_input: 0.05
                      currency: USD
                      unit: 1M_tokens
                    priced_at: '2026-10-29T14:53:49.289731Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
              example:
                errors:
                  - code: '10009'
                    title: Authentication failed
                    detail: >-
                      The required authentication headers were either invalid or
                      not included in the request.
                    meta:
                      url: https://developers.telnyx.com/docs/overview/errors/10009
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
              example:
                errors:
                  - code: '10005'
                    title: Resource not found
                    detail: The requested resource or URL could not be found.
                    meta:
                      url: https://developers.telnyx.com/docs/overview/errors/10005
components:
  schemas:
    AgentGatewayModelListResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/AgentGatewayModel'
    TelnyxErrors:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/TelnyxError'
    AgentGatewayModel:
      type: object
      description: A model an instance serves.
      required:
        - id
        - name
        - model
        - pricing
        - priced_at
      properties:
        id:
          type: string
          format: uuid
          description: The model's ID on the instance.
        name:
          type: string
          description: The name a request uses, such as `GLM-5.3-Flash`.
        model:
          type: string
          description: >-
            The Telnyx Inference model behind it, such as
            `zai-org/GLM-5.3-Flash`.
        pricing:
          $ref: '#/components/schemas/AgentGatewayModelPricing'
        priced_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          description: When the price was last set.
    TelnyxError:
      type: object
      properties:
        code:
          type: string
        title:
          type: string
        detail:
          type: string
        source:
          type: object
          properties:
            pointer:
              type: string
            parameter:
              type: string
        meta:
          type: object
          properties:
            url:
              type: string
    AgentGatewayModelPricing:
      type: object
      description: A model's price in USD per million tokens.
      required:
        - input
        - output
        - cached_input
        - currency
        - unit
      properties:
        input:
          type: number
          description: USD per million input tokens.
        output:
          type: number
          description: USD per million output tokens.
        cached_input:
          anyOf:
            - type: number
            - type: 'null'
          description: USD per million cached input tokens.
        currency:
          type: string
          description: Always `USD`.
        unit:
          type: string
          description: Always `1M_tokens`.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key

````