Skip to main content
POST
Create Chat Completion

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
Example:

"openai/gpt-5"

messages
object[]
required
stream
boolean
default:false
temperature
number
Example:

0.7

max_tokens
integer
Example:

1024

Response

200 - application/json

OpenRouter-compatible chat completion response

The response is of type object.