Chat Completions

POST https://api.openai.com/v1/chat/completions

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"id":"chatcmpl-9b04PNw9WxrCYkXRWJXcOyH5My4BG","object":"chat.completion","created":1718605433,"model":"gpt-3.5-turbo-0125","choices":[{"index":0,"message":{"role":"assistant","content":"The 2020 World Series was played at Globe Life Field in Arlington, Texas."},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":53,"completion_tokens":17,"total_tokens":70},"system_fingerprint":null}