DeepSeekText Generation Model

    DeepSeek V4 Flash (0731)

    The July 2026 refresh of DeepSeek V4 Flash, served as a distinct pinned version. Same efficient Mixture-of-Experts design with a 1M-token context, plus low, high, and max reasoning modes for dialing test-time compute per request.

    import OpenAI from "openai";
    
    const openai = new OpenAI({
      baseURL: "https://api.inference.net/v1",
      apiKey: "<YOUR_API_KEY>",
    });
    
    const completion = await openai.chat.completions.create({
      model: "deepseek-v4-flash-0731",
      messages: [
        {
          role: "user",
          content: "What is the meaning of life?"
        }
      ],
      stream: true,
    });
    
    for await (const chunk of completion) {
      process.stdout.write(chunk.choices[0]?.delta.content as string);
    }

    Start building with DeepSeek V4 Flash (0731) today

    Serverless, OpenAI-compatible, and billed per token. No commitments.