von 0G Foundation
Tencent Hunyuan Hy4 preview; 770B total / 49B active MoE tuned for agent, coding and production workflows — stronger task decomposition, long-horizon tool use and long-chain execution than Hunyuan 3. Served via Tencent Cloud MaaS (TokenHub), which exposes both OpenAI and Anthropic faces. Text in / text out, 1M context, up to 64K output. Deep thinking is on by default and can be disabled with reasoning_effort:"none" (enable_thinking is not honored); function calling, JSON mode (response_format: json_object / json_schema) and implicit prompt caching supported.
1M
1.000.000 Token
66K
65.536 Token
$0.834
pro 1M Token
$2.501
pro 1M Token
curl "https://router-api.0g.ai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "hy4-preview",
"messages": [
{"role": "user", "content": "Hello!"}
],
"stream": true
}'TEE-Verifizierung
Fordere eine On-Chain-Signaturverifizierung mit verify_tee an. Die Antwort enthält ein tee_verified-Feld im Trace.
{
"model": "hy4-preview",
"messages": [{"role": "user", "content": "Hello!"}],
"verify_tee": true
}Anbieter-Routing
Steuern Sie, welcher Anbieter Ihre Anfrage bearbeitet, mit den X-0G-Provider-*-Anfrage-Headern.
X-0G-Provider-Address legt einen Anbieter fest; X-0G-Provider-Identity legt fest, welcher seiner vorgelagerten Dienste für das Routing verwendet wird – beide Werte stammen aus den Feldern address und provider_identity von GET /v1/providers. Zusammen adressieren sie einen bestimmten vorgelagerten Dienst eines Anbieters. Werden beide nicht gesendet, wählt der Router genau wie zuvor anhand von Preis und Zustand aus.
curl "https://router-api.0g.ai/v1/chat/completions" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-H "X-0G-Provider-Address: <PROVIDER_ADDRESS>" \
-H "X-0G-Provider-Identity: <UPSTREAM>" \
-H "X-0G-Provider-Sort: latency" \
-H "X-0G-Provider-Allow-Fallbacks: true" \
-d '{
"model": "hy4-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'