New

    Introducing AutoEvals: Find the right model for your task

    OpenAIMultimodal Model

    GPT-4o Mini

    The cost-efficient GPT-4o tier that made high-volume LLM pipelines affordable. Text and vision input, function calling, and structured outputs over a 128K context — ideal for chatbots, extraction, and bulk processing.

    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-4o-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-4o Mini today

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