by OpenAIReleased Jul 18, 2024
openai/gpt-4o-miniGPT-4o mini is OpenAI's newest model after GPT-4 Omni, supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable...
| Billed for | You pay |
|---|---|
| Input tokens | $0.18 / 1M |
| Output tokens | $0.72 / 1M |
| Cached input, read | $0.09 / 1M |
import OpenAI from "openai";const ai = new OpenAI({ baseURL: "https://relayfor.si/api/v1", apiKey: process.env.RELAYFOR_ROUTER_KEY,});const reply = await ai.chat.completions.create({ model: "openai/gpt-4o-mini", messages: [{ role: "user", content: "Welcome the 1,000th holder in one line." }],});$0.18 per million input tokens and $0.72 per million output tokens, paid from the token's AI credit. A call of 2,000 tokens in and 500 out costs about $0.0007.
Make a router key for one of your tokens on the dashboard, point any OpenAI or Anthropic SDK at https://relayfor.si/api/v1 and send the model id openai/gpt-4o-mini. The token's AI credit pays for each call.
Up to 128,000 tokens of context, and up to 16,384 tokens in one answer.
No. The RFS Router passes each call through and keeps only its token counts and cost, for the token's usage page.
| Provider | Answered, 24 h |
|---|---|
| Azure | 100% |
| OpenAI | 99.9% |