New

    Introducing AutoEvals: Find the right model for your task

    OpenAIMultimodal Model

    GPT-4.1 Mini

    A mid-size GPT-4.1 that matches or beats GPT-4o on many tasks at a fraction of the cost and latency, with the same 1M-token context. A strong balance point for chat, extraction, and tool calling at scale.

    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: "gpt-4.1-mini",
      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 GPT-4.1 Mini today

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