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.