All models
Tencent

Hy4 Preview

tencent/hy4-preview

Hy4 Preview by Tencent is available on Rynler through an OpenAI-compatible API. Use the model ID below with your existing client and a Rynler API key.

ProviderTencent
Model IDtencent/hy4-preview
ModalityText
Context window1M tokens (1,000,000)
Maximum output64K tokens
Per-request platform cap1,000,000 tokens

Live per-token prices load from the catalogue API and refresh hourly. See current pricing.

Start with a request.

Use this model ID with the chat completions endpoint. Estimated input plus requested maximum output must fit within the model's 1,000,000-token context window. Requested maximum output is limited separately to 64,000 tokens.

import os
import uuid
from openai import OpenAI

client = OpenAI(
    base_url="https://api.rynler.com/v1",
    api_key=os.environ["RYNLER_API_KEY"]
)

response = client.chat.completions.create(
    model="tencent/hy4-preview",
    messages=[{"role": "user", "content": "Hello, world."}],
    max_tokens=1024,
    extra_headers={"Idempotency-Key": str(uuid.uuid4())}
)
print(response.choices[0].message.content)