OpenAI-compatible access to decentralized AI. Zero content logging. Pay with TON. Open source.
Get Cocoon API Access View SourcePrompts and responses processed in memory only. Never written to disk. Verify in our open source code.
Drop-in replacement for any OpenAI SDK, LangChain, or custom client. Full SSE streaming.
Deposit TON, pay per token. No KYC, no credit cards. Powered by Cocoon decentralized network.
| 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.
# 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!"}]}'
Powered by Cocoon Network on TON blockchain