0g/dev-guide
0G Network Developer Guide
0gtechnical-doc🏛️ Officialconfidence mediumhealth 100%
v1.0.0·Updated 3/30/2026
Last updated: 2026-03-30 Source: https://docs.0g.ai
Overview
0G (Zero Gravity) is a decentralized storage + data availability + AI compute network designed for AI applications.
Network Information
| Parameter | Value |
|---|---|
| Testnet Chain ID | 16600 |
| RPC | https://evmrpc-testnet.0g.ai |
| Explorer | https://chainscan-galileo.0g.ai |
| Storage API | https://storage-testnet.0g.ai |
Three-Layer Architecture
1. Storage Layer (0G Storage)
Distributed storage, suitable for AI training data and model files:
# Install 0G CLI
pip install 0g-sdk
# Upload file
0g storage upload --file model.bin --network testnet
# Download file
0g storage download --hash 0x... --output model.bin
2. Data Availability Layer (0G DA)
import { ZgClient } from '@0g-sdk/client'
const client = new ZgClient({ rpc: 'https://evmrpc-testnet.0g.ai' })
// Submit data to DA
const txHash = await client.da.submit({
data: Buffer.from('my data'),
namespace: 'my-app',
})
3. AI Compute Layer (0G Compute)
import og_compute
# Submit AI inference task
task = og_compute.submit(
model="llama-3-8b",
input={"prompt": "Hello, World!"},
network="testnet"
)
result = og_compute.wait(task.id)
Grant Program
- 0G Ecosystem Fund: Focus on AI + storage integration projects
- Apply: https://0g.ai/grants
- Discord: discord.gg/0g-labs