# Tencent Hy4 Preview

> Tencent Hy4 preview reasoning model served by TokenHub for coding agents, complex tool calls, and multi-step agentic workflows.

Agent resources: the index of everything machine-readable is https://www.ohmygpt.com/llms.txt; the integration skill (endpoints, auth, SDK and coding-tool setup) is https://www.ohmygpt.com/skill.md.

- Model ID: `tencent/hy4-preview`
- Live status and providers as JSON, no key needed: https://api.ohmygpt.com/v1/models/tencent/hy4-preview
- Released: 2026-08-28
- Context: 1M tokens
- Max output: 64K tokens
- Input: text; output: text

## Prices (USD)

| Item | Price | Unit |
| --- | --- | --- |
| Input | $0.876 | per 1M tokens |
| Output | $2.628 | per 1M tokens |
| Cache read | $0.0438 | per 1M tokens |

## Providers

Without a prefix each request goes to the best-priced healthy provider. To pin one, send the model as `<provider>:tencent/hy4-preview`.

| Provider | Pinned model ID | Location | Input | Output | Trains on your data |
| --- | --- | --- | --- | --- | --- |
| Tencent Cloud TokenHub | `tencent:tencent/hy4-preview` | China | $0.876 | $2.628 | no |

## Endpoints

| API | Request | model |
| --- | --- | --- |
| OpenAI Chat | POST https://api.ohmygpt.com/v1/chat/completions | `tencent/hy4-preview` |
| OpenAI Responses | POST https://api.ohmygpt.com/v1/responses | `tencent/hy4-preview` |
| Anthropic Messages | POST https://api.ohmygpt.com/v1/messages | `tencent/hy4-preview` |
| Google Gemini | POST https://api.ohmygpt.com/v1/models/tencent/hy4-preview:generateContent | `tencent/hy4-preview` |

## Example

```bash
curl https://api.ohmygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tencent/hy4-preview",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'
```

Web page: https://www.ohmygpt.com/models/tencent/hy4-preview
