Back to Models
gpt-4o-mini-2024-07-18
openai/gpt-4o-mini-2024-07-18
OpenAI
Chat
Description
gpt-4o-mini-2024-07-18 by OpenAI. This model supports chat capabilities.
Specifications
Pricing
- Input Cost:
- $0.5000/100K tokens
- Output Cost:
- $2.0000/100K tokens
Usage Example
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.yourproxy.com/v1",
apiKey: process.env.PROXY_KEY,
});
const completion = await client.chat.completions.create({
model: "openai/gpt-4o-mini-2024-07-18",
messages: [{ role: "user", content: "Hello!" }],
});