openai/o4-mini
Veröffentlichungsdatum: 2025-04-17
200,000 context · $1.10/M input tokens · $4.40/M output tokens
OpenAI o4-mini is a compact reasoning model in the o-series, optimized for fast, cost-efficient performance while retaining strong multimodal and agentic capabilities. It supports tool use and demonstrates competitive reasoning...
Pay-per-Use
Keine Vorabkosten, zahlen Sie nur, was Sie nutzen
Verwenden Sie die folgenden Codebeispiele zur Integration mit unserer API:
import OpenAI from 'openai';
if (!process.env.WAVESPEED_API_KEY) throw new Error('Set WAVESPEED_API_KEY');
const client = new OpenAI({
apiKey: process.env.WAVESPEED_API_KEY,
baseURL: 'https://llm.wavespeed.ai/v1',
timeout: 120_000,
maxRetries: 2,
});
try {
const response = await client.chat.completions.create({
model: 'openai/o4-mini',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0]?.message?.content ?? '');
} catch (error) {
console.error('LLM request failed:', error);
process.exitCode = 1;
}import OpenAI from 'openai';
if (!process.env.WAVESPEED_API_KEY) throw new Error('Set WAVESPEED_API_KEY');
const client = new OpenAI({
apiKey: process.env.WAVESPEED_API_KEY,
baseURL: 'https://llm.wavespeed.ai/v1',
timeout: 120_000,
maxRetries: 2,
});
try {
const response = await client.chat.completions.create({
model: 'openai/o4-mini',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0]?.message?.content ?? '');
} catch (error) {
console.error('LLM request failed:', error);
process.exitCode = 1;
}openai o4-mini
| Specification | Value |
|---|---|
| Provider | Openai |
| Model Type | Large Language Model (LLM) |
| Architecture | N/A |
| Context Window | 200000 tokens |
| Max Output | 100000 tokens |
| Input | Text |
| Output | Text |
| Vision | Supported |
| Function Calling | Supported |
| Token Type | Cost per Million Tokens |
|---|---|
| Input | $1.2 |
| Output | $4.8 |
Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: openai/o4-mini
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://llm.wavespeed.ai/v1"
)
response = client.chat.completions.create(
model="openai/o4-mini",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)
curl https://llm.wavespeed.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "openai/o4-mini",
"messages": [{"role": "user", "content": "Hello!"}]
}'
openai/o4-mini
OpenAI o4-mini is a compact reasoning model in the o-series, optimized for fast, cost-efficient performance while retaining strong multimodal and agentic capabilities. It supports tool use and demonstrates competitive reasoning...
Eingabe
$1.1 /M
Ausgabe
$4.4 /M
Kontext
200K
Max. Ausgabe
100K
Vision
Unterstützt
Tool-Nutzung
Unterstützt
Zugriff auf o4 Mini über unsere einheitliche API — OpenAI-kompatibel, keine Kaltstarts, transparente Preise.
Preise auf WaveSpeedAI: $1.10 pro Million Input-Tokens und $4.40 pro Million Output-Tokens. Prompt-Caching und Batch-Verarbeitung werden separat berechnet und reduzieren die effektiven Kosten bei langen, sich wiederholenden Workloads.
o4 Mini unterstützt bis zu 200K Kontext-Tokens und bis zu 100K Output-Tokens pro Anfrage.
WaveSpeedAI stellt o4 Mini unter https://llm.wavespeed.ai/v1 über die OpenAI-kompatible Chat-Completions-Schnittstelle bereit. Bei den meisten OpenAI-SDK-Clients reichen Base-URL und API-Schlüssel; optionale Felder hängen vom Modell ab.
Melden Sie sich bei WaveSpeedAI an, erstellen Sie unter Access Keys einen API-Schlüssel und senden Sie eine Anfrage mit der oben gezeigten Modell-ID an https://llm.wavespeed.ai/v1/chat/completions. Verfügbarkeit, Fähigkeiten und Preise finden Sie im aktuellen Modellkatalog.