# \#api-usage

**URL:** https://community.openai.com/tag/api-usage/290.md

[Latest](https://community.openai.com/latest.md) · [Categories](https://community.openai.com/categories.md) · [Tags](https://community.openai.com/tags.md)

---

## [Codex credits are decreasing while I am not using Codex or Work](https://community.openai.com/t/codex-credits-are-decreasing-while-i-am-not-using-codex-or-work/1389912)

<div class="topic-metadata">

**Author:** [@vikgravina](https://community.openai.com/u/vikgravina)\
**Replies:** 1\
**Last updated:** [October 11, 2026, 8:07pm UTC](https://community.openai.com/t/codex-credits-are-decreasing-while-i-am-not-using-codex-or-work/1389912 "2026-10-11T20:07:48Z")

</div>

I’m experiencing what appears to be a serious issue with Codex credit usage on my ChatGPT Pro account. My credits are decreasing even when I am not using Codex and not using Work at all. For example, today I started the…

---

## [Usage Reset Date Keeps Changing?](https://community.openai.com/t/usage-reset-date-keeps-changing/1399901)

<div class="topic-metadata">

**Author:** [@pauwelsmaxp](https://community.openai.com/u/pauwelsmaxp)\
**Replies:** 1\
**Last updated:** [September 22, 2026, 8:56pm UTC](https://community.openai.com/t/usage-reset-date-keeps-changing/1399901 "2026-09-22T20:56:48Z")

</div>

I am on the ChatGPT Pro plan, paying close to $300 a month. In the past 5 months, it has almost been impossible to get a consistent overview or understanding of how the usage and billing works. (BTW: Still not a single …

---

## [Feature Request: User-Configurable Usage Limit Warning and Safe Pause for Codex/Work](https://community.openai.com/t/feature-request-user-configurable-usage-limit-warning-and-safe-pause-for-codex-work/1398420)

<div class="topic-metadata">

**Author:** [@jasperc](https://community.openai.com/u/jasperc)\
**Replies:** 0\
**Last updated:** [September 17, 2026, 5:47am UTC](https://community.openai.com/t/feature-request-user-configurable-usage-limit-warning-and-safe-pause-for-codex-work/1398420 "2026-09-17T05:47:45Z")

</div>

Good morning I’m not sure whether this has already been suggested, but I thought it might be a useful feature for people who regularly use Codex or Work mode for longer tasks. This is not a complaint or rant about usage…

---

## [Support can't confirm a review happened or give a case number — but says the decision is final](https://community.openai.com/t/support-cant-confirm-a-review-happened-or-give-a-case-number-but-says-the-decision-is-final/1397929)

<div class="topic-metadata">

**Author:** [@agencial](https://community.openai.com/u/agencial)\
**Replies:** 2\
**Last updated:** [September 16, 2026, 4:59pm UTC](https://community.openai.com/t/support-cant-confirm-a-review-happened-or-give-a-case-number-but-says-the-decision-is-final/1397929 "2026-09-16T16:59:31Z")

</div>

TL;DR — An API key of ours was used by a third party for 181,618 requests across 36 models on 2026-08-31 and 09-01, costing USD 2,825.61 on a project that had spent USD 61.28 in the previous thirty days. I reported it tw…

---

## [Access billing balance & costs via Admin API](https://community.openai.com/t/access-billing-balance-costs-via-admin-api/1383654)

<div class="topic-metadata">

**Author:** [@amircohen.co](https://community.openai.com/u/amircohen.co)\
**Replies:** 1\
**Last updated:** [September 7, 2026, 5:14pm UTC](https://community.openai.com/t/access-billing-balance-costs-via-admin-api/1383654 "2026-09-07T17:14:58Z")

</div>

Hey everyone, Has anyone else run into this? I’ve been trying to build a tool that lets me check my OpenAI credit balance programmatically — but even with an Admin key, the billing endpoints return 403/401. It feels li…

---

## [I can't see API usage by key, only by project](https://community.openai.com/t/i-cant-see-api-usage-by-key-only-by-project/1129907)

<div class="topic-metadata">

**Author:** [@aakar.hci](https://community.openai.com/u/aakar.hci)\
**Replies:** 18\
**Last updated:** [April 22, 2026, 10:11am UTC](https://community.openai.com/t/i-cant-see-api-usage-by-key-only-by-project/1129907 "2026-04-22T10:11:20Z")

</div>

I have a project with 8 different keys. I am not able to view the API usage by keys. All the usage page shows is the usage by gpt model or by project. How / Where do I get this info?

---

## [How to reduce the cost of API usage?](https://community.openai.com/t/how-to-reduce-the-cost-of-api-usage/1379330)

<div class="topic-metadata">

**Author:** [@sys-admin](https://community.openai.com/u/sys-admin)\
**Replies:** 1\
**Last updated:** [April 20, 2026, 11:13am UTC](https://community.openai.com/t/how-to-reduce-the-cost-of-api-usage/1379330 "2026-04-20T11:13:25Z")

</div>

How to reduce the cost of API usage without decreasing the quality of the model? I was thinking maybe by orchestrating multiple agents and specification of them we can be able to reduce the cost of API usage. because API…

---

## [Responses API returns zero usage when combining \`previous\_response\_id\` + \`context\_management\` + \`tools\`](https://community.openai.com/t/responses-api-returns-zero-usage-when-combining-previous-response-id-context-management-tools/1375726)

<div class="topic-metadata">

**Author:** [@els2](https://community.openai.com/u/els2)\
**Replies:** 4\
**Last updated:** [March 18, 2026, 9:59pm UTC](https://community.openai.com/t/responses-api-returns-zero-usage-when-combining-previous-response-id-context-management-tools/1375726 "2026-03-18T21:59:44Z")

</div>

Hi there :waving\_hand: We’re having difficulty tracking token usage for about half of our API requests. The Responses API returns {"input\_tokens": 0, "output\_tokens": 0, "total\_tokens": 0} in the usage field when a requ…

---

## [Usage API returns empty data while Dashboard shows usage](https://community.openai.com/t/usage-api-returns-empty-data-while-dashboard-shows-usage/1358526)

<div class="topic-metadata">

**Author:** [@rohan.nitsan](https://community.openai.com/u/rohan.nitsan)\
**Replies:** 11\
**Last updated:** [February 9, 2026, 9:50am UTC](https://community.openai.com/t/usage-api-returns-empty-data-while-dashboard-shows-usage/1358526 "2026-02-09T09:50:42Z")

</div>

I am experiencing a mismatch between the OpenAI Usage API and the Usage Dashboard. When I query the API: GET https://api.openai.com/v1/usage?date=2025-09-16 Authorization: Bearer \<my\_api\_key\> I get the following respo…

---

## [Understanding usage - Using python script to access inbox](https://community.openai.com/t/understanding-usage-using-python-script-to-access-inbox/1373071)

<div class="topic-metadata">

**Author:** [@Mike\_P](https://community.openai.com/u/Mike_P)\
**Replies:** 1\
**Last updated:** [February 1, 2026, 6:13pm UTC](https://community.openai.com/t/understanding-usage-using-python-script-to-access-inbox/1373071 "2026-02-01T18:13:26Z")

</div>

Hi, I am running a python script using openai to connect to my icloud inbox. I am trying to class email as SPAM def classify\_with\_ai(text): try: resp = client.chat.completions.create( model=“gpt-4o-mini”, messages=\\\[ { …

---

## [Responses API Image Generation Token Usage](https://community.openai.com/t/responses-api-image-generation-token-usage/1277438)

<div class="topic-metadata">

**Author:** [@uiidevs](https://community.openai.com/u/uiidevs)\
**Replies:** 3\
**Last updated:** [December 12, 2025, 4:55am UTC](https://community.openai.com/t/responses-api-image-generation-token-usage/1277438 "2025-12-12T04:55:55Z")

</div>

I’m testing out the Responses API for the first time and I can’t find any information on token input/output usage when using the image generation tool. Model: gpt-4.1-mini-2025-04-14 Input: {role: 'user', content: 'Crea…

---

## [Usage Dashboard showing budget amount, but no usage](https://community.openai.com/t/usage-dashboard-showing-budget-amount-but-no-usage/1366726)

<div class="topic-metadata">

**Author:** [@conduit\_pulsar](https://community.openai.com/u/conduit_pulsar)\
**Replies:** 11\
**Last updated:** [November 20, 2025, 1:58pm UTC](https://community.openai.com/t/usage-dashboard-showing-budget-amount-but-no-usage/1366726 "2025-11-20T13:58:42Z")

</div>

I have created a few requests with a key I created, and see this reflected in the budget amount ($0.17), but there are no usage stats. The requests to the Responses API were made in the selected period and by the project…

---

## [Unable to Export Usage Cost Data](https://community.openai.com/t/unable-to-export-usage-cost-data/1363568)

<div class="topic-metadata">

**Author:** [@kusumakarb](https://community.openai.com/u/kusumakarb)\
**Replies:** 14\
**Last updated:** [November 18, 2025, 4:06pm UTC](https://community.openai.com/t/unable-to-export-usage-cost-data/1363568 "2025-11-18T16:06:34Z")

</div>

Unable to export the usage information from https://platform.openai.com/settings/organization/usage This spinner in the modal keeps spinning Also can see this error in the browser console everytime I come to this mo…

---

## [Prepaid $10 for gpt-image-1, generated lots of images via API, but usage + costs still show $0](https://community.openai.com/t/prepaid-10-for-gpt-image-1-generated-lots-of-images-via-api-but-usage-costs-still-show-0/1366398)

<div class="topic-metadata">

**Author:** [@QuinQrost](https://community.openai.com/u/QuinQrost)\
**Replies:** 5\
**Last updated:** [November 16, 2025, 8:38pm UTC](https://community.openai.com/t/prepaid-10-for-gpt-image-1-generated-lots-of-images-via-api-but-usage-costs-still-show-0/1366398 "2025-11-16T20:38:01Z")

</div>

Hi, I’m confused about how my gpt-image-1 API usage is being billed and tracked. I manually added $10 credit on the Billing → Overview page (Pay-as-you-go, credit balance shows $10.00). In Usage → API my spend show…

---

## [No Usage Tokens for RealtimeAgents in Agents SDK (via API as well as Platform Dashboard)](https://community.openai.com/t/no-usage-tokens-for-realtimeagents-in-agents-sdk-via-api-as-well-as-platform-dashboard/1364107)

<div class="topic-metadata">

**Author:** [@L.Jgr](https://community.openai.com/u/L.Jgr)\
**Replies:** 0\
**Last updated:** [October 27, 2025, 12:49pm UTC](https://community.openai.com/t/no-usage-tokens-for-realtimeagents-in-agents-sdk-via-api-as-well-as-platform-dashboard/1364107 "2025-10-27T12:49:38Z")

</div>

Hello everyone, I have a working implementation with RealtimeAgents using the Python Agents SDK. One last thing which is missing is the retrieval of the Usage Tokens. I am retrieving token data via several events like …

---

## [Usage API suddenly not working anymore with page parameter](https://community.openai.com/t/usage-api-suddenly-not-working-anymore-with-page-parameter/1355093)

<div class="topic-metadata">

**Author:** [@euhlich](https://community.openai.com/u/euhlich)\
**Replies:** 5\
**Last updated:** [September 15, 2025, 4:04pm UTC](https://community.openai.com/t/usage-api-suddenly-not-working-anymore-with-page-parameter/1355093 "2025-09-15T16:04:11Z")

</div>

Hello there, we are using the Usage API for quite a while now without any changes. Now, we’ve got the problem that the page parameter does not longer work. When I test with Postman and without the page URL parameter, …

---

## [\[RESOLVED\] Unexpected usage gap (780x) with gpt-4o-mini-2024-07-18](https://community.openai.com/t/resolved-unexpected-usage-gap-780x-with-gpt-4o-mini-2024-07-18/1305091)

<div class="topic-metadata">

**Author:** [@lihe8811](https://community.openai.com/u/lihe8811)\
**Replies:** 4\
**Last updated:** [July 2, 2025, 3:48pm UTC](https://community.openai.com/t/resolved-unexpected-usage-gap-780x-with-gpt-4o-mini-2024-07-18/1305091 "2025-07-02T15:48:10Z")

</div>

The dashboard shows unexpected 70M input tokens with chat completion & gpt-4o-mini-2024-07-18 model. I manually check the log. The usage on dashboard is 780x of total usage in log. How can I submit the tech review for th…

---

## [Images show up in the Logs dashboard but not in the response](https://community.openai.com/t/images-show-up-in-the-logs-dashboard-but-not-in-the-response/1279593)

<div class="topic-metadata">

**Author:** [@platocrat](https://community.openai.com/u/platocrat)\
**Replies:** 2\
**Last updated:** [June 5, 2025, 11:01pm UTC](https://community.openai.com/t/images-show-up-in-the-logs-dashboard-but-not-in-the-response/1279593 "2025-06-05T23:01:37Z")

</div>

Cannot find images in generated response I am using the Responses API to generate data visualizations from a given input using the Code Interpreter tool. After those visualization images are generated, I store them to th…

---

## [Free service for legacy usage-like behavior for OpenAI dashboard](https://community.openai.com/t/free-service-for-legacy-usage-like-behavior-for-openai-dashboard/1277515)

<div class="topic-metadata">

**Author:** [@tipani](https://community.openai.com/u/tipani)\
**Replies:** 4\
**Last updated:** [June 4, 2025, 3:51am UTC](https://community.openai.com/t/free-service-for-legacy-usage-like-behavior-for-openai-dashboard/1277515 "2025-06-04T03:51:24Z")

</div>

Hi guys, I am an avid fan of the legacy usage page on OpenAI dashboard and think the new version is a step backwards, because you cannot pull an overall report for all endpoint types but instead have to select them one-b…

---

## [Token Usage When Calling Assistants through the API](https://community.openai.com/t/token-usage-when-calling-assistants-through-the-api/1228479)

<div class="topic-metadata">

**Author:** [@tim4](https://community.openai.com/u/tim4)\
**Replies:** 2\
**Last updated:** [April 10, 2025, 7:24pm UTC](https://community.openai.com/t/token-usage-when-calling-assistants-through-the-api/1228479 "2025-04-10T19:24:00Z")

</div>

How does one get the token usage when calling the assistant? It is part of the API message response when calling the model directly, but strangely absent when calling assistants. This is vital for managing complex intera…

---

## [Complimentary tokens, but credit is going down](https://community.openai.com/t/complimentary-tokens-but-credit-is-going-down/1141267)

<div class="topic-metadata">

**Author:** [@simonescanu142](https://community.openai.com/u/simonescanu142)\
**Replies:** 0\
**Last updated:** [March 12, 2025, 9:09am UTC](https://community.openai.com/t/complimentary-tokens-but-credit-is-going-down/1141267 "2025-03-12T09:09:06Z")

</div>

Hello, I’ve recently enrolled to the 11 million complimentary tokens. I’m using gpt-4o model, but every time I use either the API or the playground, my credit is going down. How exactly these complementary token work? …

---

## [Problems with billing information on a new account](https://community.openai.com/t/problems-with-billing-information-on-a-new-account/1131882)

<div class="topic-metadata">

**Author:** [@bg2](https://community.openai.com/u/bg2)\
**Replies:** 2\
**Last updated:** [February 28, 2025, 2:56pm UTC](https://community.openai.com/t/problems-with-billing-information-on-a-new-account/1131882 "2025-02-28T14:56:18Z")

</div>

I’m getting a code 429, now i know what you all think: another person with a code 429… I get it. Problem is, I do not know how i should go at this problem, which is the reason I decided to post it here. I’m getting the …

---

## [Feature request: Return image tokens in usage response](https://community.openai.com/t/feature-request-return-image-tokens-in-usage-response/1079363)

<div class="topic-metadata">

**Author:** [@tncintra](https://community.openai.com/u/tncintra)\
**Replies:** 2\
**Last updated:** [January 26, 2025, 4:25am UTC](https://community.openai.com/t/feature-request-return-image-tokens-in-usage-response/1079363 "2025-01-26T04:25:12Z")

</div>

It would be awesome if the usage statistics in the chat completion object included image token usage, like it does audio. We process a ton of images with gpt4o, and it would be great to receive confirmation from OpenAI o…

---

## [Usage stats now available when using streaming with the Chat Completions API or Completions API](https://community.openai.com/t/usage-stats-now-available-when-using-streaming-with-the-chat-completions-api-or-completions-api/738156)

<div class="topic-metadata">

**Author:** [@owencmoore](https://community.openai.com/u/owencmoore)\
**Replies:** 24\
**Last updated:** [January 23, 2025, 5:08pm UTC](https://community.openai.com/t/usage-stats-now-available-when-using-streaming-with-the-chat-completions-api-or-completions-api/738156 "2025-01-23T17:08:49Z")

</div>

When streaming with the Chat Completions or Completions APIs you can now request an additional chunk to be streamed at the end that will contain the “usage stats” like the number of tokens generated in the entire complet…

---

## [You've reached your usage limit. But I haven't even used the functions once](https://community.openai.com/t/youve-reached-your-usage-limit-but-i-havent-even-used-the-functions-once/1085058)

<div class="topic-metadata">

**Author:** [@nielay18](https://community.openai.com/u/nielay18)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 4:27pm UTC](https://community.openai.com/t/youve-reached-your-usage-limit-but-i-havent-even-used-the-functions-once/1085058 "2024-10-02T16:27:52Z")

</div>

I’m using the free tier api(5$ limit) and it it not used for a single time, when running my app it gives this error even though I have quota. OpenAI API response: { error: { message: ‘You exceeded your current quota, …

---

## [Dashboard usage vs Prompt response usage not matching](https://community.openai.com/t/dashboard-usage-vs-prompt-response-usage-not-matching/1078218)

<div class="topic-metadata">

**Author:** [@johan97](https://community.openai.com/u/johan97)\
**Replies:** 12\
**Last updated:** [January 9, 2025, 11:06am UTC](https://community.openai.com/t/dashboard-usage-vs-prompt-response-usage-not-matching/1078218 "2025-01-09T11:06:42Z")

</div>

I’m relying on prompt caching heavily (according to the API response, 90% of my tokens are cached). When I log the usage from the API responses, I get total tokens to around 50k and cached tokens at 49k. (and then I run…

---

## [How to integrate ChatGPT API with my Streamlit-based brain tumor detection project.](https://community.openai.com/t/how-to-integrate-chatgpt-api-with-my-streamlit-based-brain-tumor-detection-project/1074288)

<div class="topic-metadata">

**Author:** [@dileepkmrc](https://community.openai.com/u/dileepkmrc)\
**Replies:** 0\
**Last updated:** [December 29, 2024, 3:15am UTC](https://community.openai.com/t/how-to-integrate-chatgpt-api-with-my-streamlit-based-brain-tumor-detection-project/1074288 "2024-12-29T03:15:12Z")

</div>

I am trying to integrate the ChatGPT API into my Streamlit application for a brain tumor detection project. I want to allow users to ask questions about the project and get chatbot responses. What steps should I follow t…

---

## [💹 Introducing the Usage API—track API usage and costs programmatically](https://community.openai.com/t/introducing-the-usage-api-track-api-usage-and-costs-programmatically/1043058)

<div class="topic-metadata">

**Author:** [@edwinarbus](https://community.openai.com/u/edwinarbus)\
**Replies:** 5\
**Last updated:** [December 9, 2024, 8:25pm UTC](https://community.openai.com/t/introducing-the-usage-api-track-api-usage-and-costs-programmatically/1043058 "2024-12-09T20:25:58Z")

</div>

Today we’re launching a new API that lets you get granular API usage data, and a Costs endpoint that provides you with a breakdown of your daily spend. You can monitor token use by minute/hour/day, filter usage by API ke…

---

## [How to know how much usage one person is using and implement a system to allow a fixed amount of usage per subscription tier?](https://community.openai.com/t/how-to-know-how-much-usage-one-person-is-using-and-implement-a-system-to-allow-a-fixed-amount-of-usage-per-subscription-tier/1043642)

<div class="topic-metadata">

**Author:** [@besco](https://community.openai.com/u/besco)\
**Replies:** 0\
**Last updated:** [December 5, 2024, 9:24am UTC](https://community.openai.com/t/how-to-know-how-much-usage-one-person-is-using-and-implement-a-system-to-allow-a-fixed-amount-of-usage-per-subscription-tier/1043642 "2024-12-05T09:24:36Z")

</div>

Hi everyone so I have built a program that uses Open AI API, I have a few people interested and realized that some users will be using my company’s (solo dev) API key for more requests than other users and I believe they…

---

## [How to track API usage and cost by API key?](https://community.openai.com/t/how-to-track-api-usage-and-cost-by-api-key/174145)

<div class="topic-metadata">

**Author:** [@bzhang](https://community.openai.com/u/bzhang)\
**Replies:** 68\
**Last updated:** [November 15, 2024, 3:32am UTC](https://community.openai.com/t/how-to-track-api-usage-and-cost-by-api-key/174145 "2024-11-15T03:32:59Z")

</div>

My company will use different API key for different AI-enabled applications/features/engineering teams. We’d like to track usage and cost by API key. Is that a way to track API usage and cost by API keys? It seems right…

[Next page](https://community.openai.com/tag/api-usage/290.md?match_all_tags=true&page=1&tags%5B%5D=api-usage)
