Python SDK

Point the official OpenAI Python SDK at the Gonka API. The base URL is https://api.proxy.gonka.gg/v1.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.proxy.gonka.gg/v1",
    api_key="sk-your-api-key-here",
)

response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4-Flash-0731",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Proxy-only fields:

client.chat.completions.create(
    model="MiniMaxAI/MiniMax-M2.7",
    messages=[{"role": "user", "content": "Search the wiki"}],
    extra_body={"web_search": True, "mcp": True},
)

base_url is the Python name. Node uses baseURL. See Node SDK and OpenAI SDK.