T
tencent/hy4

tencent/hy4

Date de publication: 2026-11-04

1,048,576 context · $0.83/M input tokens · $2.50/M output tokens

The official release of Hy4 delivers comprehensive and substantial improvements over Hy4 Preview, with particularly strong gains in agentic capabilities and performance across a wide range of long-horizon, real-world productivity...

Tarification

Paiement à l'usage

Aucun coût initial, payez uniquement ce que vous utilisez

Entrée$0.83 / M Tokens
Sortie$2.50 / M Tokens
Cache Read$0.04 / M Tokens

Essayer le modèle

tencent/hy4
En ligne
T
Bonjour ! Je suis un assistant IA utile. Que puis-je faire pour vous ?
Prêt à utiliser ce modèle dans un coding agent local ?Setup agent

Utilisation de l'API

Utilisez les exemples de code suivants pour intégrer notre API :

import OpenAI from 'openai';

if (!process.env.WAVESPEED_API_KEY) throw new Error('Set WAVESPEED_API_KEY');
const client = new OpenAI({
  apiKey: process.env.WAVESPEED_API_KEY,
  baseURL: 'https://llm.wavespeed.ai/v1',
  timeout: 120_000,
  maxRetries: 0,
});

try {
  const response = await client.chat.completions.create({
    model: 'tencent/hy4',
    messages: [{ role: 'user', content: 'Hello!' }],
  });
  const body = response as typeof response & { error?: { message?: string } };
  if (body.error) throw new Error(body.error.message || 'LLM generation failed');
  console.log(response.choices[0]?.message?.content ?? '');
} catch (error) {
  console.error('LLM request failed:', error);
  process.exitCode = 1;
}

Introduction au modèle

Tencent: Hy4

The official release of Hy4 delivers comprehensive and substantial improvements over Hy4 Preview, with particularly strong gains in agentic capabilities and performance across a wide range of long-horizon, real-world productivity...

This model is available through the WaveSpeed AI OpenAI-compatible API for chat completions and compatible application workflows.


Why It Looks Great

  • text+image->text architecture for Text, Image to Text workloads
  • 1048576 context window for long prompts, document analysis, and multi-turn workflows
  • Vision input support for image understanding and multimodal tasks
  • Function calling and tool-use support for agentic application workflows
  • Structured output support for JSON responses and schema-constrained generation
  • Reasoning controls available through supported parameters

Key Features

  • Context Window: 1048576 tokens
  • Max Input: 983040 tokens
  • Max Output: 65536 tokens
  • Vision: Supported
  • Function Calling: Supported
  • Structured Outputs: Supported
  • Image Generation: Not listed
  • Audio Input: Not listed
  • Supported Parameters: include_reasoning, max_completion_tokens, max_tokens, reasoning, reasoning_effort, response_format, stop, structured_outputs, temperature, tool_choice, tools

Specifications

SpecificationValue
Providertencent
Model TypeChat Completions model
Architecturetext+image->text
Context Window1048576 tokens
Max Input983040 tokens
Max Output65536 tokens
InputText, Image
OutputText
VisionSupported
Function CallingSupported
Structured OutputsSupported
Release DateNovember 4, 2026

How to Use

  1. Write your prompt - describe the task, provide context, and specify the desired output format.
  2. Submit - the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: tencent/hy4


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

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

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "tencent/hy4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: tencent/hy4
  • Provider: tencent

Infos

Fournisseurtencent
Typellm

Fonctionnalités prises en charge

Entrée
TexteImage
Sortie
Texte
Contexte1,048,576
Sortie max65,536
Vision✓ Pris en charge
Function Calling✓ Pris en charge

Guide d'accès API

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
ID du modèletencent/hy4

Hy4 API

tencent/hy4

The official release of Hy4 delivers comprehensive and substantial improvements over Hy4 Preview, with particularly strong gains in agentic capabilities and performance across a wide range of long-horizon, real-world productivity...

Entrée

$0.834 /M

Sortie

$2.501 /M

Contexte

1049K

Sortie max.

66K

Vision

Pris en charge

Utilisation d'outils

Pris en charge

Essayez Hy4 sur WaveSpeedAI

Accédez à Hy4 via notre API unifiée — compatible OpenAI, sans démarrages à froid, prix transparents.

Questions fréquentes sur Hy4

Combien coûte l'API Hy4 ?+

Tarification sur WaveSpeedAI : $0.83 par million de tokens d'entrée et $2.50 par million de tokens de sortie. Le prompt caching et le traitement par batch sont facturés séparément et réduisent le coût effectif sur les charges longues et répétitives.

Quelle est la fenêtre de contexte de Hy4 ?+

Hy4 prend en charge jusqu'à 1049K tokens de contexte et jusqu'à 66K tokens de sortie par requête.

Hy4 est-il compatible avec OpenAI ?+

WaveSpeedAI expose Hy4 à https://llm.wavespeed.ai/v1 via l’interface Chat Completions compatible OpenAI. La plupart des clients du SDK OpenAI fonctionnent en changeant l’URL de base et la clé API ; les champs facultatifs dépendent du modèle.

Comment démarrer avec Hy4 ?+

Connectez-vous à WaveSpeedAI, créez une clé API dans Access Keys, puis envoyez une requête à https://llm.wavespeed.ai/v1/chat/completions avec l’id du modèle affiché ci-dessus. Consultez le catalogue actuel pour la disponibilité, les capacités et les tarifs.

APIs LLM associées