Baidu
Baidu: ERNIE 4.5 21B A3B
A sophisticated text-based Mixture-of-Experts (MoE) model featuring 21B total parameters with 3B activated per token, delivering exceptional multimodal understanding and generation through heterogeneous MoE structures and modality-isolated routing. Supporting an extensive 131K token context length, the model achieves efficient inference via multi-expert parallel collaboration and quantization, while advanced post-training techniques including SFT, DPO, and UPO ensure optimized performance across diverse applications with specialized routing and balancing losses for superior task handling.
OpenRouter 원가 (1M 토큰)
입력$0.070
출력$0.280
합계$0.350
인보이스랩 (월 예상)
입력 0.5M + 출력 0.5M 기준
공급가액₩289
부가세 (10%)₩29
결제 금액₩317
💡 부가세 ₩29 매입공제 가능
모델 정보
기본 정보
| 모델 ID | baidu/ernie-4.5-21b-a3b |
| 제공사 | Baidu |
| 컨텍스트 윈도우 | 120,000 토큰 |
| 모달리티 | text->text |
지원 기능
⚡ Function Calling🌡️ Temperature📏 Max Tokens
API 사용법
Python (OpenAI SDK 호환)
from openai import OpenAI
client = OpenAI(
api_key="your-dream-api-key",
base_url="https://api.invoicedream.co.kr/v1"
)
response = client.chat.completions.create(
model="baidu/ernie-4.5-21b-a3b",
messages=[
{"role": "user", "content": "안녕하세요"}
]
)
print(response.choices[0].message.content)Node.js / TypeScript
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'your-dream-api-key',
baseURL: 'https://api.invoicedream.co.kr/v1'
});
const response = await client.chat.completions.create({
model: 'baidu/ernie-4.5-21b-a3b',
messages: [{ role: 'user', content: '안녕하세요' }]
});
console.log(response.choices[0].message.content);cURL
curl https://api.invoicedream.co.kr/v1/chat/completions \
-H "Authorization: Bearer your-dream-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "baidu/ernie-4.5-21b-a3b",
"messages": [{"role": "user", "content": "안녕하세요"}]
}'💡 Tip: OpenAI SDK를 그대로 사용할 수 있습니다.base_url만 변경하면 됩니다!