Hy4 flash
tencent/hy4-flashHy4 flash is the cost-efficient tier of Tencent Hunyuan's Hy4 family, with roughly a quarter of the flagship's parameters for lower latency and cost. It accepts text and image input, has a context window of about 1M tokens, and supports reasoning, tool calling and structured output. It targets code assistance, agent workflows and high-volume tasks where Hy4's full depth is not needed.
Читать далее- Цена входа
- $0.07USD / 1 млн токенов
- Цена выхода
- $0.28USD / 1 млн токенов
- Чтение из кэша
- $0.003USD / 1 млн токенов
- Окно контекста
- 1M
- Макс. выход
- 64K
Характеристики
- Вход
- Текст, изображение
- Выход
- Текст
Об этой модели
Hy4 flash is the cost-efficient tier of Tencent Hunyuan's Hy4 family, with roughly a quarter of the flagship's parameters for lower latency and cost. It accepts text and image input, has a context window of about 1M tokens, and supports reasoning, tool calling and structured output. It targets code assistance, agent workflows and high-volume tasks where Hy4's full depth is not needed.
Попробовать модель
Песочница
Введите 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-flash",
"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 flash через SandBase?
Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "tencent/hy4-flash" на Chat Completions API (/v1/chat/completions) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.
Сколько стоит Tencent Hy4 flash?
$0.07 за 1 млн входных токенов и $0.28 за 1 млн выходных токенов, списывается за каждый запрос с баланса SandBase. Скидки, если доступны, указаны в ценах на этой странице.
Каково контекстное окно Tencent Hy4 flash?
1M токенов контекста и до 64K выходных токенов на ответ.
Какие возможности поддерживает Tencent Hy4 flash?
Tencent Hy4 flash поддерживает зрение (вход изображений), рассуждение, вызов функций, структурированный вывод. Полный список см. выше в разделе Specifications.
Нужен ли мне отдельный аккаунт Tencent?
Нет. Один API key SandBase и один баланс дают вам доступ к Tencent Hy4 flash и другим моделям в каталоге; отдельно регистрироваться в Tencent не нужно.
