@ai-api-tool/platform-siliconflow
v1.0.0
Published
硅基流动平台适配器 - 多模型聚合平台,价格极低
Maintainers
Readme
@ai-api-tool/platform-siliconflow
硅基流动 平台适配器 - 多模型聚合平台,价格极低
支持的模型
| 模型 ID | 名称 | 特点 |
|---------|------|------|
| Qwen/Qwen2.5-7B-Instruct | Qwen2.5 7B | 性价比高,适合日常使用 |
| Qwen/Qwen2.5-32B-Instruct | Qwen2.5 32B | 能力更强 |
| Pro/Qwen/Qwen2.5-72B-Instruct | Qwen2.5 72B | 综合能力最强 |
| deepseek-ai/DeepSeek-V3 | DeepSeek V3 | 代码能力极强,64K上下文 |
定价
| 项目 | 价格 | |------|------| | 输入 | ¥0.001 / 1K tokens | | 输出 | ¥0.001 / 1K tokens | | 新用户额度 | 1000万 tokens 免费 |
安装
npm install @ai-api-tool/platform-siliconflow使用
import { loadPlugin } from '@ai-api-tool/sdk'
const plugin = await loadPlugin('@ai-api-tool/platform-siliconflow')
// 调用 Qwen 模型
const result = await plugin.execute({
model: 'Qwen/Qwen2.5-7B-Instruct',
messages: [{ role: 'user', content: '你好' }],
})
// 调用 DeepSeek 模型
const result2 = await plugin.execute({
model: 'deepseek-ai/DeepSeek-V3',
messages: [{ role: 'user', content: '写一个快速排序' }],
})配置
API Key
- 访问 硅基流动控制台
- 获取 API Key
- 在应用中配置密钥
环境变量
export SILICONFLOW_API_KEY="your-api-key"模型能力评分
Qwen2.5 72B
| 能力 | 分数 | |------|------| | 翻译 | 94 | | 写作 | 94 | | 中文 | 96 | | 分析 | 93 | | 代码 | 92 | | 数学 | 90 | | 创意 | 90 |
DeepSeek V3
| 能力 | 分数 | |------|------| | 代码 | 96 | | 数学 | 94 | | 分析 | 92 | | 写作 | 90 | | 翻译 | 89 | | 中文 | 93 | | 创意 | 85 |
特性
- ✅ 流式输出
- ✅ 函数调用
- ✅ 多模态
- ✅ 64K 超长上下文
链接
许可证
MIT
