Baltor Get started

Models

DeepSeek V4 Flash 0731

By DeepSeek. 304.2 billion parameters, a context window of 1,310,720 tokens and the licence mit.

Facts

Released
2026-07-31 the day the repository was first published on Hugging Face Hugging Face, read
Licence
mit the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
304.2 billion counted from the safetensors weight files Hugging Face, read
Active parameters
33.6 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
Unknown
Context window
  • 1,048,576 tokens the maximum position embeddings in the model configuration model configuration, read
  • 1,310,720 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 943,718 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • Yes OpenRouter lists tools among the supported parameters OpenRouter, read
Structured output
  • Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
Reasoning controls
  • Yes OpenRouter lists reasoning controls, with the efforts max, high, low OpenRouter, read
Inputs and outputs
text in, text out Hugging Face, read
Good for
  • Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
Nvidia direct0 USD0 USD1,000,000 older than 30 days; check the providermodels.dev, read
Relace through OpenRouter0.030 USD0.320 USD1,048,576OpenRouter endpoints, read
Sail Research through OpenRouter0.038 USD0.550 USD1,048,576OpenRouter endpoints, read
StreamLake through OpenRouter0.053 USD0.158 USD1,024,000OpenRouter endpoints, read
Deep Infra direct0.060 USD0.180 USD1,048,576 older than 30 days; check the providermodels.dev, read
DeepInfra through OpenRouter0.060 USD0.180 USD1,048,576OpenRouter endpoints, read
Wafer through OpenRouter0.080 USD0.350 USD1,048,576OpenRouter endpoints, read
Inceptron through OpenRouter0.083 USD0.414 USD1,048,576OpenRouter endpoints, read
Reka through OpenRouter0.088 USD0.528 USD262,144OpenRouter endpoints, read
Makora through OpenRouter0.090 USD0.195 USD1,000,000OpenRouter endpoints, read
DigitalOcean through OpenRouter0.119 USD0.238 USD1,048,576OpenRouter endpoints, read
BaseTen through OpenRouter0.130 USD0.260 USD1,048,576OpenRouter endpoints, read
BaseTen through OpenRouter0.130 USD0.260 USD1,048,576OpenRouter endpoints, read
Baseten direct0.130 USD0.260 USD1,048,576 older than 30 days; check the providermodels.dev, read
RunInfra direct0.130 USD0.270 USD1,048,576 older than 30 days; check the providermodels.dev, read
CoreWeave direct0.130 USD0.280 USD262,144 older than 30 days; check the providermodels.dev, read
CoreWeave through OpenRouter0.130 USD0.280 USD262,144OpenRouter endpoints, read
Inceptron direct0.130 USD0.280 USD1,048,576 older than 30 days; check the providermodels.dev, read
OpenReason direct0.137 USD0.274 USD1,000,000 older than 30 days; check the providermodels.dev, read
Cohere through OpenRouter0.140 USD0.280 USD1,048,576OpenRouter endpoints, read
Hugging Face direct0.140 USD0.280 USD1,048,576 older than 30 days; check the providermodels.dev, read
Nebius through OpenRouter0.140 USD0.280 USD1,024,000OpenRouter endpoints, read
Nebius Token Factory direct0.140 USD0.280 USD1,024,000 older than 30 days; check the providermodels.dev, read
Parasail through OpenRouter0.140 USD0.280 USD1,048,576OpenRouter endpoints, read
Together through OpenRouter0.140 USD0.280 USD1,048,576OpenRouter endpoints, read
Together AI direct0.140 USD0.280 USD1,048,576 older than 30 days; check the providermodels.dev, read
OpenInference through OpenRouter0.140 USD0.700 USD1,048,576OpenRouter endpoints, read
Morph through OpenRouter0.142 USD0.400 USD1,048,576OpenRouter endpoints, read
Venice through OpenRouter0.175 USD0.350 USD1,000,000OpenRouter endpoints, read
Alibaba through OpenRouter0.176 USD0.528 USD1,000,000OpenRouter endpoints, read
Mancer 2 through OpenRouter0.200 USD0.600 USD1,048,576OpenRouter endpoints, read
Fireworks through OpenRouter0.220 USD0.660 USD1,048,576OpenRouter endpoints, read
SiliconFlow direct0.220 USD0.660 USD1,000,000 older than 30 days; check the providermodels.dev, read
SiliconFlow through OpenRouter0.220 USD0.660 USD1,048,576OpenRouter endpoints, read
GMICloud through OpenRouter0.286 USD0.858 USD1,048,575OpenRouter endpoints, read
Phala through OpenRouter0.308 USD0.924 USD1,048,576OpenRouter endpoints, read
NextBit through OpenRouter0.352 USD1.06 USD1,048,576OpenRouter endpoints, read
Novita through OpenRouter0.409 USD1.23 USD1,048,576OpenRouter endpoints, read
AtlasCloud through OpenRouter0.440 USD1.32 USD1,048,576OpenRouter endpoints, read
Baidu through OpenRouter0.440 USD1.32 USD1,048,576OpenRouter endpoints, read
Cloudflare through OpenRouter0.440 USD1.32 USD1,310,720OpenRouter endpoints, read

Run it on your own hardware

Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
Q2_K90.9 GiB96.6 GiB98.6 GiB
MXFP4145 GiB154 GiB156 GiB
Q4_K153 GiB162 GiB164 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/huihui-ai/Huihui-DeepSeek-V4-Flash-0731-abliterated-GGUF:Q2_K
  • LM Studio
    lms get huihui-ai/Huihui-DeepSeek-V4-Flash-0731-abliterated-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf huihui-ai/Huihui-DeepSeek-V4-Flash-0731-abliterated-GGUF:Q2_K --jinja
  • vLLM
    vllm serve deepseek-ai/DeepSeek-V4-Flash-0731
  • SGLang
    sglang serve --model-path deepseek-ai/DeepSeek-V4-Flash-0731 --port 30000

Use it from your harness

Set up for Baseten with the model deepseek-ai/DeepSeek-V4-Flash-0731. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "baseten": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Baseten",
      "options": {
        "baseURL": "https://inference.baseten.co/v1",
        "apiKey": "{env:BASETEN_API_KEY}"
      },
      "models": {
        "deepseek-ai/DeepSeek-V4-Flash-0731": {
          "name": "DeepSeek V4 Flash 0731",
          "limit": {
            "context": 1310720,
            "output": 943718
          }
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "baseten": {
      "baseUrl": "https://inference.baseten.co/v1",
      "api": "openai-completions",
      "apiKey": "$BASETEN_API_KEY",
      "models": [
        {
          "id": "deepseek-ai/DeepSeek-V4-Flash-0731"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Baseten documents no Responses address. A gateway that offers one can sit in between.

  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Claude Code sends Anthropic Messages requests, and Baseten documents no such address. A gateway that translates to that API can sit in between.

  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Other ways to reach it

Published results

These are results other people published. Baltor did not run them and does not rank models by them.