OpenAI/createChatCompletion

Online calls unavailable · details below

OpenAIOpenAI API

POST/chat/completions

Manage create Chat Completion.

Contract-preserving POST Endpoint for create Chat Completion in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.

All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.

Request

operationId
createChatCompletion
Server
https://api.openai.com/v1
Authentication
ApiKeyAuth, AdminApiKeyAuth

Request parameters

No URL, query, or header parameters.

Request body

CreateChatCompletionRequestrequired

Content-Type: application/json

Responses

200

CreateChatCompletionResponseapplication/jsontext/event-stream

Successful supplier response.

Properties: choicescreatedidmetadatamodelmoderationobjectservice_tiersystem_fingerprintusage

429

ErrorResponseapplication/json

Supplier response with HTTP status 429.

Properties: error

{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "message": {}
    }
  ],
  "created": 0,
  "object": "chat.completion"
}

Stream events

Unknown events: Preserved as raw payloads for forward compatibility.

message

Data format: Textunknown