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

# MiniMax API Key

> Configure your own MiniMax API key in MiniMax Code.

<div className="code-docs">
  If you want to use your own MiniMax API key, configure it in model settings. After saving, MiniMax Code can use the corresponding model capability.

  ## Setup

  <Steps>
    <Step title="Open settings">
      Go to usage and model settings.
    </Step>

    <Step title="Choose MiniMax API">
      Enter your API key and save it.
    </Step>

    <Step title="Test the connection">
      Run a connection test to confirm the key works.
    </Step>
  </Steps>

  <Warning>
    Do not paste API keys into chat, code repositories, or public docs. Use the secure settings entry only.
  </Warning>
</div>
