Hy4
tencent/hy4Hy4 is the official release of Tencent Hunyuan's Hy4 generation, following Hy4 Preview with broad improvements, especially in agentic capabilities and long-horizon productivity tasks. It accepts text and image input, has a context window of about 1M tokens, and supports reasoning, tool calling and structured output. It targets software development, office and financial analysis, and other real-world multi-step work.
Читать далее- Цена входа
- $0.83USD / 1 млн токенов
- Цена выхода
- $2.50USD / 1 млн токенов
- Чтение из кэша
- $0.04USD / 1 млн токенов
- Окно контекста
- 1M
- Макс. выход
- 64K
Характеристики
- Вход
- Текст, изображение
- Выход
- Текст
Об этой модели
Hy4 is the official release of Tencent Hunyuan's Hy4 generation, following Hy4 Preview with broad improvements, especially in agentic capabilities and long-horizon productivity tasks. It accepts text and image input, has a context window of about 1M tokens, and supports reasoning, tool calling and structured output. It targets software development, office and financial analysis, and other real-world multi-step work.
Попробовать модель
Песочница
Введите prompt, чтобы попробовать эту модель. Использование тарифицируется по указанным ценам.
Попробуйте запрос
Добавить изображение (необязательно)
Ваш ответ появится здесь
Выберите пример или напишите запрос, затем нажмите «Запустить».
Начните разработку
Отправьте свой первый запрос
Совместимая с OpenAI конечная точка с единообразной аутентификацией и учётом использования.
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",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Схема ввода
8 параметров · 1 обязательных · 7 необязательных
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
messages | object[] | Обязательный | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
stop | string[] | Необязательный | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Необязательный | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
stream | boolean | Необязательный | Stream the response as server-sent events instead of returning it in one piece. · По умолчанию: false |
max_tokens | integer | Необязательный | Maximum number of tokens to generate in the response. · Макс.: 64000 |
temperature | number | Необязательный | Sampling temperature. Higher values make output more random; lower values make it more focused. · Мин.: 0 · Макс.: 2 · По умолчанию: 1 |
tool_choice | string | Необязательный | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Необязательный | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Схема вывода
| Поле | Тип | Описание |
|---|---|---|
id | string | Уникальный идентификатор завершения |
object | string | Тип объекта, например "chat.completion" |
model | string | Модель, использованная для завершения |
choices | array | Список вариантов завершения |
choices[].message.content | string | Сгенерированный текст |
choices[].finish_reason | string | Причина остановки генерации |
usage.prompt_tokens | integer | Количество токенов в запросе |
usage.completion_tokens | integer | Количество токенов в завершении |
usage.total_tokens | integer | Общее количество использованных токенов |
Вопросы
FAQ
Как вызвать Tencent Hy4 через SandBase?
Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "tencent/hy4" на Chat Completions API (/v1/chat/completions) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.
Сколько стоит Tencent Hy4?
$0.83 за 1 млн входных токенов и $2.50 за 1 млн выходных токенов, списывается за каждый запрос с баланса SandBase. Скидки, если доступны, указаны в ценах на этой странице.
Каково контекстное окно Tencent Hy4?
1M токенов контекста и до 64K выходных токенов на ответ.
Какие возможности поддерживает Tencent Hy4?
Tencent Hy4 поддерживает зрение (вход изображений), рассуждение, вызов функций, структурированный вывод. Полный список см. выше в разделе Specifications.
Нужен ли мне отдельный аккаунт Tencent?
Нет. Один API key SandBase и один баланс дают вам доступ к Tencent Hy4 и другим моделям в каталоге; отдельно регистрироваться в Tencent не нужно.
