API des Modells deepseek-ai/DeepSeek-V4-Flash:deepinfra bei Hugging Face Inference, $0.09 / $0.18 pro Million Tokens, Kontext 1.048.576 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.
Im Katalog testen und bewerten
deepseek-ai/DeepSeek-V4-Flash served by DeepInfra through the Hugging Face router (fp8 quantization).
- Typ
- Modell
- Anbieter
- Hugging Face Inference
- Hosting
- DeepInfra
- Modell-ID
deepseek-ai/DeepSeek-V4-Flash:deepinfra- Preis
- Kostenpflichtig
- Preis Eingabe / Ausgabe
- $0.09 / $0.18 pro Million Tokens
- Zugang ohne Schlüssel
- Nein
- Schlüsselvariable
HF_TOKEN- Basis-URL (OpenAI-kompatibel)
https://router.huggingface.co/v1- Kontext
- 1.048.576 Tokens
- Eingaben
- Text
- Funktionen
- Tool-Aufrufe, JSON-Ausgabe
- Antwortzeit
- Erstes Token 504 ms · 101 Tokens/s · Verfügbarkeit 100 %
- Entwicklerbewertung
- Noch nicht bewertet
- Dokumentation
- https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash
Codebeispiele
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:deepinfra","messages":[{"role":"user","content":"Hallo, stell dich in einem Satz vor."}]}'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:deepinfra",
messages=[{"role": "user", "content": "Hallo, stell dich in einem Satz vor."}],
)
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:deepinfra',
messages: [{ role: 'user', content: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)
Beliebte Suchen
Häufige Fragen
Ist die API von DeepSeek-V4-Flash · DeepInfra kostenlos?
Nein: DeepSeek-V4-Flash · DeepInfra ist eine kostenpflichtige API ($0.09 / $0.18 pro Million Tokens).
Wie rufe ich DeepSeek-V4-Flash · DeepInfra aus meinem Code auf?
DeepSeek-V4-Flash · DeepInfra bietet eine OpenAI-kompatible API unter https://router.huggingface.co/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: deepseek-ai/DeepSeek-V4-Flash:deepinfra. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.
Wie groß ist das Kontextfenster von DeepSeek-V4-Flash · DeepInfra?
DeepSeek-V4-Flash · DeepInfra verarbeitet bis zu 1.048.576 Tokens Kontext (Nachricht und Verlauf).
Welche Alternativen gibt es zu DeepSeek-V4-Flash · DeepInfra?
Ähnliche APIs im Katalog: 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.
Alternativen
- DeepSeek-V4.1-Flash-1017 · Cloudflare — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · Cohere — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · CoreWeave — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · Crusoe — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · DeepInfra — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · DigitalOcean — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · Doubleword — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · Fireworks — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · Inceptron — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · InferenceNet — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · Krea — Kostenpflichtig
- DeepSeek-V4.1-Flash-1017 · Makora — Kostenpflichtig