腾讯混元

腾讯混元大模型 Hy4 全新第4代 100万长上下文

🟢 156ms 每日自动充能 📏 1048k

🛡️ 📊 技术规格与免费配额

初始调试赠送体验包 免绑信用卡 需国内实名 每日自动充能 重度 Agent 推荐
上下文窗口 1048k
请求速率 RPM 弹性并发
单日配额与重置 注册送 100 万 Token 体验金 · 一次性赠送额度
资质门槛要求 免绑卡
支持能力特性:
🖼️ 图像理解生成 📝 文本生成

📋 连接端点与参数配置

兼容 OpenAI Chat API
Base URL
https://hunyuan.tencentcloudapi.com
Model ID
hy4
同族备用模型代号
🎁【新客 100 万 Tokens + 元宝/ima 完全免费】新一代推理模型 · 100万长上下文 · 耗尽不扣费
👉 30秒直达腾讯云混元控制台领取

💡 适用工况与避坑指南

🎯 腾讯自研第四代基座 · 1M 超长上下文 · 视觉理解与 Agent 复杂长流程推理能力 · 网页端元宝完全免密免费

📋 免费层级调用规则与额度约束

  • 注册开通腾讯云混元大模型即送 100 万 Token 体验包
  • 原生支持 Function Calling 与超长中文上下文处理
  • 控制台支持开启非超额自动断流保护功能

🛡️ 防扣费与账单风控避坑指南

控制台支持设置超额自动断流,建议开启避免产生后付费账单

极速接入代码与客户端一键配置

🍒 导入 Cherry Studio
curl https://hunyuan.tencentcloudapi.com/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "hy4",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": true
  }'
from openai import OpenAI

client = OpenAI(
    base_url="https://hunyuan.tencentcloudapi.com",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="hy4",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True
)

for chunk in response:
    content = chunk.choices[0].delta.content or ""
    print(content, end="", flush=True)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://hunyuan.tencentcloudapi.com",
  apiKey: "YOUR_API_KEY"
});

const stream = await client.chat.completions.create({
  model: "hy4",
  messages: [{ role: "user", content: "Hello!" }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content || "");
}
{
  "apiProvider": "openai",
  "openAiBaseUrl": "https://hunyuan.tencentcloudapi.com",
  "openAiApiKey": "YOUR_API_KEY",
  "openAiModelId": "hy4"
}
✓ ✓ 已复制