Ling-3.1-flash 是蚂蚁集团旗下百灵实验室(inclusionAI)推出的新一代稀疏 MoE大语言模型,具备100万token上下文窗口,总参数5600亿,激活参数250亿。
模型价格
| 输入 /Mt | 输出 /Mt | |
|---|---|---|
| 未缓存 | 缓存读取 | |
| ¥2/Mt | ¥0.4/Mt | ¥6/Mt |
示例代码
1base_url="https://api.ppio.com/openai"
2api_key="<YOUR_API_KEY>"
3
4curl "$base_url/v1/chat/completions" \
5 -H "Content-Type: application/json" \
6 -H "Authorization: Bearer $api_key" \
7 -d @- << 'EOF'
8{
9 "model": "inclusionai/ling-3.1-flash",
10 "messages": [
11
12 {
13 "role": "user",
14 "content": "Hi there!"
15 }
16 ],
17 "response_format": { "type": "text" }
18}
19EOF
20 模型信息
上下文窗口:
1M
最大输出 Token 数:
262.1K
模态:
支持的功能
API 集成指南
Base URL:
https://api.ppio.com/openai
Messages 协议 Base URL:
https://api.ppio.com/anthropic
API 端点:
/v1/chat/completions
模型 ID:
inclusionai/ling-3.1-flash
API Key:
创建并获取您的 API Key常用工具集成