API Reference
Complete API documentation for all available models. Select a service type and model to view endpoints, code examples, and additional features.
Select Service Type & Model
Complete API documentation for all available models. Select a service type and model to view endpoints, code examples, and additional features.
Select Service Type & Model
Context Length
262,144
Max Output
32,768
Input Price
0.2900 0G/M
Output Price
1.7700 0G/M
Providers
1
Type
Chat
0G Router normalizes requests and responses across providers for you. All endpoints follow the OpenAI API format.
Endpoint
Code Examples
curl https://router-api.0g.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "0GM-1.0-35B-A3B",
"messages": [
{"role": "user", "content": "Hello!"}
],
"stream": true
}'TEE Verification
If the provider runs inside a TEE (Trusted Execution Environment), you can request on-chain signature verification by setting verify_tee. The response will include a tee_verified field in the trace.
# Add verify_tee in the JSON body
{
"model": "0GM-1.0-35B-A3B",
"messages": [{"role": "user", "content": "Hello!"}],
"verify_tee": true
}Provider Routing
Control which provider handles your request using the provider parameter.
{
"model": "0GM-1.0-35B-A3B",
"messages": [{"role": "user", "content": "Hello!"}],
"provider": {
"sort": "latency",
"allow_fallbacks": true
}
}