Skip to content Chat

Hunyuan API

6 Hunyuan models on one OpenAI-compatible API and one prepaid balance, billed per use at the official price.

Get API Key All 6 Hunyuan models

Official price

$0.834 / $2.501 per 1M input / output tokens

Hy4 preview

Hunyuan models and prices 6

ModelContextPriceDiscount
Hy4 previewtencent/hy4-preview1.05M$0.834 / $2.501 per 1M tokens—
Hy-MT2-1.8Btencent/hy-mt2-1.8b8K$0.044 / $0.177 per 1M tokens—
Hy-MT2-30B-A3Btencent/hy-mt2-30b-a3b8K$0.074 / $0.295 per 1M tokens—
Hy-MT2-7Btencent/hy-mt2-7b8K$0.074 / $0.295 per 1M tokens—
Hy3tencent/hy3262K$0.132 / $0.528 per 1M tokens—
Hy3 previewtencent/hy3-preview262K$0.18 / $0.60 per 1M tokens—

Prices as of November 5, 2026. Official price: the model maker's list price. Tier 1–3: OceanToken's standing discounts by cumulative top-up, not limited-time offers.

Call the Hunyuan API

Any OpenAI-compatible SDK works: set the base URL to https://api.oceantoken.ai/v1, use your OceanToken key and the model id as written.

Python
from openai import OpenAI
# Your API Key from the OceanToken console
client = OpenAI(base_url="https://api.oceantoken.ai/v1",
                api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
    model="tencent/hy4-preview",
    messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)

Why use Hunyuan on OceanToken

  • One API key and one prepaid balance for nearly 500 models from 73 publishers.
  • OpenAI-compatible: change the base URL and the key, and keep your code.
  • Prepaid, with no subscription and no platform fee. Each API key can have its own spending limit.

Frequently asked questions

How much does the Hunyuan API cost?

On OceanToken Hy4 preview costs $0.834 / $2.501 per 1M tokens. The lowest-priced Hunyuan model is Hy-MT2-1.8B, at $0.044 / $0.177 per 1M tokens. Every model is billed per use from a prepaid balance, with no subscription.

Are these the official Hunyuan models?

Yes. You call each model by its own name and get that model. Every model page shows the official price next to ours before you call it.

How do I call the Hunyuan API?

Create an API key in the OceanToken console, set the base URL to https://api.oceantoken.ai/v1 and use the model id, for example tencent/hy4-preview. The OpenAI SDKs and any OpenAI-compatible client work.

Do I need a subscription to use Hunyuan?

No. You add credits by card, and each request is billed at the model’s price. Purchased credits are valid for 12 months.

Get API Key All models

Other model APIs

Kimi API · MiniMax API · Claude API · GPT API · Gemini API · Grok API · Mistral API · Llama API · Gemma API · Nemotron API · Seed API · Sonar API · Command API · Nova API · Veo API · Kling API · Wan API · Hailuo API · Nano Banana API · Seedream API · GPT Image API · FLUX API · Qwen Image API · Grok Imagine API · Recraft API · MAI Image API · Whisper API · Voyage API