[
    {
        "role": "user",
        "content": "how%20can%20I%20get%20my%20claude%20api%20key%3F"
    },
    {
        "role": "assistant",
        "content": "To get your Claude API key (from Anthropic), here\u2019s a step-by-step guide:\n\n---\n\n## 1. Create a Claude Console Account\n\nYou\u2019ll need to sign up for an account at Anthropic\u2019s Claude Console (typically at console.anthropic.com). ([platform.claude.com](https://platform.claude.com/docs/en/get-started?outputType=chromeless&utm_source=openai))\n\n---\n\n## 2. Set Up Billing / Credits\n\nTo use the API, you\u2019ll need to add payment details or use prepaid billing credits under the Plans & Billing section of your account. Some usage requires having a billing method in place. ([apisrouter.com](https://apisrouter.com/claude-api-key-guide?utm_source=openai))\n\n---\n\n## 3. Go to API Keys Page\n\nOnce logged in, navigate to **Settings \u2192 API Keys** in the Claude Console. That\u2019s where you can create new API keys. ([platform.claude.com](https://platform.claude.com/docs/en/manage-claude/authentication?utm_source=openai))\n\n---\n\n## 4. Create Your API Key\n\nClick **\u201cCreate Key\u201d**. You\u2019ll choose a name for the key, optionally set an expiration, and after creation you\u2019ll get a key that looks like this: `sk-ant-\u2026` ([platform.claude.com](https://platform.claude.com/docs/en/manage-claude/authentication?utm_source=openai))\n\nImportant: Save it securely now \u2014 you\u2019ll see it only once. After that, you can\u2019t view the full key again, only revoke it. ([support.claude.com](https://support.claude.com/en/articles/8384961-what-should-i-do-if-i-suspect-my-api-key-has-been-compromised?utm_source=openai))\n\n---\n\n## 5. Use the API Key in Requests\n\nWhen calling the API:\n\n- Include the key in your request header as: `x-api-key: YOUR_API_KEY` ([platform.claude.com](https://platform.claude.com/docs/en/manage-claude/authentication?utm_source=openai))  \n- Or set it as an environment variable: `ANTHROPIC_API_KEY` ([platform.claude.com](https://platform.claude.com/docs/en/get-started?outputType=chromeless&utm_source=openai))\n\n---\n\n## 6. Manage, Rotate, Revoke\n\n- Monitor your usage in the Console.  \n- If a key is compromised, immediately revoke/delete it and generate a new one. ([support.claude.com](https://support.claude.com/en/articles/8384961-what-should-i-do-if-i-suspect-my-api-key-has-been-compromised?utm_source=openai))  \n- Regular rotation and secure storage are best practices. ([platform.claude.com](https://platform.claude.com/docs/en/manage-claude/authentication?utm_source=openai))\n\n---\n\nIf you tell me whether you already have the Console account or which plan (Free / Pro / Enterprise) you\u2019re on, I can give you more specific guidance!"
    }
]