Models / OpenAI

GPT-4.1 mini

$0.4/Mtok in

OpenAI's April 2025 small model with a million-token window, still running inside a lot of production agents. Keep it as your baseline and test newer models against it on the same key.

Playground

Try it in the browser

Playground$0.4 in / $1.6 out per 1M tokens

Facts

At a glance

Availability

Live

Pricing

$0.4 / M input · $1.6 / M output

Endpoint

Chat Completions

/v1/chat/completions

Context window

1,047.576k tokens

API

Call it from code

import OpenAI from "openai"

const client = new OpenAI({
  baseURL: "https://api.companyfabric.com/v1",
  apiKey: process.env.COMPANYFABRIC_API_KEY,
})

const res = await client.chat.completions.create({
  model: "openai/gpt-4.1-mini",
  max_tokens: 1024,
  temperature: 0.7,
  messages: [{ role: "user", content: "Say hello from the fabric." }],
})

console.log(res.choices[0].message.content)

FAQ

Frequently asked questions

How much does GPT-4.1 mini cost?

$0.4 / M input · $1.6 / M output. The exact cost of each call is shown before you run it and metered to your prepaid balance, no subscription required.

Why use GPT-4.1 mini on CompanyFabric instead of going direct?

One key and one balance across every model in the library, at pricing at parity with or below the direct API. Switching models is a one-line change.

Is GPT-4.1 mini available through the OpenAI SDK?

Yes, point any OpenAI SDK at api.companyfabric.com/v1 and set model to "openai/gpt-4.1-mini".

Variants

Same family

Explore

Related model APIs

One key. Every model. Exact prices.

Run GPT-4.1 mini with free starter credits. Free starter credits included, no subscription required.