The Syntopen API is OpenAI-compatible. Drop-in replace your baseURL and you're done.
Send your key in the Authorization header:
Authorization: Bearer sk-syn-...
Create keys in the dashboard. Keys are shown once at creation; we never store the plaintext.
Generate a chat completion. Accepts the same payload as OpenAI's endpoint plus a few extras.
curl https://opensyntx.teksura.ru/api/v1/chat/completions \
-H "Authorization: Bearer $SYNTOPEN_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o-mini",
"messages": [
{"role": "system", "content": "You are concise."},
{"role": "user", "content": "What is the capital of France?"}
],
"stream": false
}'Set stream: true. The response is server-sent events with chat.completion.chunk objects, terminated by data: [DONE].
List all models available to you.
curl https://opensyntx.teksura.ru/api/v1/models -H "Authorization: Bearer $SYNTOPEN_KEY"
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.SYNTOPEN_KEY,
baseURL: "https://opensyntx.teksura.ru/api/v1",
});
const r = await client.chat.completions.create({
model: "anthropic/claude-3-5-sonnet",
messages: [{ role: "user", content: "Hello" }],
});| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | Bad payload (Zod validation failed) |
| 401 | invalid_api_key | Missing or invalid bearer token |
| 402 | insufficient_balance | Top up your balance |
| 404 | model_not_found | Unknown model id |
| 429 | rate_limit_exceeded | Per-key RPM exceeded |
| 500 | internal_error | Bug on our side |
Default 60 requests per minute per key. Adjustable per key in the dashboard. Responses include X-RateLimit-Limit, -Remaining, -Reset headers when limited.
| Model id | Context | Input / 1M | Output / 1M |
|---|---|---|---|
anthropic/claude-3-5-haiku | 200,000 | $0.80 | $4.00 |
anthropic/claude-3-5-sonnet | 200,000 | $3.00 | $15.00 |
anthropic/claude-3-opus | 200,000 | $15.00 | $75.00 |
google/gemini-1.5-flash | 1,000,000 | $0.07 | $0.30 |
google/gemini-1.5-pro | 2,000,000 | $1.25 | $5.00 |
google/gemini-2.0-flash-exp | 1,000,000 | $0.00 | $0.00 |
openai/gpt-4o | 128,000 | $2.50 | $10.00 |
openai/gpt-4o-mini | 128,000 | $0.15 | $0.60 |
openai/o1 | 200,000 | $15.00 | $60.00 |
openai/o1-mini | 128,000 | $3.00 | $12.00 |