Tencent Hunyuan API via CheapLLM
Access 2 Tencent Hunyuan models (Hy4, Hy4 flash) behind one unified API endpoint with transparent per-million-token pricing, full context windows, and instant OpenAI/Anthropic SDK compatibility.
All Tencent Hunyuan models & pricing comparison
Prices verified 2026-11-28Quickstart with Tencent Hunyuan
Python (OpenAI SDK)
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.cheapllm.app/v1",
api_key=os.environ["CHEAPLLM_API_KEY"],
)
response = client.chat.completions.create(
model="tencent/hy4",
messages=[{"role": "user", "content": "Hello!"}],
)