buymeatokens

OpenAI API Health Alerts for Errors, Cache, and Rate Limits

Configure OpenAI health alerts and see what the minimum traffic requirements mean for your monitoring.

By the buymeatokens team1 min read

Short answer

OpenAI API Health Alerts can monitor error rates, cached-token share, rate-limit utilization, and service-tier spillover.

On this page
  1. Configure one production error rule
  2. Distinguish cache changes from demand spikes
  3. Route alerts to the person who can act
  4. Frequently asked questions

OpenAI released API health alerts on December 3. You can create rules for errors, a falling prompt-cache hit rate, sustained rate-limit utilization, and Fast tier capacity spillover. Default spend threshold and key expiration alerts have separate settings. OpenAI health alerts

Configure one production error rule

Open Health Alerts in the API dashboard, select the production project, and choose an HTTP error code. For a starting point, set a 5% threshold for HTTP 500 across 15 minutes and route notifications to the API owner. The condition applies to the proportion of matching requests returning that code. If 120 calls include 8 HTTP 500s, the rate is about 6.7%. The error rule needs at least 100 matching requests in the window and two consecutive breaching evaluations. OpenAI health alerts configuration

Distinguish cache changes from demand spikes

Prompt cache rules count cached input tokens as a share of total input tokens. A few large prompts with broken prefixes can move the metric even when most small requests still hit the cache. Use an approaching rate limit rule separately when peak requests or tokens per minute are the concern. Compare affected traffic with your application metrics at the same time granularity. Prompt caching explained

Route alerts to the person who can act

Start with a project owner or a shared on-call address. Organizations eligible for webhooks can handle triggered and resolved events and route them using rule ID and scope. Include a link to the affected dashboard and note what action should follow each alert. Keep client-side monitoring for low-volume jobs where provider evaluation windows may lack enough data. Track LLM token usage

Frequently asked questions

Does the error rule combine all server errors?

Each selected status code is evaluated independently against matching requests.

Can rules be managed in code?

The OpenAI Admin API exposes organization and project rule endpoints.

Are notifications immediate?

Evaluation and delivery are asynchronous. Use your application’s monitoring for incidents that need a quicker signal.