How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

OpenAI Usage API

The Usage API from OpenAI — 9 operation(s) for usage.

OpenAI Usage API is one of 62 APIs that OpenAI publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Usage. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 11 operations across 11 paths, and defines 18 schemas. It is described by OpenAPI 3.2.0, at version 2.3.0.

Requests are made against a single base URL, https://api.openai.com/v1.

11 operations 11 paths 18 schemas 11 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.3.0
Base URL
https://api.openai.com
Authentication
HTTP Bearer, HTTP Bearer
License
MIT
Terms of Service
Resource Areas
1

Authentication & Security 2

OpenAI Usage API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (ApiKeyAuth). It accepts HTTP bearer tokens (AdminApiKeyAuth). By default, every request must be authenticated.

Paths & Operations 11

Across 11 paths, the API surfaces 11 operations — 11 GET. Each is listed below with its method, path, parameters, and response codes.

Usage 11
GET
/organization/costs
Costs
usage-costs 9 params → 200429
GET
/organization/usage/audio_speeches
Audio speeches
usage-audio-speeches 10 params → 200429
GET
/organization/usage/audio_transcriptions
Audio transcriptions
usage-audio-transcriptions 10 params → 200429
GET
/organization/usage/code_interpreter_sessions
Code interpreter sessions
usage-code-interpreter-sessions 7 params → 200429
GET
/organization/usage/completions
Completions
usage-completions 11 params → 200429
GET
/organization/usage/embeddings
Embeddings
usage-embeddings 10 params → 200429
GET
/organization/usage/file_search_calls
File search calls
usage-file-search-calls 10 params → 200429
GET
/organization/usage/images
Images
usage-images 12 params → 200429
GET
/organization/usage/moderations
Moderations
usage-moderations 10 params → 200429
GET
/organization/usage/vector_stores
Vector stores
usage-vector-stores 7 params → 200429
GET
/organization/usage/web_search_calls
Web search calls
usage-web-search-calls 11 params → 200429

Schemas 18

The contract defines 18 schemas that model the data the API accepts and returns. The most detailed are UsageCompletionsResult (22 properties), UsageImagesResult (9 properties), UsageWebSearchCallsResult (8 properties), UsageAudioTranscriptionsResult (7 properties). Each schema is shown below with its type and property counts.

UsageAudioTranscriptionsResult
object
The aggregated audio transcriptions usage details of the specific time bucket.
7 properties 3 required
UsageResponse
object
4 properties 4 required
UsageCodeInterpreterSessionsResult
object
The aggregated code interpreter sessions usage details of the specific time bucket.
3 properties 2 required
CostsResult
object
The aggregated costs details of the specific time bucket.
7 properties 1 required
UsageTimeBucket
object
4 properties 4 required
UsageAudioSpeechesResult
object
The aggregated audio speeches usage details of the specific time bucket.
7 properties 3 required
_MisalignmentErrorType
UsageFileSearchCallsResult
object
The aggregated file search calls usage details of the specific time bucket.
6 properties 2 required
UsageEmbeddingsResult
object
The aggregated embeddings usage details of the specific time bucket.
7 properties 3 required
MisalignmentErrorDetailsResource
object
3 properties
UsageImagesResult
object
The aggregated images usage details of the specific time bucket.
9 properties 3 required
Error
object
5 properties 4 required
UsageVectorStoresResult
object
The aggregated vector stores usage details of the specific time bucket.
3 properties 2 required
UsageWebSearchCallsResult
object
The aggregated web search calls usage details of the specific time bucket.
8 properties 3 required
UsageCompletionsResult
object
The aggregated completions usage details of the specific time bucket.
22 properties 4 required
_MisalignmentSteer
object
1 property 1 required
ErrorResponse
object
1 property 1 required
UsageModerationsResult
object
The aggregated moderations usage details of the specific time bucket.
7 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

openai-usage-api-openapi.yml Raw ↑

Other APIs OpenAI publishes across the network.

OpenAI Responses API
OpenAI Moderations API
OpenAI Batch API
OpenAI Vector Stores API
OpenAI Uploads API
OpenAI Realtime API
OpenAI Evals API
OpenAI Videos API
OpenAI Conversations API
OpenAI Containers API
OpenAI ChatKit API
OpenAI Skills API
Where this information came from

This is an independent, third-party profile of OpenAI Usage API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.