Hy4 Flash
Hy4 Flash is an open-weights model from Tencent that reads text and images. It can reason before it answers, at the effort you ask for. The Morse API serves it on the Private tier, at one price whoever runs the request.
View API reference- Input / output price
- $0.07 / $0.28per 1M
- Context
- 1Mtokens
- Tiers
- Private
import os
from openai import OpenAI
client = OpenAI(
base_url="https://inference.trymorse.ai/v1",
api_key=os.environ["MORSE_API_KEY"],
)
reply = client.chat.completions.create(
model="tencent/hy4-flash",
messages=[{"role": "user", "content": "Why is the sky blue?"}],
)Providers
Each tier has its own price, whichever provider serves it. Name a tier in your request, or let Morse pick the default. See who can read what
| Provider | Tier | Protection | Context | Max output |
|---|---|---|---|---|
| Novita AI | Private | Zero retention | 1M | 64K |
More from Tencent
Every model takes the same key and base URL. See all models
| Model | Input | Output | Context | Tiers |
|---|---|---|---|---|
Hy3tencent/hy3 | $0.17/M | $0.72/M | 262.1K | |
Hy4tencent/hy4 | $0.83/M | $2.50/M | 1M |
Questions
How much does Hy4 Flash cost on the Morse API?
$0.07 per million input tokens, $0.28 per million output tokens, and $0.003 per million cached input tokens, the same on every privacy tier and whichever provider runs the request.
What is Hy4 Flash's context length?
1,000,000 tokens (1M) of input and output together, and it writes up to 64,000 tokens in one reply.
Who can read my prompts to Hy4 Flash?
It depends on the privacy tier your request names. Private: Vetted providers under contract to keep nothing. The provider processes the prompt and never stores it or trains on it.See how Morse keeps it private
How do I call Hy4 Flash from my code?
Point any OpenAI SDK at the base URL https://inference.trymorse.ai/v1, pass your Morse API key, and name the model tencent/hy4-flash. The code above shows the call in Python, TypeScript, and cURL.Read the docs
