# Baidu: ERNIE 4.5 300B A47B

Baidu's ERNIE 4.5 300B A47B is a text mixture-of-experts model with 300B total parameters, of which 47B are active for each token. It is a post-trained general-purpose language model for understanding and generating text, released under the Apache 2.0 license.

- **Model id:** `opencheap/ernie-4.5-300b-a47b`
- **Price per 1M tokens:** $0.32 input / $1.28 output

## Providers

1 provider. Prices are per 1M tokens. As of 2026-12-04 12:08 UTC.

| Provider | Input price | Cache price | Output price |
| --- | --- | --- | --- |
| AiHubMix · quantization unknown | $0.32 | $0.32* | $1.28 |

\* No cache discount from this provider: cached tokens cost the input price.

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **AiHubMix:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/ernie-4.5-300b-a47b#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/ernie-4.5-300b-a47b`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/ernie-4.5-300b-a47b", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/ernie-4.5-300b-a47b",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/ernie-4.5-300b-a47b",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About ERNIE 4.5 300B A47B

ERNIE 4.5 300B A47B costs from $0.32 per 1M input tokens and $1.28 per 1M output tokens on OpenCheap. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0045, and 1,000 such requests about $4.48. Prices as of 2026-12-04 12:06 UTC.

One provider serves ERNIE 4.5 300B A47B on OpenCheap today. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`.

ERNIE 4.5 300B A47B is one of [14 Baidu models](https://opencheap.si/models/lab/baidu) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the ERNIE 4.5 300B A47B API cost per 1M tokens?

ERNIE 4.5 300B A47B costs from $0.32 per 1M input tokens and $1.28 per 1M output tokens on OpenCheap. Prices as of 2026-12-04 12:06 UTC.

### What does one ERNIE 4.5 300B A47B request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.0045, and 1,000 such requests about $4.48. Every answer reports its own cost in usage.cost.

### Which providers serve ERNIE 4.5 300B A47B?

One provider serves ERNIE 4.5 300B A47B on OpenCheap today. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### How do I call the ERNIE 4.5 300B A47B API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/ernie-4.5-300b-a47b. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Baidu

- [ERNIE 4.5](https://opencheap.si/models/ernie-4.5) (`ernie-4.5`): $0.068 / $0.27 per 1M · 160K context
- [ERNIE 4.5 0.3b](https://opencheap.si/models/ernie-4.5-0.3b) (`ernie-4.5-0.3b`): $0.014 / $0.054 per 1M
- [ERNIE 4.5 Turbo 128K Preview](https://opencheap.si/models/ernie-4.5-turbo-128k-preview) (`ernie-4.5-turbo-128k-preview`): $0.11 / $0.43 per 1M
- [ERNIE 4.5 Turbo](https://opencheap.si/models/ernie-4.5-turbo-latest) (`ernie-4.5-turbo-latest`): $0.11 / $0.44 per 1M · 135K context
- [ERNIE 4.5 Turbo VL](https://opencheap.si/models/ernie-4.5-turbo-vl) (`ernie-4.5-turbo-vl`): $0.40 / $1.20 per 1M · 139K context
- [ERNIE 5.0](https://opencheap.si/models/ernie-5.0) (`ernie-5.0`): $0.82 / $3.29 per 1M · 119K context
- [ERNIE 5.0 Thinking Exp](https://opencheap.si/models/ernie-5.0-thinking-exp) (`ernie-5.0-thinking-exp`): $0.82 / $3.29 per 1M · 119K context
- [ERNIE 5.0 Thinking Preview](https://opencheap.si/models/ernie-5.0-thinking-preview) (`ernie-5.0-thinking-preview`): $0.82 / $3.29 per 1M · 183K context

[All 14 Baidu models](https://opencheap.si/models/lab/baidu)

## Similar models

- [Kimi K3](https://opencheap.si/models/kimi-k3): Moonshot · 1M context · $1.57 / $0.94 per 1M · [Compare with ERNIE 4.5 300B A47B](https://opencheap.si/compare/ernie-4.5-300b-a47b-vs-kimi-k3)
- [Kimi K3.1 Pro](https://opencheap.si/models/kimi-k3.1-pro): Moonshot · 1M context · $0.33 / $1.67 per 1M · [Compare with ERNIE 4.5 300B A47B](https://opencheap.si/compare/ernie-4.5-300b-a47b-vs-kimi-k3.1-pro)
- [DeepSeek V4 Pro](https://opencheap.si/models/deepseek-v4-pro): DeepSeek · 1M context · $0.40 / $0.79 per 1M, 33 % cheaper · [Compare with ERNIE 4.5 300B A47B](https://opencheap.si/compare/ernie-4.5-300b-a47b-vs-deepseek-v4-pro)
- [Hy4](https://opencheap.si/models/hy4): Tencent · 1M context · $0.42 / $1.25 per 1M · [Compare with ERNIE 4.5 300B A47B](https://opencheap.si/compare/ernie-4.5-300b-a47b-vs-hy4)
- [GPT-5.6 Luna Pro](https://opencheap.si/models/gpt-5.6-luna-pro): OpenAI · 1M context · $0.21 / $1.26 per 1M · [Compare with ERNIE 4.5 300B A47B](https://opencheap.si/compare/ernie-4.5-300b-a47b-vs-gpt-5.6-luna-pro)
- [GLM 5 Turbo](https://opencheap.si/models/glm-5-turbo): Zhipu · 204K context · $0.36 / $1.20 per 1M · [Compare with ERNIE 4.5 300B A47B](https://opencheap.si/compare/ernie-4.5-300b-a47b-vs-glm-5-turbo)

[Compare ERNIE 4.5 300B A47B with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/ernie-4.5-300b-a47b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
