OpenAI Chat Completions
Call GPT, Gemini and DeepSeek models through the OpenAI Chat Completions endpoint /v1/chat/completions with the official OpenAI SDK.
The most widely supported format. Any SDK or app that lets you set an OpenAI base URL works with NekoRouter.
| Setting | Value |
|---|---|
| Base URL | https://nekorouter.cc/v1 (Russia node: https://ru.nekorouter.cc/v1) |
| Endpoint | POST /v1/chat/completions |
| Auth | Authorization: Bearer YOUR_NEKO_KEY |
| Models | GPT, Gemini, DeepSeek — see Models |
Python
from openai import OpenAI
client = OpenAI(api_key="YOUR_NEKO_KEY", base_url="https://nekorouter.cc/v1")
r = client.chat.completions.create(
model="gpt-6-sol",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)
The SDK also reads OPENAI_API_KEY and OPENAI_BASE_URL from the environment.
Node.js
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.NEKO_API_KEY, baseURL: "https://nekorouter.cc/v1" });
const r = await client.chat.completions.create({ model: "gpt-6-sol", messages: [{ role: "user", content: "Hello!" }] });
console.log(r.choices[0].message.content);
curl
curl https://nekorouter.cc/v1/chat/completions \
-H "Authorization: Bearer $NEKO_API_KEY" -H "Content-Type: application/json" \
-d '{"model":"gpt-6-sol","messages":[{"role":"user","content":"Hello!"}],"stream":true}'
Features
Streaming (stream: true), function calling (tools), image input (image_url, data URIs included) and reasoning_effort for thinking models. To switch models, change only model.
Claude models are not available in this format — they work only in Claude Code.
Model IDs and prices: Pricing.