GPT-4.1 mini
$0.4/Mtok inOpenAI'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
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
GPT-5.5
$5/Mtok inOpenAI
OpenAI's flagship, one key away.
text
GPT-6 Astra
$10/Mtok inOpenAI
OpenAI's GPT-6 flagship, a million-token window one key away.
text
GPT-6 Sol
$2/Mtok inOpenAI
GPT-6 for complex coding and agent work at a fifth of Astra's price, with the same million-token window.
text
GPT-6 Luna
$0.1/Mtok inOpenAI
GPT-6's high-volume tier: the cheapest frontier-family model in the catalog, with a million-token window.
text
Explore
Related model APIs
Claude Sonnet 4.5
$3/Mtok inAnthropic
Frontier-quality text and reasoning through one OpenAI-compatible endpoint.
text
Claude Haiku 4.5
$1/Mtok inAnthropic
Fast, cheap frontier-family model for high-volume tasks.
text
Claude Opus 4.6
$5/Mtok inAnthropic
The frontier tier for the hardest reasoning and agentic work.
text
Gemini 3.7 Flash
$0.75/Mtok inGoogle's current fast model, million-token context.
text
Gemini 3.5 Flash
$1.5/Mtok inThe previous stable Flash, still current for most work.
text
Gemini 3.1 Pro (preview)
PreviewGoogle's newest Pro tier, shipped as a preview.
text
One key. Every model. Exact prices.
Run GPT-4.1 mini with free starter credits. Free starter credits included, no subscription required.