Private AI API
on TON

OpenAI-compatible access to decentralized AI. Zero content logging. Pay with TON. Open source.

Get Cocoon API Access View Source

Live Network

Status
...
Workers
...
Active Requests
...
Privacy

Zero content retention

Prompts and responses processed in memory only. Never written to disk. Verify in our open source code.

Compatible

OpenAI API format

Drop-in replacement for any OpenAI SDK, LangChain, or custom client. Full SSE streaming.

TON

Crypto-native

Deposit TON, pay per token. No KYC, no credit cards. Powered by Cocoon decentralized network.

Pricing

Token Type Price per 1M tokens
Prompt tokens 0.03 TON
Completion tokens 0.24 TON
Cached prompt tokens 0.003 TON
Reasoning tokens 0.24 TON

Prepaid model — deposit TON, we deduct per request. Minimum deposit: 0.1 TON.

Quick Start

# 1. Get your API key
curl -X POST https://cocoon.knyazevai.work/v1/keys

# 2. Deposit TON (see instructions)
curl https://cocoon.knyazevai.work/v1/deposit \
  -H "Authorization: Bearer YOUR_KEY"

# 3. Use the API
curl https://cocoon.knyazevai.work/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "Qwen/Qwen3-32B",
       "messages": [{"role": "user", "content": "Hello!"}]}'
Get Cocoon API Access

Powered by Cocoon Network on TON blockchain