O

GPT-4o Mini

OpenAI

ChatCodeValue

About

Affordable and efficient small model for fast, focused tasks. Provides a great cost-to-performance ratio for applications that don't require the full capabilities of GPT-4o. Perfect for high-volume workloads, classification, extraction, and simple generation.

Provider

OpenAI

Context Window

128k tokens

Max Output

16,384 tokens

Model ID

openai/gpt-4o-mini

Capabilities

Function callingJSON modeStreamingSystem prompts

API Usage

Drop-in compatible with any OpenAI client library.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.deployai.dev/v1",
  apiKey: process.env.DEPLOYAI_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "openai/gpt-4o-mini",
  messages: [
    { role: "user", content: "Hello, how are you?" }
  ],
});

console.log(completion.choices[0].message.content);

Related Models

View all