API key
Also called API keys.
In plain English
An APIAn application programming interface, or API, is a defined way for software to request data or actions from other software. key is a credential an application sends so an API can identify or authorize the caller.
Example
A server keeps its secretIn Grok Bot, a secret is a key or credential saved in a masked, write-only field. Bots can use it, but the value is never shown again. key in its secret store and never sends it to the browser. A map on the public page uses a separate browser key, restricted to that website and the map APIs it needs.
Why it matters
Many APIAn application programming interface, or API, is a defined way for software to request data or actions from other software. keys are secretsIn Grok Bot, a secret is a key or credential saved in a masked, write-only field. Bots can use it, but the value is never shown again.. They belong on a server or in a secret store, never in a public page, a screenshot, or a chat transcript. Some providers also issue keys meant for browser use, locked down with restrictions such as an approved website or a list of allowed APIs.
Follow the provider’s instructions for that key type. A publishable key from one service says nothing about a secretIn Grok Bot, a secret is a key or credential saved in a masked, write-only field. Bots can use it, but the value is never shown again. key from another.
Common confusion
An APIAn application programming interface, or API, is a defined way for software to request data or actions from other software. key is not an AI tokenAn AI token is a unit a model uses to process content. For text, a token may be a word, a word fragment, or punctuation.. A browser key still needs restrictions, and no key belongs in a promptA prompt is the instructions, question, or other input you give an AI model to guide its response. or a chat with a bot.
Sources
Updated October 1, 2026.


