BaiduPaidOperational
ERNIE Speed 128K
API model name: ERNIE-Speed-128K
ERNIE Speed 128K is Baidu's chat model, served on the Api.Airforce unified API. It is priced at $0.21 per million input tokens and $0.40 per million output tokens. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Specifications
- Provider
- Baidu
- Type
- chat model
What is ERNIE Speed 128K used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
ERNIE Speed 128K vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| ERNIE Speed 128K | — | — | $0.21 | $0.40 |
| ERNIE Functions 8K | — | — | $0.33 | $0.64 |
| ERNIE Lite 8K | — | — | $0.17 | $0.35 |
| ERNIE Speed 8K | — | — | $0.21 | $0.40 |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
ERNIE Functions 8KBaidu · $0.33 / 1MERNIE Lite 8KBaidu · $0.17 / 1MERNIE Speed 8KBaidu · $0.21 / 1MERNIE Tiny 8KBaidu · $0.07 / 1MQwen3.7 PlusAlibaba · $0.46 / 1MQwen3.8 27bAlibaba · $0.37 / 1MQwen3.8 MaxAlibaba · $2.31 / 1MQwq 72b PreviewAlibaba · $48.75 / 1MQwq PlusAlibaba · $0.70 / 1MRnj 1Essential AI · FreeSensenova 6.7 Flash LiteSenseTime · $5.20 / 1MStep 3.5 FlashStepFun · $0.11 / 1M
ERNIE Speed 128K — frequently asked questions
- How much does ERNIE Speed 128K cost?
- ERNIE Speed 128K is billed pay-as-you-go at $0.21 per 1M input tokens and $0.40 per 1M output tokens. There is no subscription — you only pay for what you use.
- What can ERNIE Speed 128K do?
- ERNIE Speed 128K is Baidu's chat model, accessible through the Api.Airforce API.
- Is ERNIE Speed 128K free to use?
- ERNIE Speed 128K is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use ERNIE Speed 128K via the API?
- ERNIE Speed 128K is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID ERNIE-Speed-128K with your Api.Airforce API key.
- Who makes ERNIE Speed 128K?
- ERNIE Speed 128K is Baidu's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Loading live metrics…
Loading live metrics…
Loading live metrics…
Use ERNIE Speed 128K via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass ERNIE-Speed-128K as the model.
cURL
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ERNIE-Speed-128K",
"messages": [{ "role": "user", "content": "Hello!" }]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="ERNIE-Speed-128K",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "ERNIE-Speed-128K",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);