Model API

GPT-4o mini API

OpenAI's small, fast, cheap multimodal model. The default choice for routine chat, structured output, and short coding tasks.

Model ID

gpt-4o-mini

Provider

openai

Capability

chat

Status

Available

Pricing and limits

tokens in

$0.15 / 1M input tokens

tokens out

$0.60 / 1M output tokens

Context length
128,000
Max output
16,384
Release date
2024-07
Knowledge cutoff
2023-10

Use this model

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.AIDUCT_API_KEY,
  baseURL: "https://api.aiduct.ai/v1",
});

const response = await client.chat.completions.create({
  model: "gpt-4o-mini",
  messages: [{ role: "user", content: "Say hello in one sentence." }],
});

Supported parameters

messagestemperaturetop_pmax_tokensstreamstoptoolstool_choiceresponse_formatuser
This model page is backed by the live Aiduct model catalog. Long-form generated notes are not available for this slug yet, but the model ID, provider, pricing rows, and supported parameters above are still crawlable.