Head to head · LLM inference · October 2026 research run
Tencent Hy4 vs xAI API (Grok)
xAI API (Grok) scores 72.9 (BB) on agent readiness against Tencent Hy4's 64 (B), and leads in 6 of 7 scored categories. Tencent Hy4 leads on payments & pricing. Both do llm inference.
Best model APIs and inference for AI agents · All 1044 models comparisons
Which one, for what
Best for Long-context agent work, coding and office or finance tasks on a 1M-token context with images, for teams already on Tencent Cloud or happy to verify an account there.
Ahead on
- Payments & pricing, 45 against 30
Watch for
Weights, licence and system card are promised but not published; tencent/Hy4 didn't answer on Hugging Face on 11 November
Best for Agents that want a capable model at a low per-token price with built-in web and X search, remote MCP and voice, and teams that need self-serve ZDR or US-only processing.
Ahead on
- Reliability, 55 against 46
- Schema & documentation, 88 against 73
- Security & auth, 97 against 71
- Transparency & trust, 63 against 52
Also in its favour
- Agent-ready, a grade of BB or better
- A hosted endpoint, with nothing to install
Watch for
API models outage of about 3 hours 40 minutes on 3 September 2026, and high error rates on grok-4.6 and grok-4.5 on 17 August
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth xAI API (Grok) +26
Tencent Hy4 71
Model reading for hy4 on Tencent Cloud TokenHub. Platform facts are the tencent-tokenhub listing's (checked 1 November), carried over as RULES.md allows for a model on an already graded platform. Bearer keys limited by model, service, IP range and token quota, long-lived with no rotation (26 of 30). The terms say inputs aren't used to train Tencent Cloud's own models, and Hy4 is first party, so no third party's terms apply (14 of 20). Retention only as long as the service needs, no periods (7 of 15). Per-call audit logs and optional full logs to the customer's CLS (14 of 15). No security.txt; Tencent's TSRC bounty covers Tencent Cloud; no certification checked (10 of 20). 26 + 14 + 7 + 14 + 10 = 71.
xAI API (Grok) 97
Model reading. Team API keys with ACLs per endpoint and per model, QPM and TPM caps, expiry, and create, rotate, disable and delete through the Management API, plus documented mTLS. GitHub secret scanning disables leaked keys and emails the owner (30). The security FAQ says SpaceXSI never trains on API inputs or outputs without explicit permission (20). Requests and responses are kept 30 days for abuse auditing, then deleted, and team admins can switch on zero data retention themselves, confirmed by an x-zero-data-retention header on every response (15). Console audit log and a Management API audit-events endpoint, plus optional per-key request logging (15). security.txt valid to 2027-06-29 with a HackerOne bug bounty and a separate safety contact for prompt-injection issues. SOC 2 Type 2 is claimed in the security FAQ with the reports behind an NDA in the trust centre, so 17 of 20. Remote MCP doesn't support require_approval, which the model checklist doesn't score but reviewers should see. New in October, a guidelines array lets the caller make the model decline nsfw, violence or profanity content, which the checklist doesn't score.
Schema & documentation xAI API (Grok) +15
Tencent Hy4 73
Model reading for hy4 on Tencent Cloud TokenHub. Platform facts are the tencent-tokenhub listing's (checked 1 November), carried over as RULES.md allows for a model on an already graded platform. No OpenAPI file for inference; field pages for the OpenAI and Anthropic formats as TokenHub implements them (12 of 25). llms.txt with Markdown copies (10). The model list, updated 9 November, gives hy4's context, input and output limits and marks thinking, structured output, function calling, caching and image understanding; computer use, which Tencent's release names, isn't marked (13 of 20). Typed field pages (10 of 15). Examples in five languages and an error page of 30 codes (14 of 15). Dated release notes, with hy4 added on 4 November (14 of 15). 12 + 10 + 13 + 10 + 14 + 14 = 73.
xAI API (Grok) 88
OpenAPI 3.1 document at docs.x.ai/openapi.json, 39 paths and 205 schemas on 6 November, covering Responses, Chat Completions, files, images, videos and models. The batch endpoints documented in the REST reference still aren't in it (20 of 25, applied as for gemini-api's missing Interactions API). llms.txt and a Markdown twin of every page, plus a docs MCP server (10). The models page says which model to use for code, chat, images, video and voice, and reference pages list each parameter. Reference not read in full (18 of 20). Structured outputs are guaranteed to match the schema for supported keywords, and tool arguments always conform with strict implicitly true (15). Examples in Python, JavaScript and curl on every guide. The debugging page lists status codes with fixes, but the cause cells for 400, 403, 404 and 415 are still empty (13 of 15). Release notes are grouped by month without day dates, and model slugs come as aliases and dated versions (12 of 15).
Payments & pricing Tencent Hy4 +15
Tencent Hy4 45
Model reading for hy4 on Tencent Cloud TokenHub. Platform facts are the tencent-tokenhub listing's (checked 1 November), carried over as RULES.md allows for a model on an already graded platform. No machine payment protocol (0). The price page, updated 9 November, lists ¥6 input, ¥0.3 cached and ¥18 output per million tokens, with Hy4 billed at 50% until 31 December 2026 (20). TokenHub's campaign of 1M free tokens per language model, read on 1 November, isn't confirmed for hy4 on the price page, so half (10 of 20, a judgement call). A person signs up with real-name verification (0). 0 + 20 + 10 + 0 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.
xAI API (Grok) 30
No x402, MPP or L402 (0). Per-token and per-call prices published without a login on docs.x.ai/developers/pricing (20). No free tier found for the text API, and the quickstart says to load the account with credits (0). Sign-up is in the browser at console.x.ai. The Management API can create keys and top up prepaid credit, but only with a management key made by a person in the console, so no line credit (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.
Transparency & trust xAI API (Grok) +11
Tencent Hy4 52
Model reading for hy4 on Tencent Cloud TokenHub. Platform facts are the tencent-tokenhub listing's (checked 1 November), carried over as RULES.md allows for a model on an already graded platform. Closed service under the TokenHub terms, but Tencent's release headline calls Hy4 open source while the weights and system card are only promised 'in the coming days', with no licence stated, and tencent/Hy4 didn't answer on Hugging Face on 11 November (14 of 30). Terms and FAQ agree inputs aren't used for training; the privacy policy renders only with JavaScript and wasn't read (15 of 30). Dated retirement notices and shutdown fields (13 of 20). Processing generally in mainland China for the China site, Singapore for the international one (13 of 20). Every benchmark in the release is Tencent's own or a partner's. 14 + 15 + 13 + 13 = 55.
xAI API (Grok) 63
Closed service under xAI's enterprise terms, with the Python SDK under Apache-2.0 (15). The docs agree with each other on no training, 30-day abuse retention, 30-day storage of stateful responses and the ZDR route, but the privacy policy, enterprise terms and DPA at x.ai/legal answered a Cloudflare block page on 6 October and again on 6 November, so they couldn't be compared (15 of 30). Dated migration guides and redirect tables for each retirement, but no written deprecation policy, and Chat Completions, Anthropic compatibility and grok-voice-2.0 are labelled deprecated with no date (12 of 20). The US regional endpoint states what stays in the US, the global endpoint guarantees no region, and no subprocessor list was readable (10 of 20).
Reliability xAI API (Grok) +9
Tencent Hy4 46
Model reading for hy4 on Tencent Cloud TokenHub. Platform facts are the tencent-tokenhub listing's (checked 1 November), carried over as RULES.md allows for a model on an already graded platform. No public status page (0) and so no incident record to read (5 of 30). Per-model rate limits only in the console and DescribeModelQuota (8 of 15). Six 429 codes, Retry-After and backoff advice (13 of 15). The TokenHub SLA promises 99.5% a month, and Hy4 is Tencent's own model, so the third-party exclusion doesn't apply (10). Released as hy4 on 4 November, a separate id from hy4-preview, with no preview label (10). 0 + 5 + 8 + 13 + 10 + 10 = 46.
xAI API (Grok) 55
Status page at status.x.ai with components for the global and US API endpoints, voice, the consumer apps and, since the Cursor merger, Cursor's services, with an RSS feed (20). The feed, read on 6 November, now holds 267 incidents back to 11 August, so the whole 90-day window is readable. On the API components there were high error rates on grok-4.6 and grok-4.5 from 21:57 to 23:28 UTC on 17 August (about 90 minutes) and a models outage on the global and US endpoints from 13:30 to 17:09 UTC on 3 September (about 3 hours 40 minutes), so several majors. A 26-minute datacenter outage across the API on 22 September, voice disruptions of 12 and 28 minutes on 10 September and 6 October, a 63-minute voice and Imagine degradation on 30 October and a 37-second model degradation on 24 October add to the record (0). Rate limits published per model and tier, grok-4.7 at Tier 0 is 150 requests a second and 50M TPM, with the per-second cap derived as RPM divided by 48 (15). The rate-limits page shows exponential backoff on 429, but no Retry-After header or overload guidance was found (10 of 15). No SLA found in the docs or llms.txt (0). The Responses API has been GA since September 2025 and grok-4.7 carries no preview label (10).
Score by category
| Category | Weight this run | Tencent Hy4 | xAI API (Grok) | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 46 | 55 | xAI API (Grok) +9 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 73 | 88 | xAI API (Grok) +15 |
| Agent ergonomics | 13%16.2 | 86 | 90 | xAI API (Grok) +4 |
| Security & auth | 14%17.5 | 71 | 97 | xAI API (Grok) +26 |
| Payments & pricing | 10%12.5 | 45 | 30 | Tencent Hy4 +15 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 73 | 77 | xAI API (Grok) +4 |
| Transparency & trust | 7%8.8 | 52 | 63 | xAI API (Grok) +11 |
| Negative events | ≤15 | 0 | 0 | |
| Total | B 64/100 | BB 72.9/100 |
Facts side by side
| Fact | Tencent Hy4 | xAI API (Grok) |
|---|---|---|
| Kind | Model API | Model API |
| Vendor | Tencent (Hy team) | SpaceXSI (xAI) |
| Hosted endpoint | no (local only) | https://api.x.ai/v1 |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Pay per use | Pay per use |
| x402 | no | no |
| Licence | Hosted model under the Tencent Cloud TokenHub terms. Tencent says weights and a system card will follow; no licence is stated yet | Proprietary service under xAI's enterprise terms of service. The Python SDK is Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-11-04 | 2026-11-02 |
| Terms last updated | couldn't be read | 2026-10-27 |
| Privacy policy last updated | couldn't be read | 2026-10-27 |
| Customer content may train models | couldn't be read | yes |
| Terms restrict automated access | couldn't be read | not found in the text |
| Terms restrict benchmarking | couldn't be read | not found in the text |
| Terms or service can change without notice | couldn't be read | not found in the text |
| Arbitration or class-action waiver | couldn't be read | yes |
| Popularity | none | 597 stars, 912k PyPI/wk |
How the scores have moved
Verdicts
Tencent Hy4
Tencent's flagship model is on TokenHub as hy4, with a 1M-token context, image understanding, function calling and caching, at ¥6 input and ¥18 output per million tokens, half price until the end of 2026. The weights it is called open source for aren't published yet, and every benchmark is Tencent's own.
xAI API (Grok)
Grok 4.7 at $2/$6 per million tokens, now 20% off in batch, with a public OpenAPI spec, llms.txt, API keys limited by endpoint and model, and self-serve zero data retention. The API endpoints had a 3 hour 40 minute models outage on 3 September 2026, no SLA was found, and there's no free tier or first-party SDK beyond Python.
Before you call either
Tencent Hy4
- Use model id hy4 on TokenHub's OpenAI- or Anthropic-compatible endpoints; hy4-preview is a separate, older model
- Keep input under 960K tokens and expect at most 64K output
- Reuse prompt prefixes: cached input is ¥0.3 against ¥6
- Check the price page for the end of the 50% discount on 31 December 2026 before budgeting
- Read rate limits from the console or DescribeModelQuota; the public docs don't give them for chat models
xAI API (Grok)
- Build on the Responses API at https://api.x.ai/v1. Chat Completions is labelled deprecated and the Anthropic-compatible endpoint fully deprecated
- Pin a dated model slug. A retired slug keeps answering from a replacement model, billed at the replacement's price
- Back off exponentially on 429. The per-second cap is the per-minute budget divided by 48, with a minimum of 2
- Set
allowed_toolson remote MCP servers. There's no approval step, and every exposed tool enters the context - Use https://us.api.x.ai/v1 when processing must stay in the US. It costs 1.1x and serves only grok-4.7 and grok-4.6
Questions
Which is better for AI agents, Tencent Hy4 or xAI API (Grok)?
xAI API (Grok) scores 72.9 (BB) on agent readiness against Tencent Hy4's 64 (B), and leads in 6 of 7 scored categories. Tencent Hy4 leads on payments & pricing.
Do Tencent Hy4 and xAI API (Grok) need an API key?
Both need an API key.
Can an agent call Tencent Hy4 and xAI API (Grok) without installing anything?
No hosted endpoint is listed for Tencent Hy4. xAI API (Grok) has a hosted endpoint at https://api.x.ai/v1.
Other comparisons with Tencent Hy4 or xAI API (Grok)
- Amazon Bedrock vs Tencent Hy4
- Amazon Bedrock vs xAI API (Grok)
- Claude API vs Tencent Hy4
- Claude API vs xAI API (Grok)
- Antseed vs Tencent Hy4
- Antseed vs xAI API (Grok)
- Azure OpenAI in Foundry Models vs Tencent Hy4
- Azure OpenAI in Foundry Models vs xAI API (Grok)
- BlockRun.AI vs Tencent Hy4
- BlockRun.AI vs xAI API (Grok)
- Cerebras Inference vs Tencent Hy4
- Cerebras Inference vs xAI API (Grok)
- Claude Fable 5.2 vs Tencent Hy4
- Claude Fable 5.2 vs xAI API (Grok)
- Claude Mythos 5.2 vs Tencent Hy4
- Claude Mythos 5.2 vs xAI API (Grok)
- Cloudflare AI Gateway vs Tencent Hy4
- Cloudflare AI Gateway vs xAI API (Grok)
- Cloudflare Workers AI vs Tencent Hy4
- Cloudflare Workers AI vs xAI API (Grok)
- Cohere Chat API (Command models) vs Tencent Hy4
- Cohere Chat API (Command models) vs xAI API (Grok)
- DeepInfra vs Tencent Hy4
- DeepInfra vs xAI API (Grok)
- DeepSeek API vs Tencent Hy4
- DeepSeek API vs xAI API (Grok)
- Eden AI vs Tencent Hy4
- Eden AI vs xAI API (Grok)
- Glimpse vs Tencent Hy4
- Glimpse vs xAI API (Grok)
- Fireworks AI Inference vs Tencent Hy4
- Fireworks AI Inference vs xAI API (Grok)
- Gemini 4 Carbon vs Tencent Hy4
- Gemini 4 Carbon vs xAI API (Grok)
- Gemini 4 Hydrogen vs Tencent Hy4
- Gemini 4 Hydrogen vs xAI API (Grok)
- Gemini Developer API vs Tencent Hy4
- Gemini Developer API vs xAI API (Grok)
- GroqCloud vs Tencent Hy4
- GroqCloud vs xAI API (Grok)
- Hugging Face Inference Providers vs Tencent Hy4
- Hugging Face Inference Providers vs xAI API (Grok)
- Tencent Hy4 vs Jais 3
- Tencent Hy4 vs Meta Model API
- Tencent Hy4 vs MiniMax API
- Tencent Hy4 vs Mistral AI API
- Tencent Hy4 vs Muse Ember
- Tencent Hy4 vs Muse Spark Open
- Tencent Hy4 vs Nemotron 3.5 Super VL
- Tencent Hy4 vs Novita AI
- Tencent Hy4 vs OpenAI API
- Tencent Hy4 vs OpenRouter
- Tencent Hy4 vs Prism Inference
- Tencent Hy4 vs Router.com (Ramp Router)
- Tencent Hy4 vs Beam 1.0
- Tencent Hy4 vs RouterPlus
- Tencent Hy4 vs SambaCloud
- Tencent Hy4 vs SiliconFlow
- Tencent Hy4 vs Simplismart
- Tencent Hy4 vs StepFun API
- Tencent Hy4 vs SWE-2 Flash
- Tencent Hy4 vs Tencent Cloud TokenHub
- Tencent Hy4 vs Together AI Inference
- Tencent Hy4 vs Vercel AI Gateway
- Tencent Hy4 vs Vertex AI (Gemini Enterprise Agent Platform)
- Jais 3 vs xAI API (Grok)
- Meta Model API vs xAI API (Grok)
- MiniMax API vs xAI API (Grok)
- Mistral AI API vs xAI API (Grok)
- Muse Ember vs xAI API (Grok)
- Muse Spark Open vs xAI API (Grok)
- Nemotron 3.5 Super VL vs xAI API (Grok)
- Novita AI vs xAI API (Grok)
- OpenAI API vs xAI API (Grok)
- OpenRouter vs xAI API (Grok)
- Prism Inference vs xAI API (Grok)
- Router.com (Ramp Router) vs xAI API (Grok)
- Beam 1.0 vs xAI API (Grok)
- RouterPlus vs xAI API (Grok)
- SambaCloud vs xAI API (Grok)
- SiliconFlow vs xAI API (Grok)
- Simplismart vs xAI API (Grok)
- StepFun API vs xAI API (Grok)
- SWE-2 Flash vs xAI API (Grok)
- Tencent Cloud TokenHub vs xAI API (Grok)
- Together AI Inference vs xAI API (Grok)
- Vercel AI Gateway vs xAI API (Grok)
- Vertex AI (Gemini Enterprise Agent Platform) vs xAI API (Grok)
Machine-readable
- This page as Markdown
/compare/hy4-vs-xai-api.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/hy4.json·/api/v1/tools/xai-api.json - From a terminal
anchor compare hy4 xai-api(the CLI) - Over MCP
compare_tools {"a": "hy4", "b": "xai-api"}at/mcp, no key