Tencent
LLM1 つの OpenDesign Go API キーで Tencent Hunyuan Hy4、Hy4 Flash、Hy4 Preview(1.05M コンテキスト)を利用できます。
Tencent モデル料金マトリクス
料金、コンテキスト/解像度仕様、入出力モダリティを一覧比較できます。列見出しクリックで並び替え可能です。
|
Hunyuan Hy4
hy4
|
LLM | 1.05M ctx | $0.834 / $2.501 | $0.042(-95%) | テキスト + 画像 → テキスト |
|
Hunyuan Hy4 Flash
hy4-flash
|
LLM | 1.05M ctx | $0.07 / $0.281 | $0.003(-96%) | テキスト + 画像 → テキスト |
|
Hunyuan Hy4 Preview
hy4-preview
|
LLM | 1.05M ctx | $0.834 / $2.501 | $0.042(-95%) | テキスト → テキスト |
Tencent クイックスタート
1 つの OpenDesign Go API キーで hy4 をはじめ上記すべての Tencent モデル ID を呼び出せます。
curl https://amr-link.open-design.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "hy4",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Refactor this API handler for streaming responses." }
]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://amr-link.open-design.ai/v1",
api_key=os.environ["COROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="hy4",
max_tokens=1024,
messages=[
{"role": "user", "content": "Refactor this API handler for streaming responses."}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://amr-link.open-design.ai/v1",
apiKey: process.env.COROUTER_API_KEY,
});
const response = await client.chat.completions.create({
model: "hy4",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(response.choices[0].message.content);import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://amr-link.open-design.ai",
apiKey: process.env.COROUTER_API_KEY,
});
const message = await client.messages.create({
model: "hy4",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(message.content);Tencent よくある質問
OpenDesign Go では 3 種の Tencent モデル(LLM)を 1 つの API キーで呼び出せます。
Tencent の最安単価は $0.07/1M からです。
高度な推論や複雑なコーディングには Hunyuan Hy4(hy4)、高スループット・低コスト用途には Hunyuan Hy4 Flash(hy4-flash)が適しています。
リクエスト先を https://amr-link.open-design.ai/v1 に設定し、Authorization: Bearer $COROUTER_API_KEY とマトリクス記載のモデル ID(例: hy4)をプレフィックスなしで指定します。
Tencent モデルはキャッシュ読込で最大 -96% の削減に対応しています。全コンテキスト長で一律単価です。
はい。全 17 プロバイダー・88 モデルを 1 つの API キーと共通残高で併用でき、ゼロデータ保持によりプロンプトや生成物は保存されません。