API key
An API key is a long string by which a service recognizes whose request has arrived and bills the key’s owner. In Codex, signing in with an API key means paying API rates for actual use, with no subscription. A key is as sensitive as a password to the account: it is not shared with others or published.
Frequently asked questions
What is an API key?
A string by which a service recognizes the request’s owner and bills them.How is signing in with an API key different from signing in with ChatGPT?
An API key gives usage-based payment; signing in with ChatGPT gives subscription access.Can you give your API key to someone else?
No: the key gives access to your account, and OpenAI’s terms forbid passing an account to others.Source: OpenAI docs: signing in to Codex
Read more: Codex CLI not available in your country: supported countries, VPN and bans
Where it appears · 5
- Claude Code not available in your country · Harness
- Codex CLI not available in your country · Harness
- Claude Code · Harness
- Codex vs ChatGPT · Harness
- ChatGPT Enterprise usage report from admin console exports · Research