---
title: "Hy4 API pricing"
canonical: https://uplinkswitch.ai/models/hy4
generated: 2026-11-16T01:11:13.099Z
source: https://api.uplinkswitch.com/v1/catalog
base_url: https://api.uplinkswitch.com/v1
---

# Hy4 API pricing

Hy4 API at $1.155/M input and $3.465/M output tokens. 1,048,576-token context window. Works with the OpenAI SDK.

## Price per million tokens (USD)

| Tokens | Tencent list price | UplinkSwitch | Under list |
| --- | --- | --- | --- |
| Input | — | $1.155 | — |
| Cached input | — | $0.0583 | — |
| Output | — | $3.465 | — |

## Hy4 vs Hy3 price (USD per million tokens)

| Tokens | Hy3 | Hy4 | Change |
| --- | --- | --- | --- |
| Input | $0.1063 (list $0.139) | $1.155 | +987% |
| Cached input | $0.0263 (list $0.035) | $0.0583 | +122% |
| Output | $0.44 (list $0.556) | $3.465 | +688% |

## Model

- Model id: `hy4`
- Formats: OpenAI SDK
- Base URL: https://api.uplinkswitch.com/v1
- Context window: 1,048,576 tokens
- Max output: 65,536 tokens
- Input: text and image
- Daily real-model check: Steady since Nov 7 (https://uplinkswitch.ai/proof#hy4)

## Hy4 API key

1. Create a key in the console at uplinkswitch.ai/console. Credit is prepaid from $10 with no subscription, and the key works at once.
2. Point your SDK or tool at https://api.uplinkswitch.com/v1, for example with OPENAI_BASE_URL, and send the key as the bearer token.
3. Send hy4 as the model. The same key calls every other model in the catalog.

## Request

### Python · OpenAI SDK

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.uplinkswitch.com/v1",
    api_key="sk-uplink-live-...",
)

completion = client.chat.completions.create(
    model="hy4",
    messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)
```

### TypeScript · OpenAI SDK

```typescript
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://api.uplinkswitch.com/v1',
  apiKey: 'sk-uplink-live-...',
});

const completion = await client.chat.completions.create({
  model: 'hy4',
  messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);
```

### curl

```bash
curl https://api.uplinkswitch.com/v1/chat/completions \
  -H "authorization: Bearer sk-uplink-live-..." \
  -H "content-type: application/json" \
  -d '{"model":"hy4","messages":[{"role":"user","content":"Hello"}]}'
```

## Questions

### What is Hy4?

Hy4 is a model from Tencent, with a 1,048,576-token context window, taking text and image input. Through UplinkSwitch it answers the OpenAI SDK on one key as hy4.

### How much does the Hy4 API cost?

$1.155 per million input tokens and $3.465 per million output tokens, with cached input at $0.0583.

### Is Hy4 free?

It is pay as you go: prepaid credit from $10, with no subscription or monthly fee, billed per token. A 1,000-token prompt with a 500-token reply costs about $0.0029.

### What is the Hy4 context window?

Hy4 has a 1,048,576-token context window, with up to 65,536 output tokens per request. It takes text and image input.

### What is the Hy4 model id?

hy4. Send it as the model through the OpenAI SDK with base URL https://api.uplinkswitch.com/v1.

### How do I get a Hy4 API key?

Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. The same key calls Hy4 and every other model in the catalog; send it as the bearer token with base URL https://api.uplinkswitch.com/v1.

### Is it the real Hy4?

Every day each model gets the same test prompt, and the results are public on /proof. Hy4's latest result: Steady since Nov 7.

### How does Hy4 pricing compare with Hy3?

Per million tokens here, Hy4 is $1.155 input and $3.465 output; Hy3 is $0.1063 and $0.44. One key calls both, so switching is a change of model id.

## Related

- Cursor setup: https://uplinkswitch.ai/guides/cursor
- Cline setup: https://uplinkswitch.ai/guides/cline
- Roo Code setup: https://uplinkswitch.ai/guides/roo-code
- Kilo Code setup: https://uplinkswitch.ai/guides/kilo-code
- SDKs setup: https://uplinkswitch.ai/guides/sdks
- Every model and price: https://uplinkswitch.ai/llms-full.txt
- Machine catalog: https://uplinkswitch.ai/ai-catalog.json
