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 Completions API

Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.

OpenAI Completions 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 Completions. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 14 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.

1 operations 1 paths 14 schemas 1 POST

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 Completions 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 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Completions 1

Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.

POST
/completions
Create completion
createCompletion body → 200429503

Schemas 14

The contract defines 14 schemas that model the data the API accepts and returns. The most detailed are CreateCompletionRequest_2 (18 properties), CreateCompletionRequest (18 properties), CreateCompletionResponse (7 properties), CreateCompletionResponse_2 (7 properties). Each schema is shown below with its type and property counts.

_MisalignmentErrorType
MisalignmentErrorDetailsResource
object
3 properties
Error
object
5 properties 4 required
CreateCompletionRequest
object
18 properties 2 required
ChatCompletionStreamOptions
CreateCompletionResponse
object
Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).
7 properties 5 required
CompletionUsage
object
Usage statistics for the completion request.
5 properties 3 required
StopConfiguration
Not supported with latest reasoning models o3 and o4-mini. Up to 4 sequences where the API will stop generating further tokens. The returned text will not cont…
_MisalignmentSteer
object
1 property 1 required
ErrorResponse
object
1 property 1 required
MisalignmentErrorDetailsResource_2
object
4 properties
CreateCompletionRequest_2
object
18 properties 2 required
CreateCompletionResponse_2
object
Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).
7 properties 5 required
StopConfiguration_2
Not supported with latest reasoning models o3 and o4-mini. Up to 4 sequences where the API will stop generating further tokens. The returned text will not cont…

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

openai-completions-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 Completions 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.