Who it is for
- You do not want to configure an OpenAI Platform API key locally.
- You do not have a paid ChatGPT account, or you do not want to provide your own account to the Codex client.
- You want to use PhotonMark managed Codex quota directly with prepaid balance.
Billing
Codex Pay uses prepaid balance and charges based on real upstream usage fields. Balance validity is 60 days; unused balance expires at the end unless extended by a new top-up.
How it works
Pay uses PhotonMark-managed Codex authorization. Run the Dashboard installer: it keeps the built-in openai provider, configures the fixed /openai/v1 endpoint, and adds Spark to the picker without requiring manual config.toml changes. Enter the Pay API Key separately through Use API Key in Codex. If this machine still sends an old OPENAI_API_KEY, invalid_api_key or Incorrect API key may appear and the old local authorization must be cleared.
Balance Status API
After purchase, use the Pay proxy token from the dashboard to call the read-only status API and monitor remaining balance and expiry.
curl -H "Authorization: Bearer <your PhotonMark proxy token>" https://codex.photonmark.com/api/v1/services/pay/status
PhotonMark