Hugging Face Inference 提供的 deepseek-ai/DeepSeek-V4-Flash-0731:parasail 模型 API,$0.14 / $0.28 每百万 token,上下文 1,048,576 token。提供 curl、Python、JavaScript 示例及在线测试。
deepseek-ai/DeepSeek-V4-Flash-0731 served by Parasail through the Hugging Face router (fp8 quantization).
- 类型
- 模型
- 服务商
- Hugging Face Inference
- 托管方
- Parasail
- 模型 ID
deepseek-ai/DeepSeek-V4-Flash-0731:parasail- 价格
- 付费
- 输入 / 输出价格
- $0.14 / $0.28 每百万 token
- 无需密钥访问
- 否
- 密钥环境变量
HF_TOKEN- Base URL(兼容 OpenAI)
https://router.huggingface.co/v1- 上下文
- 1,048,576 token
- 输入
- 文本
- 功能
- 工具调用, JSON 输出
- 响应时间
- 首个 token 472 ms · 79 token/秒 · 可用率 100%
- 开发者评分
- 暂无评分
- 文档
- https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731
代码示例
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"deepseek-ai/DeepSeek-V4-Flash-0731:parasail","messages":[{"role":"user","content":"你好,请用一句话介绍你自己。"}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V4-Flash-0731:parasail",
messages=[{"role": "user", "content": "你好,请用一句话介绍你自己。"}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
model: 'deepseek-ai/DeepSeek-V4-Flash-0731:parasail',
messages: [{ role: 'user', content: '你好,请用一句话介绍你自己。' }],
})
console.log(r.choices[0].message.content)
热门搜索
常见问题
DeepSeek-V4-Flash-0731 · Parasail API 免费吗?
否:DeepSeek-V4-Flash-0731 · Parasail 是付费 API($0.14 / $0.28 每百万 token)。
如何在代码中调用 DeepSeek-V4-Flash-0731 · Parasail?
DeepSeek-V4-Flash-0731 · Parasail 在 https://router.huggingface.co/v1 提供兼容 OpenAI 的 API:使用任意 OpenAI SDK(Python、JavaScript 等)并设置该基础 URL 即可。 模型标识:deepseek-ai/DeepSeek-V4-Flash-0731:parasail。 开发者工具箱中提供了即用代码(流式输出、JSON、重试)。
DeepSeek-V4-Flash-0731 · Parasail 的上下文窗口有多大?
DeepSeek-V4-Flash-0731 · Parasail 最多支持 1,048,576 个令牌的上下文(提示词和历史记录)。
DeepSeek-V4-Flash-0731 · Parasail 有哪些替代方案?
目录中的类似 API:DeepSeek-V4.1-Flash-1017 · Cloudflare, DeepSeek-V4.1-Flash-1017 · Cohere, DeepSeek-V4.1-Flash-1017 · CoreWeave, DeepSeek-V4.1-Flash-1017 · Crusoe, DeepSeek-V4.1-Flash-1017 · DeepInfra。
替代方案
- DeepSeek-V4.1-Flash-1017 · Cloudflare — 付费
- DeepSeek-V4.1-Flash-1017 · Cohere — 付费
- DeepSeek-V4.1-Flash-1017 · CoreWeave — 付费
- DeepSeek-V4.1-Flash-1017 · Crusoe — 付费
- DeepSeek-V4.1-Flash-1017 · DeepInfra — 付费
- DeepSeek-V4.1-Flash-1017 · DigitalOcean — 付费
- DeepSeek-V4.1-Flash-1017 · Doubleword — 付费
- DeepSeek-V4.1-Flash-1017 · Fireworks — 付费
- DeepSeek-V4.1-Flash-1017 · Inceptron — 付费
- DeepSeek-V4.1-Flash-1017 · InferenceNet — 付费
- DeepSeek-V4.1-Flash-1017 · Krea — 付费
- DeepSeek-V4.1-Flash-1017 · Makora — 付费