Skip to main content

Quickstart

Four steps. Five minutes.

1. Connect Your Wallet

Visit pc.0g.ai and connect a wallet. MetaMask and WalletConnect work directly; you can also sign in with Google, X/Twitter, Discord, or TikTok via Privy, which provisions an embedded wallet for you.

2. Deposit Funds

Deposit 0G tokens to the Router's on-chain payment contract. Your balance lives on-chain and is debited per request.

See Deposits & Billing for how costs are calculated and how to check your balance.

3. Create an API Key

In Dashboard → API Keys, create a key with the inference permission. You'll get a secret starting with sk-.

Store it somewhere safe — the Router never shows it again.

4. Send Your First Request

curl https://router-api.0g.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-YOUR_API_KEY" \
-d '{
"model": "zai-org/GLM-5-FP8",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'

That's it. You're talking to a decentralized TEE-backed provider through an OpenAI-compatible API.

Next Steps