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.
Get Started
Model Specs
Released2025-03-16
Context8k
ArchitectureDecoder Only