> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hunyuan 3

> Tencent's Hunyuan 3 flagship. 256K context, reasoning, tool use.

## Overview

Tencent's Hunyuan 3 flagship. 256K context, reasoning, tool use.

## Specs

| Field | Value |
| - | - |
| Model ID | `hy3` |
| Best for | General reasoning and agentic work |
| Context window | 262,144 |
| Max output tokens | 8K |
| Input modalities | Text |
| Output modalities | Text |
| Tool calling | Yes |
| Structured outputs | Yes |
| Prompt caching | No |
| Vision | No |
| Reasoning | Yes |
| Speed | Medium |
| Cost band | Cheap |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$0.108 |
| Output | \$0.4455 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.chat.completions.create(
    model="hy3",
    messages=[{"role": "user", "content": "..."}],
    tools=[...],  # function calling supported
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=chat&tools=true&quality_tier=frontier-open"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.