OpenAI-compatible
Gonka, the OpenAI-compatible way
Already using the OpenAI SDK? Point it at Gonka. Change two lines — the base URL and your API key — and your existing code runs open-source models on the Gonka network.
Change two lines
Set base_url to
https://proxy.gonkabroker.com/v1 and use your
gk-prx- key. Everything
else — request shape, streaming, tools — stays the same.
Python
from openai import OpenAI
client = OpenAI(
base_url="https://proxy.gonkabroker.com/v1",
api_key="gk-prx-YOUR_KEY_HERE",
)
resp = client.chat.completions.create(
model="Qwen/Qwen3-235B-A22B-Instruct-2507-FP8",
messages=[{"role": "user", "content": "Hello!"}],
) JavaScript / TypeScript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://proxy.gonkabroker.com/v1",
apiKey: "gk-prx-YOUR_KEY_HERE",
});
const resp = await client.chat.completions.create({
model: "Qwen/Qwen3-235B-A22B-Instruct-2507-FP8",
messages: [{ role: "user", content: "Hello!" }],
}); curl
curl https://proxy.gonkabroker.com/v1/chat/completions \
-H "Authorization: Bearer gk-prx-YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{"model":"Qwen/Qwen3-235B-A22B-Instruct-2507-FP8",
"messages":[{"role":"user","content":"Hello!"}]}' Works with the whole OpenAI ecosystem
SDKs
Official OpenAI libraries for Python, JavaScript/TypeScript, Go, and more.
AI tools
Cursor, Continue, LibreChat, and anything with a custom OpenAI endpoint.
Frameworks
LangChain, LlamaIndex, and other libraries built on the OpenAI format.
Migrating an existing app? See the OpenAI migration guide.
Drop Gonka into your OpenAI app
Get a key, change two lines, and run open-source models in plain USD.
Sign up and startAlready have an account? Sign in