Knowledge Base Sections ▾

Tools

Cursor + Gonka AI - cheap LLM for coding

Cursor is one of the most popular AI code editors in 2026. Autocompletion, refactoring, test generation, code explanation - all these work through LLM models. But the cost of OpenAI and Anthropic API can reach $15 per 1M tokens, and with active development, the monthly bill can easily exceed $100.

JoinGonka Gateway - an OpenAI-compatible API to the decentralized Gonka network for $0.001/1M tokens. This is 2800 times cheaper than OpenAI GPT-4o. The Qwen3-235B model with MoE architecture (22 billion active parameters) provides quality comparable to GPT-4 and Claude Sonnet - but for pennies.

Connecting to Cursor takes 30 seconds. Below is a step-by-step guide.

Step 1: Get JoinGonka API Key

To connect Cursor to Gonka, you need an API key from JoinGonka Gateway - our gateway to the decentralized network.

  1. Go to gate.joingonka.ai/register and create an account.
  2. Upon registration, you will automatically receive a bonus of 10,000,000 free tokens - enough for thousands of AI requests.
  3. In your personal account (Dashboard), go to the API Keys section and click Create Key.
  4. Copy the key - it starts with jg-, for example: jg-abc123def456.

The key works with any OpenAI-compatible client: Claude Code, Aider, Continue.dev, and of course, Cursor.

Security: The key is displayed once upon creation. Save it in a safe place. If lost, create a new one and deactivate the old one in the Dashboard.

Step 2: Configure Cursor

Open Cursor and go to settings:

  1. SettingsModels (or Ctrl+, → Models)
  2. In the OpenAI API Key field, paste your jg-xxx key.
  3. Enable Override OpenAI Base URL and enter: https://gate.joingonka.ai/v1
  4. In the model list, add: Qwen/Qwen3-235B-A22B-Instruct-2507-FP8
  5. Select this model as the primary for Chat, Composer, and Autocomplete.

Verification: Open Cursor Chat (Ctrl+L) and type any query, for example: "Write a sorting function in Python". If a response appears, everything is set up correctly.

Optimization Tips:

  • For autocompletion, use the same model - Qwen3-235B understands code context well.
  • Enable streaming for faster response - the response starts to display immediately, without waiting for full generation.
  • If you need a different response format - use System Prompt in Cursor settings for fine-tuning.

Possible errors:

  • 401 Unauthorized - check that the key starts with jg- and is active in the Dashboard.
  • 404 Not Found - make sure the Base URL is exactly https://gate.joingonka.ai/v1 (with /v1 at the end).
  • Timeout - the first request can take 5-10 seconds due to cold start of the node in the network. Subsequent ones are faster.

Cost Comparison

Cursor actively uses tokens: autocompletion, Chat, Composer, refactoring — all these are requests to the LLM. With typical development (4-6 hours a day), 3-10M tokens are consumed daily. Let's compare the cost:

ProviderModelPrice per 1MDay (~7M)Month (~150M)
JoinGonka GatewayQwen3-235B$0.001$0.007$0.15
OpenAIGPT-4o~$5.00$35$750
AnthropicClaude Sonnet 4~$7.00$49$1,050

Savings: In a month of active development, JoinGonka Gateway will save $750-$1,000 compared to OpenAI/Anthropic. For a team of 5 developers — $3,750-$5,250 per month.

Meanwhile, the quality of Qwen3-235B's responses is comparable to GPT-4 and Claude for coding tasks: function generation, refactoring, writing tests, code explanation. The model supports native tool calling, making it suitable for agent scenarios as well.

Model parameters: Qwen3-235B supports a 128K token context window. The maximum response length via Gateway is 2048 tokens (sufficient for autocompletion and chat). Model specifications: HuggingFace. List of available models: GET https://gate.joingonka.ai/v1/models.

Cursor + Gonka = full-fledged AI coding assistant for pennies. 30 seconds to set up, 10M free tokens to start, $0.30 per month instead of $750+ with OpenAI. Qwen3-235B quality is comparable to GPT-4 on coding tasks.

Want to learn more?

Explore other sections or start earning GNK right now.

Get 10M free tokens →