import requests r = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "nex-agi/nex-n2.5-mini", "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": "nex-agi/nex-n2.5-mini", "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":"nex-agi/nex-n2.5-mini","messages":[{"role":"user","content":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
Cached input is billed at a tenth of the fresh-input rate, which matters for agent loops that re-send the same long prefix every turn.
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Nex-N2.5-Mini This page | Multimodal reasoning | |||
| Agentic workflows and structured output |
It accepts text and image input. It produces text output.
Yes. The model is multimodal and can take image input for visually grounded tasks.
Yes. The model supports function calling, including tool use.
Yes. It supports structured outputs via a JSON schema response format.
It runs in three reasoning modes: non-thinking, adaptive thinking by default, and high thinking.
It is targeted at computer use, web browsing, and agentic coding. The model is described as exploring codebases, making multi-file edits, running commands, and checking results through visual feedback.
Yes. It is described as the smallest model in Nex AGI's Nex-N2.5 family.
The documented input types are text and image, and the output type is text.
It is listed as a multimodal agentic model with reasoning, streaming, structured output, and vision capabilities.