OpenAIMultimodal Model

    GPT-4.1

    OpenAI's dependable non-reasoning workhorse, tuned for instruction following and coding, with a 1M-token context window. No thinking tokens means predictable latency and cost — a solid default for production text and vision workloads.

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

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