Models / Tencent

Hy4 preview API pricing

$0.2502 in, $0.75 out per million tokens, 70% under Tencent's list price.

hy4-previewmanaged routeOpenAI SDK

Price · per million tokens, USD

TokensTencent list priceUplinkSwitchSaving
Input$0.834$0.2502-70%
Cached inputBilled at the input rate.
Output$2.50$0.75-70%
List price: Tencent's published rate, read October 2026. Same price on every host.

Hy4 preview specs

Context window
1,048,576 tokens
Max output
65,536 tokens
Input
text
Released
August 28, 2026

Hy4 preview API · base URL and key

Python · OpenAI SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.uplinkswitch.com/v1",
    api_key="sk-uplink-live-...",
)

completion = client.chat.completions.create(
    model="hy4-preview",
    messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)
TypeScript · OpenAI SDK
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://api.uplinkswitch.com/v1',
  apiKey: 'sk-uplink-live-...',
});

const completion = await client.chat.completions.create({
  model: 'hy4-preview',
  messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);
curl
curl https://api.uplinkswitch.com/v1/chat/completions \
  -H "authorization: Bearer sk-uplink-live-..." \
  -H "content-type: application/json" \
  -d '{"model":"hy4-preview","messages":[{"role":"user","content":"Hello"}]}'

What would it cost? · paste a prompt, priced before you send it

Input is counted at about 4 characters per token.

Cheapest first. A real request is billed on the provider's own token count. Same estimate as JSON: POST https://api.uplinkswitch.com/v1/estimate, no key needed.

Hy4 preview questions

How much does the Hy4 preview API cost?
$0.2502 per million input tokens and $0.75 per million output tokens. Tencent's list price is $0.834 and $2.50, so this is 70% under Tencent's list price.
Is Hy4 preview free?
It is pay as you go: prepaid credit from $10, with no subscription or monthly fee, billed per token. A 1,000-token prompt with a 500-token reply costs about $0.0006.
What is the Hy4 preview context window?
Hy4 preview has a 1,048,576-token context window, with up to 65,536 output tokens per request. It takes text input.
What is the Hy4 preview model id?
hy4-preview. Send it as the model through the OpenAI SDK with base URL https://api.uplinkswitch.com/v1.
Is it the real Hy4 preview?
Every day each model gets the same test prompt, and a model always counts that prompt the same way; a swapped one would not. Hy4 preview's latest result: Same fingerprint since Oct 18.