Abschnitte der Wissensbasis ▾
Navigation
▸ Hier starten Nach RollenKategorien
- Cursor + Gonka AI – günstige LLM zum Codieren
- Claude Code + Gonka AI – LLM für das Terminal
- OpenClaw + Gonka AI – erschwingliche KI-Agenten
- OpenCode: eigenes Modell im Terminal
- Continue.dev + Gonka AI – AI für VS Code/JetBrains
- Cline + Gonka AI – KI-Agent in VS Code
- Aider + Gonka AI – Paarprogrammierung mit KI
- LangChain + Gonka AI – KI-Anwendungen für wenige Cent
- n8n + Gonka AI – Automatisierung mit günstiger KI
- Open WebUI + Gonka AI – Ihr eigenes ChatGPT
- LibreChat + Gonka AI — Open-Source ChatGPT
- Hermes Agent + DeepSeek im Gonka-Netzwerk — autonomer Agent für ein paar Cent
- Kilo Code + Gonka AI – KI-Agent in VS Code
- Roo Code + Gonka AI – Autonomer KI-Agent in VS Code
- LlamaIndex + Gonka AI – RAG-Anwendungen für kleines Geld
- PydanticAI + Gonka – typisierte KI-Agenten für kleines Geld
- Vercel AI SDK + Gonka AI – KI-Anwendungen mit TypeScript für kleines Geld
- TanStack AI + Gonka – KI-Anwendungen mit TypeScript für kleines Geld
- API Schnellstart — curl, Python, TypeScript
- JoinGonka Gateway — vollständige Übersicht
- Management Keys – SaaS auf Gonka
- Die günstigste AI API: Anbietervergleich 2026
- Wie man AI-Token und API-Schlüssel kauft: 3 Wege im Jahr 2026
- Cursor Pro Request-Limit erreicht — Analyse und eine günstige Alternative
- Claude Code ist günstiger — Rechnungsanalyse und Wechsel
- Cline verbrennt Geld — warum der Agent so viel verbraucht
- OpenClaw wird teuer — warum der Agent Tokens verbrennt und wie man spart
- OpenRouter: Günstige Alternative — Vergleich mit JoinGonka Gateway
- Das beste AI-Modell für Coding im Jahr 2026: Vergleich und Preise
- Günstige Alternative zu GitHub Copilot ohne Limits
- Günstige Alternative zu Windsurf ohne Credits und Limits
- Die günstigste API für AI-Agenten im Jahr 2026
- ZCode: günstige GLM-Inferenz anstelle des GLM Coding Plan
- JetBrains IDE + JoinGonka Gateway — eigener Endpoint statt Credits
- GitHub Copilot BYOK — eigene Modelle statt Kontingent
- Zed + JoinGonka Gateway — günstiges Inference im Editor
- Pi + JoinGonka Gateway — Terminal-Agent mit günstiger Inference
- Codex CLI: eigener Schlüssel statt Abonnement
- DeepSeek Harness: eigener Provider via JoinGonka Gateway
- MiniMax Code: MiniMax-Agent mit eigenem Schlüssel über Gonka
- Warp + JoinGonka Gateway — Terminal-Agent auf Ihrem eigenen Endpoint
- Trae + JoinGonka Gateway — Gonka-Netzwerkmodelle in der AI-IDE
- Cherry Studio + JoinGonka Gateway — Desktop AI-Client
- omp (Oh My Pi) + JoinGonka Gateway: Agent mit Modellrollen
- OpenHands + JoinGonka Gateway: Agent auf eigenem Endpunkt
- Qwen Code nach Schließung von qwen-oauth: Arbeit über JoinGonka Gateway
- Goose + JoinGonka Gateway: Eigener Provider und Schlüssel im Keyring
- Crush + JoinGonka Gateway: Charm-Agent auf Modellen des Gonka-Netzwerks
- Zoo Code + JoinGonka Gateway: Umzug von Roo Code auf Gonka-Modelle
- Kimi Code CLI: Moonshot AI Agent mit eigenem Schlüssel über Gonka
- Factory Droid + JoinGonka Gateway: BYOK mit Gonka Netzwerkmodellen
- MiMo Code + JoinGonka Gateway: Xiaomi Agent auf Gonka Netzwerkmodellen
Tools
API Schnellstart — curl, Python, TypeScript
JoinGonka Gateway bietet eine OpenAI + Anthropic kompatible API für das dezentrale Gonka-Netzwerk. Jeder Code, der für die OpenAI API (/v1/chat/completions) geschrieben wurde, funktioniert mit Gonka — Sie müssen lediglich die base_url und den api_key anpassen. Tools für die Anthropic API (Claude Code) können über /v1/messages direkt ohne Proxy verbunden werden.
In diesem Artikel finden Sie fertige Codebeispiele für die drei gängigsten Werkzeuge: curl (Befehlszeile), Python und TypeScript/Node.js (OpenAI-Format). Für das Anthropic-Format siehe die Claude Code-Anleitung.
Was Sie benötigen: Einen JoinGonka API-Schlüssel (Format jg-xxx). Holen Sie ihn sich kostenlos auf gate.joingonka.ai/register zusammen mit einem Bonus von 3M Token.
curl — Abfrage vom Terminal
Der schnellste Weg, die API zu testen, ist curl:
Standardanfrage:
curl https://gate.joingonka.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer jg-your-key" \
-d '{
"model": "MiniMaxAI/MiniMax-M2.7",
"messages": [
{"role": "user", "content": "What is Gonka?"}
]
}'Streaming (Antwort in Teilen):
curl https://gate.joingonka.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer jg-your-key" \
-d '{
"model": "MiniMaxAI/MiniMax-M2.7",
"messages": [
{"role": "user", "content": "Write hello world in Python"}
],
"stream": true
}'Die Antwort kommt im JSON-Format (Standard) oder als Server-Sent Events (Streaming) — vollständig kompatibel mit der OpenAI-API.
Python — openai SDK
Das offizielle OpenAI Python SDK funktioniert mit dem JoinGonka Gateway ohne Änderungen:
pip install openaiStandardanfrage:
from openai import OpenAI
client = OpenAI(
base_url="https://gate.joingonka.ai/v1",
api_key="jg-your-key",
)
response = client.chat.completions.create(
model="MiniMaxAI/MiniMax-M2.7",
messages=[
{"role": "user", "content": "Explain blockchain in simple terms"}
],
)
print(response.choices[0].message.content)Streaming:
stream = client.chat.completions.create(
model="MiniMaxAI/MiniMax-M2.7",
messages=[{"role": "user", "content": "Write a sorting function in Python"}],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")Tool calling:
import json
tools = [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the weather in a city",
"parameters": {
"type": "object",
"properties": {
"city": {"type": "string", "description": "City name"}
},
"required": ["city"]
}
}
}]
response = client.chat.completions.create(
model="MiniMaxAI/MiniMax-M2.7",
messages=[{"role": "user", "content": "What is the weather in Moscow?"}],
tools=tools,
)
tool_call = response.choices[0].message.tool_calls[0]
print(f"Function: {tool_call.function.name}")
print(f"Arguments: {tool_call.function.arguments}")Die Modelle im Netzwerk unterstützen natives Tool calling — Funktionen werden korrekt aufgerufen, ohne dass Textantworten geparst werden müssen.
TypeScript/Node.js — openai SDK
Installation:
npm install openaiStandardanfrage:
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://gate.joingonka.ai/v1',
apiKey: 'jg-your-key',
});
async function main() {
const response = await client.chat.completions.create({
model: 'MiniMaxAI/MiniMax-M2.7',
messages: [
{ role: 'user', content: 'Write an Express.js server' },
],
});
console.log(response.choices[0].message.content);
}
main();Streaming:
const stream = await client.chat.completions.create({
model: 'MiniMaxAI/MiniMax-M2.7',
messages: [{ role: 'user', content: 'Explain async/await' }],
stream: true,
});
for await (const chunk of stream) {
const content = chunk.choices[0]?.delta?.content || '';
process.stdout.write(content);
}Tool calling:
const response = await client.chat.completions.create({
model: 'MiniMaxAI/MiniMax-M2.7',
messages: [{ role: 'user', content: 'Convert 100 USD to EUR' }],
tools: [{
type: 'function',
function: {
name: 'convert_currency',
description: 'Currency conversion',
parameters: {
type: 'object',
properties: {
amount: { type: 'number' },
from: { type: 'string' },
to: { type: 'string' },
},
required: ['amount', 'from', 'to'],
},
},
}],
});
const toolCall = response.choices[0].message.tool_calls?.[0];
console.log(`Function: ${toolCall?.function.name}`);
console.log(`Arguments: ${toolCall?.function.arguments}`);Alle Beispiele verwenden das offizielle OpenAI SDK — zusätzliche Bibliotheken sind nicht erforderlich. Ersetzen Sie einfach base_url und api_key.
Unterstützte API-Parameter
JoinGonka Gateway unterstützt alle Standardparameter der OpenAI Chat Completions API:
| Parameter | Typ | Beschreibung |
|---|---|---|
model | string | Modell: MiniMaxAI/MiniMax-M2.7 |
messages | array | Nachrichtenverlauf (system, user, assistant) |
stream | boolean | Streaming-Generierung (SSE). Standard: false |
temperature | number | Kreativität der Antwort (0.0 — 2.0) |
max_tokens | integer | Maximale Antwortlänge (max: 8192, bei DeepSeek V4 Flash — 32768; standardmäßig ohne max_tokens — 1500) |
tools | array | Funktionsdefinitionen für tool calling |
tool_choice | string/object | Strategie für den Funktionsaufruf |
Parameter der Netzwerk-Modelle: Kontextfenster — 200K Token bei MiniMax M2.7 (380K bei DeepSeek V4 Flash, 390K bei GLM-5.3 Flash), maximale Antwort — bis zu 8192 Token (bei DeepSeek V4 Flash — bis zu 32768). Die Modellliste ist über GET /v1/models verfügbar.
Zwei Endpunkte:
- OpenAI-Format:
POST https://gate.joingonka.ai/v1/chat/completions - Anthropic-Format:
POST https://gate.joingonka.ai/v1/messages
Authentifizierung: Authorization: Bearer jg-your-key (OpenAI) oder x-api-key: jg-your-key (Anthropic)
Das Antwortformat ist vollständig kompatibel mit OpenAI und Anthropic — jedes SDK, jede Bibliothek oder jedes Framework, das die OpenAI- oder Anthropic-API unterstützt, funktioniert mit JoinGonka Gateway ohne Änderungen. Claude Code verbindet sich direkt über das Anthropic-Format.
Möchten Sie mehr erfahren?
Erkunden Sie andere Abschnitte oder beginnen Sie jetzt GNK zu verdienen.
Kostenlose Token erhalten →