⚠️
View Alternatives →Model No Longer Available
This model has been delisted from the API. This page is preserved for reference purposes only.
U
gpt-4.1-mini-2024-05-14
8k ContextTextPopular
gpt-4.1-mini-2024-05-14 - compact and efficient. versatile general-purpose AI.
Technical Specifications
Context Window
8K
Max Output
4,096 tokens
Knowledge Domain
Chat, Text
Provider
Unknown
Quick Start Guide
example.tsTypeScript
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: "<YOUR_OKROUTER_KEY>",
});
async function main() {
const completion = await openai.chat.completions.create({
model: "gpt-4.1-mini-2024-05-14",
messages: [
{ role: "user", content: "Hello! What can you do?" }
],
});
console.log(completion.choices[0].message);
}
main();Getting started with gpt-4.1-mini-2024-05-14 is easy. Since OkRouter is fully compatible with the OpenAI SDK, you can use existing libraries to access this model immediately. gpt-4.1-mini-2024-05-14 is fully compatible with the OpenAI Chat Completions API. distinctive features include Standard context handling and Text support.