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

# Update model

> Change the LLM model powering the agent.



## OpenAPI

````yaml /openapi.json put /v1/superagents/{agent_id}/model
openapi: 3.1.0
info:
  title: Gigabrain API
  description: Programmatic access to The Brain and Gigabrain Agents.
  version: 1.0.0
servers:
  - url: https://api.gigabrain.gg
security:
  - bearerAuth: []
tags:
  - name: Brain
    description: Query The Brain for real-time crypto market intelligence
  - name: Agents
    description: Create and manage autonomous trading agents
  - name: Wallet
    description: Manage agent trading wallets on Hyperliquid
  - name: Agent Chat & Monitoring
    description: Chat with agents and monitor execution history
  - name: SuperAgents
    description: Launch, list, get, and destroy SuperAgents
  - name: SuperAgent Lifecycle
    description: Pause, resume, and restart SuperAgents
  - name: SuperAgent Chat
    description: Chat with SuperAgents
  - name: SuperAgent Monitoring
    description: Health checks, files, and skills
  - name: SuperAgent Config
    description: Update soul, model, profile, and skills configuration
  - name: SuperAgent Wallet
    description: View SuperAgent wallet details
paths:
  /v1/superagents/{agent_id}/model:
    put:
      tags:
        - SuperAgent Config
      summary: Update model
      description: Change the LLM model powering the agent.
      operationId: updateSuperagentModel
      parameters:
        - $ref: '#/components/parameters/SuperAgentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - model_provider
              properties:
                model:
                  type: string
                  description: Model ID from the selected provider
                model_provider:
                  type: string
                  enum:
                    - openai
                    - anthropic
                    - xai
                    - openrouter
                    - venice
                  description: Provider of the model
      responses:
        '200':
          description: Model updated
          content:
            application/json:
              example:
                agent_id: a1b2c3d4-5678-90ab-cdef-1234567890ab
                status: updated
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    SuperAgentId:
      name: agent_id
      in: path
      required: true
      description: The SuperAgent's unique identifier
      schema:
        type: string
        format: uuid
  responses:
    Unauthorized:
      description: Invalid or revoked API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            message: Invalid or revoked API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 404
            message: Agent not found
    RateLimited:
      description: Rate limit exceeded (60 requests per minute)
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: integer
                example: 429
              message:
                type: string
                example: Rate limit exceeded
              retryAfter:
                type: integer
                description: Seconds to wait before retrying
                example: 45
              resetAt:
                type: string
                format: date-time
      headers:
        Retry-After:
          description: Seconds to wait before retrying
          schema:
            type: integer
  schemas:
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Gigabrain API key. Get one at https://gigabrain.gg/profile?tab=api.
        Format: `gb_sk_...`

````