지식 기반 섹션 ▾
내비게이션
▸ 여기서 시작하세요 역할별카테고리
- Cursor + Gonka AI — 코딩을 위한 저렴한 LLM
- Claude Code + Gonka AI — 터미널을 위한 LLM
- OpenClaw + Gonka AI — 저렴한 AI 에이전트
- OpenCode + Gonka AI — 코드를 위한 무료 AI
- 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
- Hermes Agent + Gonka AI — 저렴한 가격에 자율 에이전트
- 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년 제공업체 비교
- Cursor Pro 쿼리 제한 종료 — 분석 및 저렴한 대안
- 더 저렴한 Claude Code — 청구액 분석 및 전환
- Cline의 엄청난 비용 — 에이전트가 예산을 소모하는 이유
- OpenClaw 비용 부담 — 에이전트가 토큰을 소모하는 이유와 절약 전략
- OpenRouter: 저렴한 대안 — JoinGonka Gateway와 비교
- 2026년 최고의 코딩용 AI 모델: 비교 및 가격
- GitHub Copilot의 저렴한 무제한 대체 서비스
- 크레딧과 제한 없는 저렴한 Windsurf 대안
- 2026년 AI 에이전트를 위한 가장 저렴한 API
- ZCode: GLM Coding Plan 대신 사용하는 저렴한 GLM 추론
도구
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에서 1천만 토큰 보너스와 함께 무료로 받으세요.
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": "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": "Python으로 hello world를 작성해주세요"}
],
"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-ваш-ключ",
)
response = client.chat.completions.create(
model="MiniMaxAI/MiniMax-M2.7",
messages=[
{"role": "user", "content": "블록체인을 쉬운 말로 설명해줘"}
],
)
print(response.choices[0].message.content)스트리밍:
stream = client.chat.completions.create(
model="MiniMaxAI/MiniMax-M2.7",
messages=[{"role": "user", "content": "파이썬으로 정렬 알고리즘을 작성해줘"}],
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": "도시의 날씨 가져오기",
"parameters": {
"type": "object",
"properties": {
"city": {"type": "string", "description": "도시 이름"}
},
"required": ["city"]
}
}
}]
response = client.chat.completions.create(
model="MiniMaxAI/MiniMax-M2.7",
messages=[{"role": "user", "content": "모스크바 날씨는 어때?"}],
tools=tools,
)
tool_call = response.choices[0].message.tool_calls[0]
print(f"함수: {tool_call.function.name}")
print(f"인자: {tool_call.function.arguments}")Kimi K2.6은 네이티브 tool calling을 지원하므로, 텍스트 응답을 파싱할 필요 없이 함수가 정확하게 호출됩니다.
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: 'Express.js 서버 코드 작성해줘' },
],
});
console.log(response.choices[0].message.content);
}
main();스트리밍:
const stream = await client.chat.completions.create({
model: 'MiniMaxAI/MiniMax-M2.7',
messages: [{ role: 'user', content: '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: '100 USD를 EUR로 변환해줘' }],
tools: [{
type: 'function',
function: {
name: 'convert_currency',
description: '통화 변환',
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(`함수: ${toolCall?.function.name}`);
console.log(`인자: ${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; max_tokens 미설정 시 기본 1500) |
tools | array | Tool calling용 함수 정의 |
tool_choice | string/object | 함수 호출 전략 |
네트워크 모델 매개변수: 컨텍스트 윈도우는 200K 토큰이며, 최대 응답 길이는 8192 토큰까지입니다 (네트워크 내 모든 모델 대상). 모델 목록은 GET /v1/models를 통해 확인할 수 있습니다.
두 가지 엔드포인트:
- OpenAI 포맷:
POST https://gate.joingonka.ai/v1/chat/completions - Anthropic 포맷:
POST https://gate.joingonka.ai/v1/messages
인증 방식: Authorization: Bearer jg-ваш-ключ (OpenAI) 또는 x-api-key: jg-ваш-ключ (Anthropic)
응답 형식은 OpenAI 및 Anthropic과 완벽하게 호환되므로, 해당 API를 지원하는 모든 SDK, 라이브러리, 프레임워크가 별도의 수정 없이 JoinGonka Gateway와 동작합니다. Claude Code는 Anthropic 포맷을 통해 직접 연결할 수 있습니다.