import requests r = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "openai/o4-mini-deep-research", "messages": [ { "role": "user", "content": "Hello!" } ] }, ) print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", { method: "POST", headers: { Authorization: `Bearer ${process.env.AIMLAPI_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "model": "openai/o4-mini-deep-research", "messages": [ { "role": "user", "content": "Hello!" } ] }), }); console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \ -H "Authorization: Bearer $AIMLAPI_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"openai/o4-mini-deep-research","messages":[{"role":"user","content":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
o4 Mini Deep Research This page | Reasoning + agents | |||
| Reasoning + agents | ||||
| Balanced coding + agents | ||||
| Long-context, multimodal & agentic workflows | ||||
| Reasoning + agents |
o4 Mini Deep Research has a 200,000 tokens context window and can return up to 100,000 tokens.
o4 Mini Deep Research takes image, text as input and returns text.
Use openai/o4-mini-deep-research as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
o4 Mini Deep Research is priced at input $2.6 / 1M, output $10.4 / 1M.
Yes, o4 Mini Deep Research can stream responses as they are generated.
Yes, o4 Mini Deep Research accepts image input alongside text.
o4 Mini Deep Research was built by OpenAI.
Yes, o4 Mini Deep Research includes web search as a supported feature.