Quickstart
Create an account, deposit at least 100 GNK, create an obk- key, and send one chat completion.
No enrollment and no operator application. The account stays inactive until the deposit confirms.
1. Create an account
Register at openbroker.gonka.gg/register. You will enter an organization name, contact email, a Gonka wallet address, and a password of at least 8 characters. OpenBroker emails a code to confirm the address.
The wallet you type here is your registered identity. It does not receive or spend the GNK you deposit.
2. Deposit at least 100 GNK
The next screen shows a generated deposit address. Send native GNK on Gonka mainnet to that address, at least 100 GNK. The account becomes active after the transfer is confirmed. Top-ups later use the same address. Details are in Deposits.
3. Create an API key
On the dashboard, open API access & keys and create a key. The full secret is shown once and starts with obk-. A key can only be created after the account is active.
4. Call the API
curl https://api.openbroker.gonka.gg/v1/chat/completions \
-H "Authorization: Bearer obk-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "MiniMaxAI/MiniMax-M2.7",
"messages": [
{ "role": "user", "content": "Explain devshards in one sentence." }
],
"max_tokens": 100
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.openbroker.gonka.gg/v1",
api_key="obk-YOUR_API_KEY",
)
response = client.chat.completions.create(
model="MiniMaxAI/MiniMax-M2.7",
messages=[{"role": "user", "content": "Explain devshards in one sentence."}],
max_tokens=100,
)
print(response.choices[0].message.content)The base URL is https://api.openbroker.gonka.gg/v1. The website host does not serve /v1. Use the model id from Models, not a shortened nickname, unless you have checked that the gateway accepts it.
A successful JSON body includes id. The response header X-Request-Id is set on every response, including errors that have no JSON body. Either value works with Usage lookup.