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

# Get LLM

> Retrieves the configuration of an existing LLM by its ID



## OpenAPI

````yaml GET /llm/update/{llm_id}/
openapi: 3.1.0
info:
  title: CloserX.ai API
  description: >-
    The CloserX.ai API provides programmatic access to manage AI-powered calling
    operations, including agent creation, campaign management, contact handling,
    telephony integration, and more. This API enables seamless automation and
    integration with CRM systems, telephony providers, and other third-party
    services for enhanced client communication and business operations.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.closerx.ai/api
security:
  - api_key: []
paths:
  /llm/update/{llm_id}/:
    get:
      description: Retrieves the configuration of an existing LLM by its ID
      parameters:
        - name: Company-Name
          in: header
          description: The name of the schema to be used for the request
          required: true
          schema:
            type: string
        - name: llm_id
          in: path
          description: Unique identifier for the LLM to retrieve
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: LLM retrieval response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateLLMResponse'
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UpdateLLMResponse:
      type: object
      required:
        - success
        - message
        - data
        - prices
      properties:
        success:
          type: boolean
          description: Indicates whether the request was successful
        message:
          type: string
          description: Message describing the result of the request
        default_dynamic_variables:
          type: object
          additionalProperties:
            type: string
          description: A dictionary of default dynamic variables used in the model
        data:
          type: object
          required:
            - pk
            - model
            - states
            - s2s_model
            - model_temperature
            - general_prompt
            - general_tools
            - begin_message
            - ghl_book_meeting
            - price_set_per_model
            - custom_message
            - default_dynamic_variables
          properties:
            pk:
              type: integer
            model:
              type: string
            states:
              type: string
              nullable: true
            s2s_model:
              type: string
              nullable: true
            model_temperature:
              type: string
            general_prompt:
              type: string
            general_tools:
              type: array
              items:
                type: object
            begin_message:
              type: string
            ghl_book_meeting:
              type: boolean
            price_set_per_model:
              type: string
            custom_message:
              type: string
              nullable: true
            default_dynamic_variables:
              type: object
              additionalProperties:
                type: string
              description: A dictionary of default dynamic variables used in the model
        prices:
          type: object
          description: Pricing details for available models
          properties:
            gpt-5:
              type: number
              format: float
              description: Price for gpt-5 model
            gpt-5-mini:
              type: number
              format: float
              description: Price for gpt-5-mini model
            gpt-5-nano:
              type: number
              format: float
              description: Price for gpt-5-nano model
            gpt-4o:
              type: number
              format: float
              description: Price for gpt-4o model
            gpt-4.1:
              type: number
              format: float
              description: Price for gpt-4.1 model
            gpt-4.1-mini:
              type: number
              format: float
              description: Price for gpt-4.1-mini model
            gpt-4.1-nano:
              type: number
              format: float
              description: Price for gpt-4.1-nano model
            gpt-4o-mini:
              type: number
              format: float
              description: Price for gpt-4o-mini model
            gpt-4o-realtime:
              type: number
              format: float
              description: Price for gpt-4o-realtime model
            gpt-4o-mini-realtime:
              type: number
              format: float
              description: Price for gpt-4o-mini-realtime model
            claude-4o-sonnet:
              type: number
              format: float
              description: Price for claude-4o-sonnet model
            claude-3.7-sonnet:
              type: number
              format: float
              description: Price for claude-3.7-sonnet model
            claude-3.5-haiku:
              type: number
              format: float
              description: Price for claude-3.5-haiku model
            gemini-2.0-flash:
              type: number
              format: float
              description: Price for gemini-2.0-flash model
            gemini-2.0-flash-lite:
              type: number
              format: float
              description: Price for gemini-2.0-flash-lite model
            gemini-2.5-flash:
              type: number
              format: float
              description: Price for gemini-2.5-flash model
            gemini-2.5-flash-lite:
              type: number
              format: float
              description: Price for gemini-2.5-flash-lite model
    Error:
      required:
        - success
        - message
        - data
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: api_key

````