API Key
Connect the LLM API for me; read the API Key from environment variables, and never hardcode its value in the source code.
Connect the LLM API for me; read the API Key from environment variables, and never hardcode its value in the source code.
AI_API_KEY = sk-••••3f2kprocess.env.AI_API_KEYA badge for programs: Your page sends the string with an AI request. The service verifies its account, project, or application, then applies the corresponding permissions and usage tracking.
Created in the provider console: Create the key on the service's website; it usually displays fully only once at creation, so save it right away.
Revoke on leak: If the key shows up somewhere it should not, revoke it in the console and create a new one—faster and safer than investigating who saw it.
Read the API key from an environment variable named AI_API_KEY; never put the real key in code or examples. If you spot a key hardcoded somewhere, tell me so I can revoke and rotate it.