Skip to content

OpenAI (GPT) Chat ​

Call the GPT series models via the OpenAI-compatible format.

Endpoint ​

POST $URL/v1/chat/completions

Supported Models ​

ModelPositioning
gpt-5.6-sol / gpt-5.6-luna / gpt-5.6-terraLatest GPT-5.6 series
gpt-5.5 / gpt-5.5-plusGPT-5.5 series
gpt-5.4 / gpt-5.4-pro / gpt-5.4-mini / gpt-5.4-nanoGPT-5.4 series
gpt-5.3-codexCode-specialized
gpt-5.2 / gpt-5.2-chat / gpt-5.2-codexGPT-5.2 series
gpt-5 / gpt-5-mini / gpt-5-proGPT-5 series
o3 / o3-miniReasoning series
gpt-4.1 / gpt-4oClassic versions

More historical versions are available in the "Model Hub" section of the console.

Request Example ​

bash
curl $URL/v1/chat/completions \
  -H "Authorization: Bearer $YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "user", "content": "Explain quantum computing in one sentence"}
    ]
  }'
python
from openai import OpenAI

client = OpenAI(api_key="YOUR_API_KEY", base_url="$URL/v1")
resp = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Explain quantum computing in one sentence"}],
)
print(resp.choices[0].message.content)
ts
import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.YOUR_API_KEY,
  baseURL: '$URL/v1',
})
const resp = await client.chat.completions.create({
  model: 'gpt-4o',
  messages: [{ role: 'user', content: 'Explain quantum computing in one sentence' }],
})
console.log(resp.choices[0].message.content)

Main Parameters ​

ParameterTypeRequiredDescription
modelstringYesOne of the model names above
messagesarrayYesConversation messages
streambooleanNoWhether to stream the response
temperaturenumberNo0–2
max_tokensintegerNoMaximum tokens to generate

Integration Methods ​

Method 1: OpenAI SDK (recommended)

Just replace base_url and api_key, zero-code migration.

Method 2: Direct HTTP

Any HTTP client can construct the request following the curl example above.

© 2026 Euno AI. All rights reserved.