Back to Models
B
ERNIE 4.5 300B
Baidu/
baidu/ernie-4.5-300b-a47bChatCode
Latest flagship ERNIE model
Input Price
$0.28
per 1M tokens
Output Price
$1.1
per 1M tokens
Context
128K
tokens
Modalities
text
Model ID
baidu/ernie-4.5-300b-a47bPricing Breakdown
| Direction | Per 1K tokens | Per 1M tokens |
|---|---|---|
| Input | $0.00028000 | $0.2800 |
| Output | $0.00110000 | $1.10 |
Quick Start
from openai import OpenAI
client = OpenAI(
api_key="dg-your-api-key",
base_url="https://api.doggiegateway.com/v1"
)
response = client.chat.completions.create(
model="baidu/ernie-4.5-300b-a47b",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)How It Works
Doggie Gateway routes your request to Baidu's API through OpenRouter. You get the best available pricing and automatic fallback if a provider is unavailable.
Pay-per-use pricing
No monthly fees
OpenAI-compatible API
Ready to use ERNIE 4.5 300B?
Create an account, get your API key, and start making API calls in under a minute.
