New

    DeepSeek V4.1 Flash 1017 is now available on Inference.net

    GoogleMultimodal Model

    Gemini 2.5 Flash Lite

    The fastest, cheapest model in the Gemini 2.5 line. Flash Lite is built for latency-sensitive, high-throughput work — classification, translation, routing — while keeping the full 1M-token multimodal context.

    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: "gemini-2.5-flash-lite",
      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);
    }
    Prompt caching
    1. No special request field is needed. Keep the prompt prefix stable and byte-identical across calls.
    2. As a practical target, use roughly 9,000 tokens in the stable prefix; this is not a guaranteed provider minimum.
    3. Check usage.prompt_tokens_details.cached_tokens in the response to confirm cache reads.

    Start building with Gemini 2.5 Flash Lite today

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