POST /v1/chat
Endpoint
POST https://api.gatectr.com/v1/chat/completionsWhen to use
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.GATECTR_API_KEY,
baseURL: 'https://api.gatectr.com/v1',
});
// This hits /v1/chat/completions — no changes needed
const response = await client.chat.completions.create({
model: 'gpt-4o',
messages: [{ role: 'user', content: 'Hello' }],
});Last updated
Was this helpful?