LLM ReferenceLLM Reference
Fireworks AI

ERNIE 4.5 on Fireworks AI

ERNIE · Baidu AI

Serverless

Last refreshed 2026-05-09. 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 case
Input / 1M
$1.20
Output / 1M
$1.20
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export FIREWORKS_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["FIREWORKS_API_KEY"],
Model ID
ernie-4.5

Request 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

ProviderInput (per 1M)Output (per 1M)
Fireworks AI$1.20$1.20
Baidu Qianfan$0.59$2.36

Pricing

TypePrice (per 1M)
Input tokens$1.20
Output tokens$1.20

Capabilities

No model capability flags are currently sourced.

About ERNIE 4.5

Baidu ERNIE 4.5 model for Chinese language understanding and generation.

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 8,000 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's open source status is unknown in the seed data.

Get Started

Model Specs

Released2025-03-16
Context8K
ArchitectureDecoder Only