How to Use Hy4 Preview in Hermes
Hy4 Preview handles long-context coding, office analysis, and scientific research. Its output ceiling is 64,000 tokens versus Hy4's 65,536, and Tencent documents a tendency to over-check its work.
Prompts to try with Hy4 Preview in Hermes
Copy an example into Hermes, or ask in your own words.
Each week, use Hy4 Preview to compare the supplied expense table with the stated budget rules. Report discrepancies and missing evidence without inventing explanations.
Each evening, use Hy4 Preview to analyze the supplied test-run summaries. Cluster recurring failures and propose the next diagnostic step for each cluster.
Each Friday, use Hy4 Preview with deep reasoning to review the supplied experiment results. Compare them with the stated hypothesis and return a brief assessment with one verification pass.
Every Monday at 9am: ask Hy4 Preview through Spiral to review the diff on this branch and list the three riskiest changes.
Get a second opinion from Hy4 Preview on this function, then tell me what the call cost.
How to set up Hy4 Preview in Hermes
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send Hermes this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Add the server and sign in
Hermes opens your browser: sign in to Spiral and click Authorize. No API key. When Hermes asks Enable all tools? \[Y/n/select], answer Y: n cancels without saving the server, and select hides the tools you leave out.
hermes mcp add spiral \ --url https://api.spiral.ai/mcp \ --auth oauth \ --connect-timeout 300
- Check it
In a chat that was already open, run /reload-mcp.
hermes mcp list hermes mcp test spiral
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Hy4 Preview
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "tencent/hy4-preview", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Hermes finds Hy4 Preview on Spiral, shows the price and runs it.
Hy4 Preview providers and prices
Spiral runs Hy4 Preview through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.013357 per run at the default inputs. $1.0842 per 1M input tokens, $3.2513 per 1M output tokens.
Settings you can ask for
Ask Hermes for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Min p | 0 to 1 | ||
| Top k | a whole number from 0 | ||
| Top p | 0 to 1 | ||
| Logprobs | on or off | ||
| Max tokens | 1 to 64000 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Top logprobs | 0 to 20 | ||
| Presence penalty | -2 to 2 | ||
| Reasoning effort | none, low, or high | high | How much the model reasons. |
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 to 2 | ||
| Parallel tool calls | on or off |
Every API field of Tencent: Hy4 preview is on its tool page: open its card above.
What can you do with Hy4 Preview in Hermes?
Tencent Hy4 can help produce recurring analyses from newly supplied information. Define the reporting period, evidence requirements, and stopping point for each run.
Fix a bug across several files
Trace a failing behavior through the relevant code, propose a focused patch, and check it against the reported failure.
Plan a code migration
Compare existing code with the target requirements, identify dependencies, and break the migration into changes with acceptance checks.
Turn working notes into a report
Combine supplied notes into a report with decisions, unresolved questions, and evidence attached to each conclusion.
Review a financial model
Examine supplied assumptions and tables, explain the calculations, and flag inconsistencies for review.
Prototype a small game
Build a playable loop from a written brief, then refine controls, rules, and failure states through testing.
Develop a research computation
Translate a mathematical or scientific question into a computational approach with explicit assumptions and validation checks.
More on Hy4 Preview and Hermes
Overview
Hy4 Preview in other agents
More Hermes guides
Questions about Hy4 Preview in Hermes
Can Hermes use Hy4 Preview?
Yes. Add Spiral to Hermes as an MCP server, and Hermes can find and run Hy4 Preview like any built-in tool.
How much does Hy4 Preview cost in Hermes?
Up to $0.013357 per run at the default inputs. $1.0842 per 1M input tokens, $3.2513 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Hermes plan is separate.
Do I need an OpenRouter account to use Hy4 Preview in Hermes?
No. Spiral runs Hy4 Preview on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Hy4 Preview in Hermes?
About two minutes: add the server and sign in, then check it.
Does Hermes wait while Hy4 Preview runs?
Hy4 Preview runs in the background. Hermes starts the run, checks on it and gives you the text, json when it's ready.
What is Tencent Hy4 useful for?
Coding, office analysis, and scientific research are documented uses. Give it work that requires connecting evidence and completing several related steps.
How much context can Tencent Hy4 handle?
Hy4 and Hy4 Preview each have a 1,048,576-token context window. For a large request, identify the relevant sections and state the exact question you need answered.
How long can a Tencent Hy4 response be?
Hy4 supports up to 65,536 completion tokens; Hy4 Preview supports up to 64,000. Specify the deliverable's length instead of requesting the maximum by default.
Can Tencent Hy4 make factual mistakes?
Yes. Tencent reported lower hallucination rates for Hy4 than Hy4 Preview in an internal evaluation, but errors remained. Ask for supporting passages and verify consequential claims against the original evidence.
Can Tencent Hy4 help build a game?
Game prototyping is a documented use. Start with a small playable loop, define the controls and win condition, and refine it after testing.
Start using Hy4 Preview in Hermes
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Hermes:
set up https://spiral.ai/SKILL.md


