Last refreshed 2026-06-04. Next refresh: weekly.
Why use ERNIE 4.5 on Fireworks AI?
Fireworks AI offers ERNIE 4.5 with pay-as-you-go pricing at $1.20/1M input tokens. Fireworks AI offers a generative AI platform as a service, focusing on rapid product iteration and cost-efficient AI deployment.
Compare ERNIE 4.5 across 2 providers to find the best fit for your use caseInput / 1M
$1.20
Output / 1M
$1.20
Cache
Not sourced
Batch
Not sourced
Setup recipe
Python + curlInstall
pip install openaiAuth
export FIREWORKS_API_KEY=...Call
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["FIREWORKS_API_KEY"],Model ID
ernie-4.5Request example
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["FIREWORKS_API_KEY"],
base_url="https://api.fireworks.ai/inference/v1"
)
response = client.chat.completions.create(
model="ernie-4.5",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Gotchas
- Fireworks model IDs use "accounts/fireworks/models/{model-name}" format, e.g. "accounts/fireworks/models/llama4-scout-instruct-basic" or "accounts/fireworks/models/deepseek-r1".
- The examples expect FIREWORKS_API_KEY; rename it only if your application config maps the new variable.
Compare ERNIE 4.5 Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Fireworks AI | $1.20 | $1.20 |
| Baidu Qianfan | $0.59 | $2.36 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $1.20 |
| Output tokens | $1.20 |
Capabilities
VisionMultimodal
About ERNIE 4.5
ERNIE 4.5 is Baidu AI's ERNIE model. It offers an 8K-token context window.
FAQ
What does ERNIE 4.5 cost on Fireworks AI?
On Fireworks AI, ERNIE 4.5 costs $1.2 per 1M input tokens and $1.2 per 1M output tokens.
What is the context window for ERNIE 4.5 on Fireworks AI?
ERNIE 4.5 supports a 8k token context window on Fireworks AI.
How does Fireworks AI compare to other ERNIE 4.5 providers?
ERNIE 4.5 is available from 2 providers. The cheapest input pricing is $0.59/1M tokens from Baidu Qianfan.
Who created ERNIE 4.5?
ERNIE 4.5 was created by Baidu AI as part of the ERNIE model family.
Is ERNIE 4.5 open source?
ERNIE 4.5 is not open source; the seed data lists it as proprietary.
Get Started
Model Specs
Released2025-03-16
Context8k
ArchitectureDecoder Only