Your First Request
These examples use a managed key. If you don’t have one yet, see Create an API Key.
Replace YOUR_API_KEY with your actual key (starts with gk-prx-).
curl https://proxy.gonkabroker.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "Qwen/Qwen3-235B-A22B-Instruct-2507-FP8", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "What is the capital of France?"} ] }'Python (OpenAI SDK)
Section titled “Python (OpenAI SDK)”from openai import OpenAI
client = OpenAI( api_key="YOUR_API_KEY", base_url="https://proxy.gonkabroker.com/v1",)
response = client.chat.completions.create( model="Qwen/Qwen3-235B-A22B-Instruct-2507-FP8", messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "What is the capital of France?"}, ],)
print(response.choices[0].message.content)JavaScript / TypeScript (OpenAI SDK)
Section titled “JavaScript / TypeScript (OpenAI SDK)”import OpenAI from "openai";
const client = new OpenAI({ apiKey: "YOUR_API_KEY", baseURL: "https://proxy.gonkabroker.com/v1",});
const response = await client.chat.completions.create({ model: "Qwen/Qwen3-235B-A22B-Instruct-2507-FP8", messages: [ { role: "system", content: "You are a helpful assistant." }, { role: "user", content: "What is the capital of France?" }, ],});
console.log(response.choices[0].message.content);Streaming
Section titled “Streaming”All examples above support streaming. Add stream: true to the request body (curl) or as a parameter (Python/JS):
stream = client.chat.completions.create( model="Qwen/Qwen3-235B-A22B-Instruct-2507-FP8", messages=[{"role": "user", "content": "Tell me a story"}], stream=True,)
for chunk in stream: if chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="")What’s next
Section titled “What’s next”- Managed Keys — learn more about proxy mode and compatibility
- Supported Models — see available models and pricing
- Third-Party Tools — use Gonka with LangChain, Cursor, and more