hy4-preview
NixAPI price, from
USD per 1M tokens · via group hunyuan-1 · Official list price $0.834 / $2.501
About hy4-preview
Hy4 preview total parameters 770B, activation parameters 49B, focusing on optimization for Agent, Coding, and productivity scenarios, enhancing understanding, planning, tool invocation, and continuous execution capabilities in complex tasks. Compared to the previous generation model, Hy4 preview further improves in multi-step Agent, code development, and productivity tasks, with better task decomposition, context retention, instruction adherence, and long-chain execution capabilities. In Coding scenarios, it further enhances code understanding, generation, modification, and handling of complex engineering tasks; in productivity scenarios, it focuses on improving document processing, information analysis, office automation, game development, web generation, and cross-tool collaboration capabilities. Hy4 preview is suitable for Coding Agents, complex tool invocation, and various Agent workflows requiring multi-step planning and continuous execution, providing more reliable task completion capabilities for complex tasks in real business scenarios.
Price by routing group
Pick a group in the console when you create a key. Status is live from the router. Live status by group →
| Group | Group status | Model status | Multiplier | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|---|
hunyuan-1 | … | ×1.6055 | $1.339 | $4.015 | $0.0669 | — |
USD per 1M tokens
Supported endpoints
Call hy4-preview in one request
Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.
curl https://api.nixapi.com/v1/chat/completions \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "hy4-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
resp = client.chat.completions.create(
model="hy4-preview",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const resp = await client.chat.completions.create({
model: "hy4-preview",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);Questions about hy4-preview
How much does hy4-preview cost on NixAPI?
From $1.339 per 1M input tokens and $4.015 per 1M output tokens in the hunyuan-1 group. Prices are pay-as-you-go in USD with no monthly minimum.
How do I call hy4-preview?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "hy4-preview".
Which routing groups serve hy4-preview?
hy4-preview is available in 1 routing groups: hunyuan-1. The lowest price is in hunyuan-1.