지식 기반 섹션 ▾
내비게이션
▸ 여기서 시작하세요 역할별카테고리
- Cursor + Gonka AI — 코딩을 위한 저렴한 LLM
- Claude Code + Gonka AI — 터미널을 위한 LLM
- OpenClaw + Gonka AI — 저렴한 AI 에이전트
- OpenCode: 터미널에서 나만의 모델 사용
- Continue.dev + Gonka AI — VS Code/JetBrains를 위한 AI
- Cline + Gonka AI — VS Code의 AI 에이전트
- Aider + Gonka AI — AI 페어 프로그래밍
- LangChain + Gonka AI — 저렴한 AI 애플리케이션
- n8n + Gonka AI — 저렴한 AI로 자동화
- Open WebUI + Gonka AI — 나만의 ChatGPT
- LibreChat + Gonka AI — 오픈소스 ChatGPT
- Gonka 네트워크의 Hermes Agent + DeepSeek — 초저비용 자율 에이전트
- Kilo Code + Gonka AI — VS Code용 AI 에이전트
- Roo Code + Gonka AI — VS Code용 자율 AI 에이전트
- LlamaIndex + Gonka AI — 저렴한 RAG 애플리케이션
- PydanticAI + Gonka — 저렴한 유형화된 AI 에이전트
- Vercel AI SDK + Gonka AI — 저렴한 TypeScript AI 애플리케이션
- TanStack AI + Gonka — 저렴한 TypeScript AI 애플리케이션
- API 빠른 시작 — curl, Python, TypeScript
- JoinGonka Gateway — 전체 개요
- 관리 키 — Gonka 위의 SaaS
- 가장 저렴한 AI API: 2026년 제공업체 비교
- AI 토큰 및 API 키 구매 방법: 2026년 3가지 방법
- Cursor Pro 쿼리 제한 종료 — 분석 및 저렴한 대안
- 더 저렴한 Claude Code — 청구액 분석 및 전환
- Cline의 엄청난 비용 — 에이전트가 예산을 소모하는 이유
- OpenClaw 비용 부담 — 에이전트가 토큰을 소모하는 이유와 절약 전략
- OpenRouter: 저렴한 대안 — JoinGonka Gateway와 비교
- 2026년 최고의 코딩용 AI 모델: 비교 및 가격
- GitHub Copilot의 저렴한 무제한 대체 서비스
- 크레딧과 제한 없는 저렴한 Windsurf 대안
- 2026년 AI 에이전트를 위한 가장 저렴한 API
- ZCode: GLM Coding Plan 대신 사용하는 저렴한 GLM 추론
- JetBrains IDE + JoinGonka Gateway — 크레딧 대신 자체 endpoint 사용
- GitHub Copilot BYOK — 할당량 대신 자체 모델 사용
- Zed + JoinGonka Gateway — 에디터 내 저렴한 추론
- Pi + JoinGonka Gateway — 저렴한 인퍼런스를 활용한 터미널 에이전트
- Codex CLI: 구독 대신 자체 키 사용
- DeepSeek Harness: JoinGonka Gateway를 통한 자체 프로바이더
- MiniMax Code: Gonka를 통해 자체 키로 작동하는 MiniMax 에이전트
- Warp + JoinGonka Gateway — 엔드포인트 터미널 에이전트
- Trae + JoinGonka Gateway — AI-IDE에서 Gonka 네트워크 모델 활용하기
- Cherry Studio + JoinGonka Gateway — 데스크톱 AI 클라이언트
- omp (Oh My Pi) + JoinGonka Gateway: 모델 역할을 갖춘 에이전트
- OpenHands + JoinGonka Gateway: 나만의 엔드포인트 에이전트
- qwen-oauth 종료 후의 Qwen Code: JoinGonka Gateway를 통한 작업
- Goose + JoinGonka Gateway: 키링을 통한 제공자 및 키 관리
- Crush + JoinGonka Gateway: Gonka 네트워크 모델 기반의 Charm 에이전트
- Zoo Code + JoinGonka Gateway: Roo Code에서 Gonka 모델로 이전하기
- Kimi Code CLI: Gonka를 통해 나만의 키로 사용하는 Moonshot AI 에이전트
- Factory Droid + JoinGonka Gateway: Gonka 네트워크 모델에서의 BYOK
- MiMo Code + JoinGonka Gateway: Gonka 네트워크 모델 기반 Xiaomi 에이전트
도구
API 빠른 시작 — curl, Python, TypeScript
JoinGonka Gateway는 Gonka 탈중앙화 네트워크에 대한 OpenAI + Anthropic 호환 API를 제공합니다. OpenAI API를 위해 작성된 모든 코드는(/v1/chat/completions) Gonka와 함께 작동합니다. base_url과 api_key만 변경하면 됩니다. 또한 Anthropic API 도구(Claude Code)는 프록시 없이 직접 /v1/messages를 통해 연결할 수 있습니다.
본 문서에서는 가장 인기 있는 세 가지 도구(curl(명령줄), Python, TypeScript/Node.js(OpenAI 형식))에 대한 준비된 코드 예제를 다룹니다. Anthropic 형식은 Claude Code 가이드를 참조하십시오.
필요 사항: JoinGonka API 키(jg-xxx 형식). gate.joingonka.ai/register에서 무료로 등록하고 3M 토큰 보너스를 받으세요.
curl — 터미널에서 요청
API 작동을 확인하는 가장 빠른 방법은 curl입니다:
일반 요청:
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?"}
]
}'스트리밍(부분 응답):
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
}'응답은 JSON 형식(일반) 또는 Server-Sent Events(스트리밍)로 제공되며, OpenAI API와 완전히 호환됩니다.
Python — openai SDK
공식 OpenAI Python SDK는 JoinGonka Gateway에서 수정 없이 작동합니다:
pip install openai일반 요청:
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)스트리밍:
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="")도구 호출:
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}")네트워크 모델은 네이티브 도구 호출을 지원하므로 텍스트 응답 파싱 없이 함수가 정확하게 호출됩니다.
TypeScript/Node.js — openai SDK
설치:
npm install openai일반 요청:
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();스트리밍:
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);
}도구 호출:
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}`);모든 예제는 공식 OpenAI SDK를 사용하므로 추가 라이브러리가 필요하지 않습니다. base_url과 api_key만 교체하면 됩니다.
지원되는 API 매개변수
JoinGonka Gateway는 OpenAI Chat Completions API의 모든 표준 파라미터를 지원합니다:
| 파라미터 | 유형 | 설명 |
|---|---|---|
model | string | 모델: MiniMaxAI/MiniMax-M2.7 |
messages | array | 메시지 기록 (system, user, assistant) |
stream | boolean | 스트리밍 생성 (SSE). 기본값: false |
temperature | number | 응답의 창의성 (0.0 — 2.0) |
max_tokens | integer | 응답의 최대 길이 (최대: 8192, DeepSeek V4 Flash는 32768, max_tokens 미지정 시 기본값 1500) |
tools | array | tool calling을 위한 함수 정의 |
tool_choice | string/object | 함수 호출 전략 |
네트워크 모델 파라미터: 컨텍스트 윈도우는 MiniMax M2.7 기준 200K 토큰 (DeepSeek V4 Flash는 380K, GLM-5.3 Flash는 390K), 최대 응답은 8192 토큰 (DeepSeek V4 Flash는 최대 32768). 모델 목록은 GET /v1/models로 확인할 수 있습니다.
두 개의 엔드포인트:
- OpenAI 형식:
POST https://gate.joingonka.ai/v1/chat/completions - Anthropic 형식:
POST https://gate.joingonka.ai/v1/messages
인증: Authorization: Bearer jg-your-key (OpenAI) 또는 x-api-key: jg-your-key (Anthropic)
응답 형식은 OpenAI 및 Anthropic과 완전히 호환되므로, OpenAI 또는 Anthropic API를 지원하는 모든 SDK, 라이브러리, 프레임워크가 수정 없이 JoinGonka Gateway에서 작동합니다. Claude Code는 Anthropic 형식으로 바로 연결됩니다.