Tencent Hy4 Flash is the lighter, faster member of the Hy4 family, which Tencent positions as an everyday workhorse for high-frequency, large-scale tasks such as routine office work.
- Input
- text image $0.07/M
- Output
- text $0.281/M
- Cache read
- $0.003/M
- Context
- 983K
- vs GPT-4o
- ~99% cheaper
Rates by prompt length
The whole request uses the rate for its input-length tier. Prices are USD per million tokens.
| Input tokens | Input | Output | Thinking input |
|---|
Price in context
Where the price sits among 78 comparable models
The bar shows how this model’s price compares with every other model of the same kind on Synthorai. The cheapest and the most expensive are named at each end. These are base rates; batch, region and cache-write discounts are on the pricing page.
Specs & limits
Tokens
| Context window (vendor spec) | 1,048,576 |
|---|---|
| Max output (vendor spec) | 65,536 |
Prompt caching
| How it caches | automatic |
|---|
Thinking
| Parameter | reasoning_effort |
|---|---|
| Values | minimal · low · medium · high accepted set is the provider's |
Model
| Modalities | text + image → text |
|---|
Use Tencent Hy4 Flash in 30 seconds
OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/chat/completions
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="hy4-flash",
messages=[{"role": "user", "content": "Summarize this diff"}],
reasoning_effort="medium",
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "hy4-flash",
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "hy4-flash",
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "hy4-flash",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("hy4-flash")
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));About Tencent Hy4 Flash
- It accepts text and image input, thinks before it answers by default, and supports tool calling and structured outputs.
- Tencent documents a 1024K context window, up to 960K input tokens and a 65536-token output limit.
FAQ
Is the Tencent Hy4 Flash API free to try?
Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. At $0.07/M input tokens, that credit alone covers roughly 1,785 requests of ~8K tokens against Tencent Hy4 Flash.
What is Tencent Hy4 Flash best at?
Lighter, faster Hy4 tier; Text and image input; Tool calling and structured outputs. See the About section for the full picture from the vendor's own release notes.
How much does Tencent Hy4 Flash cost?
Tencent Hy4 Flash costs $0.07 per million input tokens and $0.281 per million output tokens on Synthorai. That is the provider's list price, with no platform markup. Cached input tokens bill at $0.003/M.
What is Tencent Hy4 Flash's context window?
Tencent Hy4 Flash has a context window of 983K tokens on Synthorai. A single response can be up to 65,536 tokens long.
Does Tencent Hy4 Flash support prompt caching?
Yes, automatically: Tencent-served prompts cache with no code changes. Cached input tokens bill at $0.003/M vs $0.07/M uncached. Prompt caching guide →
How do I get access to Tencent Hy4 Flash?
Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="hy4-flash", and you're done. One API key covers every model on the gateway.
Related models
Compare
Specifications and vendor benchmarks link to their sources. Gateway support describes the Synthorai implementation. Archived examples are individual gateway requests, not a guarantee of general model performance. Prices use the public feed or its build snapshot.