> ## Documentation Index
> Fetch the complete documentation index at: https://veniceai-feat-models-redesign.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DeepSeek V4 Flash 0731 API

> DeepSeek V4 Flash 0731 API on Venice: 1M context, $0.17 input and $0.35 output per 1M tokens. Private, with zero data retention.

export const HubMount = ({view, children, ...props}) => {
  const [hub, setHub] = useState(null);
  const [failed, setFailed] = useState(false);
  useEffect(() => {
    let alive = true;
    const w = window;
    if (!w.__veniceModelHub) {
      const urls = w.location.hostname === 'localhost' ? ['http://localhost:3333/data/model-hub.bundle.json', '/data/model-hub.bundle.json'] : ['/data/model-hub.bundle.json'];
      const load = i => fetch(urls[i], {
        cache: 'no-cache'
      }).then(res => {
        if (!res.ok) throw new Error(`bundle ${res.status}`);
        return res.json();
      }).catch(err => i + 1 < urls.length ? load(i + 1) : Promise.reject(err));
      const Frag = <></>.type;
      const h = (type, props, ...kids) => {
        const T = type;
        const {key, ...rest} = props || ({});
        if (!kids.length) return <T key={key} {...rest} />;
        if (kids.length === 1) return <T key={key} {...rest}>{kids[0]}</T>;
        return <T key={key} {...rest}>{kids.map((kid, i) => <Frag key={i}>{kid}</Frag>)}</T>;
      };
      w.__veniceModelHub = load(0).then(bundle => new Function(`return (${bundle.code})`)()({
        h,
        Fragment: Frag,
        useState,
        useEffect,
        useRef,
        useMemo,
        useCallback
      }));
    }
    w.__veniceModelHub.then(instance => {
      if (alive) setHub(instance);
    }).catch(() => {
      w.__veniceModelHub = null;
      if (alive) setFailed(true);
    });
    return () => {
      alive = false;
    };
  }, []);
  const View = hub ? hub[view] : null;
  if (View) return <View {...props}>{children}</View>;
  if (failed) {
    return <div className="vx-mount is-failed">
        <p className="vx-mount-note">The interactive model catalog could not load. The full data is below.</p>
        {children}
      </div>;
  }
  return <div className="vx-mount" aria-busy="true">
      <div className="vx-mount-skeleton" aria-hidden="true"><span /><span /><span /></div>
      <div className="vx-mount-source">{children}</div>
    </div>;
};

<HubMount view="ModelPage" data={{"family":{"slug":"deepseek-v4-flash-0731","name":"DeepSeek V4 Flash 0731","modality":"text","task":"chat","provider":"deepseek","description":"DeepSeek V4 Flash is an efficiency-optimized 284B-parameter Mixture-of-Experts model with 13B active parameters and a 1M-token context window. Tuned for fast inference and high-throughput workloads while maintaining strong reasoning and coding performance.","primary":"deepseek-v4-flash-0731","variants":["deepseek-v4-flash-0731","deepseek-v4-flash-0731-fast"],"created":1785456000,"updated":1786233600,"privacy":["private"],"openWeights":true},"models":[{"id":"deepseek-v4-flash-0731","name":"DeepSeek V4 Flash 0731","type":"text","modality":"text","task":"chat","variant":"standard","provider":"deepseek","created":1785456000,"description":"DeepSeek V4 Flash is an efficiency-optimized 284B-parameter Mixture-of-Experts model with 13B active parameters and a 1M-token context window. Tuned for fast inference and high-throughput workloads while maintaining strong reasoning and coding performance.","source":"https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731","privacy":"private","openWeights":true,"text":{"context":1000000,"maxOutput":32768,"reasoning":{"supported":true,"effort":["none","low","high","max"],"defaultEffort":"high"},"caps":{"tools":true,"structured":true,"webSearch":true,"code":true}},"pricing":{"input":0.175,"output":0.35,"cacheRead":0.035,"blended":0.21875},"headline":{"value":0.21875,"unit":"per 1M tokens","basis":"blended"},"endpoints":[{"id":"chat","method":"POST","path":"/chat/completions","name":"Chat Completions","status":"stable","recommended":true},{"id":"responses","method":"POST","path":"/responses","name":"Responses","status":"alpha"}],"family":"deepseek-v4-flash-0731"},{"id":"deepseek-v4-flash-0731-fast","name":"DeepSeek V4 Flash 0731 Fast","type":"text","modality":"text","task":"chat","variant":"fast","provider":"deepseek","created":1786233600,"description":"DeepSeek V4 Flash is an efficiency-optimized 284B-parameter Mixture-of-Experts model with 13B active parameters and a 1M-token context window. Tuned for fast inference and high-throughput workloads while maintaining strong reasoning and coding performance.","source":"https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731","privacy":"private","openWeights":true,"text":{"context":1000000,"maxOutput":32768,"reasoning":{"supported":true,"effort":["none","low","high","max"],"defaultEffort":"high"},"caps":{"tools":true,"structured":true,"webSearch":true,"code":true}},"pricing":{"input":0.35,"output":0.7,"cacheRead":0.0875,"blended":0.4375},"headline":{"value":0.4375,"unit":"per 1M tokens","basis":"blended"},"endpoints":[{"id":"chat","method":"POST","path":"/chat/completions","name":"Chat Completions","status":"stable","recommended":true},{"id":"responses","method":"POST","path":"/responses","name":"Responses","status":"alpha"}],"family":"deepseek-v4-flash-0731"}],"related":{"similar":[{"slug":"mimo-v2-6-flash","name":"MiMo-V2.6-Flash","provider":"xiaomi","modality":"text","privacy":["private"],"created":1790553600,"headline":{"value":0.21875,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"qwen-3-8-flash","name":"Qwen 3.8 Flash","provider":"alibaba","modality":"text","privacy":["anonymized"],"created":1788998400,"headline":{"value":0.2275,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"glm-5-3-flash","name":"GLM 5.3 Flash","provider":"zai","modality":"text","privacy":["private","e2ee"],"created":1787270400,"headline":{"value":0.2375,"unit":"per 1M tokens","basis":"blended"},"variants":2},{"slug":"gpt-6-luna","name":"GPT-6 Luna","provider":"openai","modality":"text","privacy":["anonymized"],"created":1790035200,"headline":{"value":0.25,"unit":"per 1M tokens","basis":"blended"},"variants":1}],"versions":[{"slug":"deepseek-v4-1-flash","name":"DeepSeek V4.1 Flash","provider":"deepseek","modality":"text","privacy":["private"],"created":1788998400,"headline":{"value":0.65625,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"deepseek-v4-flash-0423","name":"DeepSeek V4 Flash 0423","provider":"deepseek","modality":"text","privacy":["private","e2ee"],"created":1776988800,"headline":{"value":0.17225,"unit":"per 1M tokens","basis":"blended"},"variants":2}]},"providers":{"deepseek":{"slug":"deepseek","name":"DeepSeek","logo":"/images/icons/models/deepseek.svg"},"xiaomi":{"slug":"xiaomi","name":"Xiaomi","logo":"/images/icons/models/text.svg"},"alibaba":{"slug":"alibaba","name":"Alibaba Qwen","logo":"/images/icons/models/qwen.svg"},"zai":{"slug":"zai","name":"Z.ai","logo":"/images/icons/models/Zhipu.svg"},"openai":{"slug":"openai","name":"OpenAI","logo":"/images/icons/models/openai.svg"}},"faq":[{"q":"How much does the DeepSeek V4 Flash 0731 API cost?","a":"$0.17 per 1M input tokens and $0.35 per 1M output tokens, with cached input at $0.035 per 1M. The Fast variant costs $0.35 input and $0.70 output. Prices are in USD and can be paid in DIEM at parity."},{"q":"What is the DeepSeek V4 Flash 0731 model ID?","a":"Use `deepseek-v4-flash-0731` as the `model` parameter. Other variants: `deepseek-v4-flash-0731-fast` (Fast)."},{"q":"Is the DeepSeek V4 Flash 0731 API private?","a":"DeepSeek V4 Flash 0731 is private: requests run on infrastructure Venice controls with zero data retention, and prompts and outputs are never stored or used for training."},{"q":"What is the context window of DeepSeek V4 Flash 0731?","a":"1M tokens of context, with up to 32K output tokens per response."},{"q":"What does DeepSeek V4 Flash 0731 support?","a":"DeepSeek V4 Flash 0731 supports function calling, structured outputs, reasoning, web search and prompt caching. Reasoning effort is adjustable with `reasoning_effort`: none, low, high and max (default high)."},{"q":"Which endpoint does the DeepSeek V4 Flash 0731 API use?","a":"Call `POST /chat/completions`. `/responses` (Alpha) is also supported."}]}} />

<div className="vx-static">
  <Accordion title="Plain-text specification">
    # DeepSeek V4 Flash 0731 API

    DeepSeek V4 Flash 0731 is a large language model by DeepSeek, available on the Venice API as `deepseek-v4-flash-0731`. It runs privately, with zero data retention.

    DeepSeek V4 Flash is an efficiency-optimized 284B-parameter Mixture-of-Experts model with 13B active parameters and a 1M-token context window. Tuned for fast inference and high-throughput workloads while maintaining strong reasoning and coding performance.

    ## DeepSeek V4 Flash 0731 API pricing

    | Model ID | Variant | Privacy | Price |
    | - | - | - | - |
    | `deepseek-v4-flash-0731` | Standard | Private | $0.17 input / $0.35 output per 1M tokens |
    | `deepseek-v4-flash-0731-fast` | Fast | Private | $0.35 input / $0.70 output per 1M tokens |

    ## DeepSeek V4 Flash 0731 specifications

    | Spec | Value |
    | - | - |
    | Provider | DeepSeek |
    | Released | Jul 31, 2026 |
    | Privacy | Private |
    | Open weights | Yes |
    | Context window | 1M tokens |
    | Max output | 32K tokens |
    | Reasoning effort | none, low, high, max |

    ## How to use the DeepSeek V4 Flash 0731 API

    Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "deepseek-v4-flash-0731"` and your API key.

    ```bash theme={null}
    curl https://api.venice.ai/api/v1/chat/completions \
      -H "Authorization: Bearer $VENICE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "deepseek-v4-flash-0731",
        "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
        "reasoning_effort": "high"
      }'
    ```

    ## DeepSeek V4 Flash 0731 API FAQ

    ### How much does the DeepSeek V4 Flash 0731 API cost?

    $0.17 per 1M input tokens and $0.35 per 1M output tokens, with cached input at $0.035 per 1M. The Fast variant costs $0.35 input and \$0.70 output. Prices are in USD and can be paid in DIEM at parity.

    ### What is the DeepSeek V4 Flash 0731 model ID?

    Use `deepseek-v4-flash-0731` as the `model` parameter. Other variants: `deepseek-v4-flash-0731-fast` (Fast).

    ### Is the DeepSeek V4 Flash 0731 API private?

    DeepSeek V4 Flash 0731 is private: requests run on infrastructure Venice controls with zero data retention, and prompts and outputs are never stored or used for training.

    ### What is the context window of DeepSeek V4 Flash 0731?

    1M tokens of context, with up to 32K output tokens per response.

    ### What does DeepSeek V4 Flash 0731 support?

    DeepSeek V4 Flash 0731 supports function calling, structured outputs, reasoning, web search and prompt caching. Reasoning effort is adjustable with `reasoning_effort`: none, low, high and max (default high).

    ### Which endpoint does the DeepSeek V4 Flash 0731 API use?

    Call `POST /chat/completions`. `/responses` (Alpha) is also supported.

    ## Related models

    * [DeepSeek V4.1 Flash API](/models/deepseek-v4-1-flash): $0.38 input / $1.50 output per 1M tokens
    * [DeepSeek V4 Flash 0423 API](/models/deepseek-v4-flash-0423): $0.14 input / $0.28 output per 1M tokens
    * [MiMo-V2.6-Flash API](/models/mimo-v2-6-flash): $0.17 input / $0.35 output per 1M tokens
    * [Qwen 3.8 Flash API](/models/qwen-3-8-flash): $0.14 input / $0.49 output per 1M tokens
    * [GLM 5.3 Flash API](/models/glm-5-3-flash): $0.15 input / $0.50 output per 1M tokens
    * [GPT-6 Luna API](/models/gpt-6-luna): $0.13 input / $0.63 output per 1M tokens
  </Accordion>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.