{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreietyfzgreycpjdeurjrygw7lg7jndpy23ukmfgssjzgcvpdx4vflq",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mkl27oy2qzy2"
},
"path": "/t/issue-in-fetching-openai-api-usage-billing-cost-and-credit-balance-programmatically-for-backend-monitoring/1379947#post_4",
"publishedAt": "2026-04-28T16:08:53.000Z",
"site": "https://community.openai.com",
"tags": [
"OpenAI API Reference",
"Costs"
],
"textContent": "The only API that directly deals with billings is “get costs”, delivering daily buckets of monetary use, which can be further broken down by individual project or by “line item” (model):\n\nOpenAI API Reference\n\n### Costs\n\nThis, again, uses an _admin API key_ , separately created by an owner in the platform profile.",
"title": "Issue in fetching OpenAI API usage, billing cost, and credit balance programmatically for backend monitoring"
}