New API
  • Home
  • Docs
  • Console
  • AgentAgentHotHot
  • Partners
Sign in
Model/Details
Loading…
Home / Pricing / Models / hy4-preview

hy4-preview API Pricing & Access

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.

Pricing by group

USD per 1M tokens. Price = base price × group ratio.

GroupInputOutputCache readAbout this group
Self-Deployed-1$0.2502$0.7503$0.0125Attractive discount, suitable for general Q&A
hunyuan-2$0.7923$2.376$0.0396fluent semantic understanding, and balanced multimodal performance

Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table above and your console.

Capabilities

Provider
腾讯
Features
Conversation · Tools
API formats
OpenAI Chat Completions · Anthropic Messages

Quick start

Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.

curl · /v1/chat/completions
curl https://api.openlux.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4-preview",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
Python · OpenAI SDK
from openai import OpenAI

client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
    model="hy4-preview",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
curl · /v1/messages (Anthropic)
curl https://api.openlux.ai/v1/messages \
  -H "x-api-key: YOUR_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "hy4-preview",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Full parameters in the API docs

FAQ

How do I call the hy4-preview API?

Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use hy4-preview as the model name. The model also supports the Anthropic format, so you can call /v1/messages directly.

How is the hy4-preview API billed?

Pay as you go: input and output tokens are priced separately, and the price depends on the group you choose. At build time the lowest public group was $0.2502 per 1M input tokens and $0.7503 per 1M output tokens. Top-ups start at $1.

How is prompt caching billed for hy4-preview?

Cache hits (cache reads) cost 0.05× the input price.

Is there a Batch API?

Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.

Which API formats does hy4-preview support?

OpenAI Chat Completions, Anthropic Messages.

More

More 腾讯 models

  • hy4
  • hy4-flash
  • Model directory
  • All model pricing
  • Sign up and get an API key

Other languages: 中文 · 日本語 · 한국어

New API

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Legal

  • Terms
  • Privacy
  • Usage
  • Disclaimer
  • Refunds
  • DPA
  • Compliance
  • Imprint

Docs

  • API
  • AI News
  • Announcements

More

  • Agent

One API for mainstream AI models

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

New API

One API for mainstream AI models

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Docs

  • API
  • AI News
  • Announcements

More

  • Agent

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

Privacy | Terms | Usage | Disclaimer | Refunds | DPA | Compliance | Imprint |