Skip to content
GPT-6.1 Sol & Luna, Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, and Gemini 4 Argon are now available

Start

Quickstart

Send your first request to Sobat Router.

1. Create an API key

Open the API Keys page in the dashboard, create a new key, and store it as the SOBAT_API_KEY environment variable. Never ship it in frontend code.

2. Set the base URL

text
https://api.sobatnetwork.com/v1

3. Send a request

quickstart.js
import OpenAI from 'openai'
 
const client = new OpenAI({
baseURL: 'https://api.sobatnetwork.com/v1',
apiKey: process.env.SOBAT_API_KEY,
})
 
const response = await client.chat.completions.create({
model: 'sobat/gpt-6-sol',
messages: [{ role: 'user', content: 'Hello, world!' }],
})
 
console.log(response.choices[0].message.content)

Model id

Use an id from the Models page (for example {{MODEL}}). You can also fetch the full list via GET /v1/models.