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
32,768
Max Output
8,192
Input Price
0.0500 0G/M
Output Price
0.1000 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-testnet.integratenetwork.work/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "qwen/qwen-2.5-7b-instruct",
"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": "qwen/qwen-2.5-7b-instruct",
"messages": [{"role": "user", "content": "Hello!"}],
"verify_tee": true
}Provider Routing
Control which provider handles your request using the provider parameter.
{
"model": "qwen/qwen-2.5-7b-instruct",
"messages": [{"role": "user", "content": "Hello!"}],
"provider": {
"sort": "latency",
"allow_fallbacks": true
}
}