Tencent: Hunyuan Hy4 Flash

LLM New
hy4-flash by Tencent

Tencent Hunyuan Hy4 Flash model ($0.07/$0.281 per 1M tokens) with 1.05M context and 96% prompt cache read savings.

Context Window 1.05M Max output 66K
In / Out Price $0.07 / $0.281USD / 1M · Official list rate
Cache Read $0.003 (-96%) No cache write surcharge
Modalities & Effort Text + Image → Text Reasoning effort: high

Pricing & Cost Calculator

Per-1M token pricing on OpenDesign Go.

Estimate Request Cost
Input cost10,000 × $0.07/1M $0.0007
Output cost2,000 × $0.281/1M $0.000562
Cache read0 × $0.003/1M $0
Estimated request cost $0.001262
Standard tier
Input$0.07 / 1M
Output$0.281 / 1M
Cache read$0.003 / 1M
Input LengthInputOutputCache ReadCache Write
Standard$0.07$0.281$0.003—
1,000 Quick Chats
$0.561
4K input + 1K output tokens each
100 Coding Agent Turns
$0.194
10K fresh + 40K cached + 4K output each
10 Long-Context Reviews
$0.116
150K input + 4K output per review
Flat rate across the full context window — no long-context surcharge.

Specs & Parameters

Context Window1.05M
Max Output65,536
Reasoning EffortDefault: high
Prompt Caching$0.003/1M (-96%)
ParameterTypeValue / Support
modelstringhy4-flash
messages / inputarraytext, image
max_tokensinteger≤ 65,536
streambooleanSSE token streaming
reasoning_effortstringlow / medium / high (default: high)
tools / response_formatobjectFunction calling & JSON schema

Routing, Reliability & Privacy

Managed upstream routing with automatic failover, locked public pricing, and zero data retention.

Upstream Routing Multi-Route Failover Automatic priority routing and upstream failover managed continuously by OpenDesign Go Link.
Price Consistency Locked Public Rate Rates stay fixed across upstream failover.
Auto-Availability 5xx Circuit Breaker Unhealthy backends automatically enter cooldown/probation while traffic shifts to healthy routes.
Data Policy (ZDR) Zero Payload Storage Logs only member, model, token/media units, and usage cost — never prompts, outputs, or media bytes.

API

Call hy4-flash using OpenAI Compatible (Chat / Responses).

1

Set your OpenDesign Go API key

export COROUTER_API_KEY="YOUR_API_KEY" # Base URL: https://amr-link.open-design.ai/v1
2

Make your first request

Chat Completionshttps://amr-link.open-design.ai/v1/chat/completions
curl https://amr-link.open-design.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COROUTER_API_KEY" \
  -d '{
    "model": "hy4-flash",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Refactor this API handler for streaming responses." }
    ]
  }'
3

Inspect response payload & HTTP errors

HTTP 200 OKhy4-flash
{
  "id": "chatcmpl_od_01j9x7k2m8",
  "object": "chat.completion",
  "model": "hy4-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Here is the streaming handler implementation..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 50000,
    "completion_tokens": 4000,
    "total_tokens": 54000,
    "prompt_tokens_details": {
      "cached_tokens": 40000
    }
  }
}

Coding Agents

Pre-filled configurations for Hunyuan Hy4 Flash across supported coding tools.

OpenAI Compatibleopencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "corouter": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "OpenDesign Go",
      "options": {
        "baseURL": "https://amr-link.open-design.ai/v1",
        "apiKey": "{env:COROUTER_API_KEY}"
      },
      "models": {
        "hy4-flash": {
          "name": "Hunyuan Hy4 Flash"
        }
      }
    }
  },
  "model": "corouter/hy4-flash"
}

Compare Models

Side-by-side pricing, context window, and 50K-token coding turn estimate.

ModelProviderContextInputOutputCache Read50K Turn
Hunyuan Hy4 Flash Current
Tencent1.05M$0.07$0.281$0.003(-96%)$0.001944
Tencent1.05M$0.834$2.501$0.042(-95%)$0.020024
Tencent1.05M$0.834$2.501$0.042(-95%)$0.020024
OpenAI1.05M$8$1.2$40$6$0.4$0.06(-95%)$0.256$0.0384
OpenAI1.05M$2$0.3$10$1.5$0.1$0.015(-95%)$0.064$0.0096

Frequently Asked Questions

Hunyuan Hy4 Flash (hy4-flash) is billed at official list rates: $0.07/1M input and $0.281/1M output, with prompt cache reads at $0.003/1M (-96%).

Hunyuan Hy4 Flash supports Text + Image → Text with a 1.05M context window and up to 65,536 output tokens.

Yes. Hunyuan Hy4 Flash supports reasoning_effort levels (low / medium / high) with a default of high.

Cached prompt reads on Hunyuan Hy4 Flash are billed at $0.003/1M tokens (-96% vs standard input) with no cache write surcharge.

Yes. Copy the pre-filled configuration in the Coding Agents section above, set model to "hy4-flash", and replace YOUR_API_KEY with your OpenDesign Go key.

No. OpenDesign Go enforces Zero Data Retention and records only account, model, token counts, and usage cost — never prompt or response bodies.

More models from Tencent

View provider page

Explore more models

Full directory