DeepSeek v4 Flash 0423
Chat Completions API
deepseek-v4-flash
Chat Completions API
DeepSeek v4 Flash is an efficiency-focused Mixture-of-Experts model from DeepSeek with 284B total parameters and 13B active parameters, supporting a 1M-token context window. It is built for fast inference and high-throughput workloads while preserving strong reasoning and coding capabilities. The model features hybrid attention for efficient long-context processing and offers configurable reasoning modes. It is a strong fit for use cases such as coding assistants, chat applications, and agent workflows where responsiveness and cost efficiency matter.
API-методы и структура запроса
Здесь собран публичный контракт интеграции модели: поддерживаемые API-методы, параметры запросов и примеры вызовов.
Chat Completions API
POST/v1/chat/completionsПример кода
Пример использования модели через API на Python или cURL. Замените значения-заполнители своим API-ключом и ID модели.
Базовый пример запроса. Проверьте разрешения API-ключа. Подробнее см. документацию.
Базовый пример запроса. Проверьте разрешения API-ключа. Подробнее см. документацию.
curl https://api.makura.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{
"model": "deepseek-v4-flash",
"messages": [
{
"role": "user",
"content": "Сколько будет 2 + 2?"
}
]
}'Параметры
Параметры, доступные в API-запросах
Max Completion TokensPresence PenaltyResponse FormatTemperatureTool ChoiceToolsTop PFrequency PenaltyLogit BiasParallel Tool CallsReasoning EffortStopLogprobsPrediction