Together AI serves Tencent Hy4 with a 1M-token context at $0.834 input and $2.501 output (November 19, 2026)
tencent/Hy4 on Together serverless: 1,048,576 tokens, images in, reasoning, function calling, $0.834/$2.501 per 1M tokens.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. Your keys stay in this tab. They are never sent to Wirestack or saved; we only count that the panel was used.
- Together AI API keyTOGETHER_API_KEYGet key
Select Create key on your project's API keys page. The key is shown only once.
What changed
Together AI added tencent/Hy4 to serverless inference on November 19, 2026.
- Context length: 1,048,576 tokens
- Quantization: NVFP4
- Input: text and image
- Supports reasoning, function calling and structured outputs
Price per 1M tokens:
- Input: $0.834
- Cached input: $0.042
- Output: $2.501
Prerequisites
- A Together AI API key in
TOGETHER_API_KEY - Python with the
togetherpackage, or Node.js withtogether-ai
Steps
- Install the SDK.
pip install together- Call the model. This is Together's quickstart code with the model changed to
tencent/Hy4.
from together import Together
client = Together() # reads TOGETHER_API_KEY from environment
prompt = "What are the top 3 things to do in New York?"
response = client.chat.completions.create(
model="tencent/Hy4",
messages=[{"role": "user", "content": prompt}],
)
print(response.choices[0].message.content)Affected by this? Start from a checked Together AI integration
Code with pinned versions, checked against the official docs on a schedule.
