New

    Introducing AutoEvals: Find the right model for your task

    OpenAIMultimodal Model

    GPT-4.1 Nano

    OpenAI's fastest, cheapest GPT-4.1 tier. Built for classification, autocomplete, and high-volume extraction where latency and unit cost dominate, while keeping the 1M-token context and image input.

    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-nano",
      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 Nano today

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