Hy4 preview
tencent/hy4-previewHy4 preview is Tencent Hunyuan's open-source preview of its Hy4 generation, a mixture-of-experts language model with 770B total and 49B active parameters and a context window exceeding 1M tokens. Tencent built it for real-world productivity: long-context software development and front-end work, office and financial analysis, game prototyping and scientific research. Tencent follows a preview-first approach, with official Hy4 releases to come after this model.
En savoir plus- Prix d'entrée
- $0.83USD / 1 M tokens
- Prix de sortie
- $2.50USD / 1 M tokens
- Lecture du cache
- $0.04USD / 1 M tokens
- Fenêtre de contexte
- 1M
- Sortie max
- 64K
Spécifications
- Entrée
- Texte
- Sortie
- Texte
À propos de ce modèle
Hy4 preview is Tencent Hunyuan's open-source preview of its Hy4 generation, a mixture-of-experts language model with 770B total and 49B active parameters and a context window exceeding 1M tokens. Tencent built it for real-world productivity: long-context software development and front-end work, office and financial analysis, game prototyping and scientific research. Tencent follows a preview-first approach, with official Hy4 releases to come after this model.
Essayer le modèle
Bac à sable
Rédigez un prompt pour tester ce modèle. L'utilisation est facturée aux tarifs affichés.
Essayez une invite
Votre réponse apparaîtra ici
Choisissez un exemple ou rédigez une invite, puis cliquez sur Exécuter.
Commencer à construire
Envoyez votre première requête
Point de terminaison compatible OpenAI avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tencent/hy4-preview",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Schéma d'entrée
8 paramètres · 1 obligatoires · 7 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
messages | object[] | Obligatoire | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
stop | string[] | Facultatif | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facultatif | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
stream | boolean | Facultatif | Stream the response as server-sent events instead of returning it in one piece. · Par défaut : false |
max_tokens | integer | Facultatif | Maximum number of tokens to generate in the response. · Max : 64000 |
temperature | number | Facultatif | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min : 0 · Max : 2 · Par défaut : 1 |
tool_choice | string | Facultatif | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facultatif | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la complétion |
object | string | Type d'objet, par exemple « chat.completion » |
model | string | Modèle utilisé pour la complétion |
choices | array | Liste des choix de complétion |
choices[].message.content | string | Contenu textuel généré |
choices[].finish_reason | string | Raison de l'arrêt de la génération |
usage.prompt_tokens | integer | Nombre de tokens dans le prompt |
usage.completion_tokens | integer | Nombre de tokens dans la complétion |
usage.total_tokens | integer | Nombre total de tokens utilisés |
Questions
FAQ
Comment appeler Tencent Hy4 preview via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "tencent/hy4-preview" à Chat Completions API (/v1/chat/completions) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Combien coûte Tencent Hy4 preview ?
$0.83 pour 1 M de tokens d’entrée et $2.50 pour 1 M de tokens de sortie, facturé à la requête depuis votre solde SandBase. Les remises, lorsqu’elles sont disponibles, sont indiquées dans les tarifs de cette page.
Quelle est la fenêtre de contexte de Tencent Hy4 preview ?
1M tokens de contexte, avec jusqu’à 64K tokens de sortie par réponse.
Quelles fonctionnalités Tencent Hy4 preview prend-il en charge ?
Tencent Hy4 preview prend en charge raisonnement, appel de fonction, sortie structurée. Consultez les spécifications ci-dessus pour la liste complète.
Ai-je besoin d’un compte Tencent distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à Tencent Hy4 preview et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte Tencent séparément.
