Skip to main content
POST
OpenAI-compatible chat completions proxy

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Body

application/json
model
enum<string>
required
Available options:
gpt-4o-2024-11-20
Example:

"gpt-4o-2024-11-20"

messages
object[]
required
max_tokens
integer
Example:

100

temperature
number
Example:

0.7

stream
boolean
Example:

false

Response

200 - application/json

Chat completion response

id
string
Example:

"chatcmpl-123"

object
string
Example:

"chat.completion"

created
integer
Example:

1677652288

model
string
Example:

"gpt-4o-2024-11-20"

choices
object[]
usage
object