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.
Leggi di più- Prezzo input
- $0.83USD / 1M token
- Prezzo output
- $2.50USD / 1M token
- Lettura da cache
- $0.04USD / 1M token
- Finestra di contesto
- 1M
- Output massimo
- 64K
Specifiche
- Input
- Testo
- Output
- Testo
Informazioni su questo modello
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.
Prova il modello
Playground
Scrivi un prompt per provare questo modello. L'utilizzo viene fatturato secondo i prezzi indicati.
Prova un prompt
La tua risposta apparirà qui
Scegli un esempio oppure scrivi un prompt, poi fai clic su Esegui.
Inizia a costruire
Invia la tua prima richiesta
Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.
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
}'Schema di input
8 parametri · 1 obbligatori · 7 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
messages | object[] | Obbligatorio | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
stop | string[] | Facoltativo | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facoltativo | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
stream | boolean | Facoltativo | Stream the response as server-sent events instead of returning it in one piece. · Predefinito: false |
max_tokens | integer | Facoltativo | Maximum number of tokens to generate in the response. · Max: 64000 |
temperature | number | Facoltativo | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Max: 2 · Predefinito: 1 |
tool_choice | string | Facoltativo | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facoltativo | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco del completamento |
object | string | Tipo di oggetto, ad esempio "chat.completion" |
model | string | Modello usato per il completamento |
choices | array | Elenco delle alternative di completamento |
choices[].message.content | string | Contenuto di testo generato |
choices[].finish_reason | string | Motivo per cui la generazione si è interrotta |
usage.prompt_tokens | integer | Numero di token nel prompt |
usage.completion_tokens | integer | Numero di token nel completamento |
usage.total_tokens | integer | Token totali utilizzati |
Domande
FAQ
Come chiamo Tencent Hy4 preview tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "tencent/hy4-preview" a Chat Completions API (/v1/chat/completions) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Quanto costa Tencent Hy4 preview?
$0.83 per 1M token di input e $2.50 per 1M token di output, addebitati per richiesta dal tuo saldo SandBase. Gli sconti, quando disponibili, sono indicati nei prezzi di questa pagina.
Qual è la finestra di contesto di Tencent Hy4 preview?
1M token di contesto, con fino a 64K token di output per risposta.
Quali funzionalità supporta Tencent Hy4 preview?
Tencent Hy4 preview supporta ragionamento, function calling, output strutturato. Consulta le Specifiche sopra per l'elenco completo.
Mi serve un account Tencent separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a Tencent Hy4 preview e agli altri modelli del catalogo; non è necessario registrarsi separatamente su Tencent.
