deCloud
MA CHAIN · 20260131
← All models

Nex AGI: Nex-N2-Pro

nex-agi/nex-n2-pro

Nex-N2-Pro is an agentic mixture-of-experts model from Nex AGI, with 17B active parameters out of 397B total. Built on the Qwen3.5 architecture, it accepts text and image input and produces...

Context
262K
Input MA / 1M
0.15
Output MA / 1M
0.6

Billing follows the provider's own reported cost rather than the catalogue price — cached input is cheaper, and reasoning tokens bill as output. Your usage page is the record of what you actually paid.

Capabilities

ChatReasoningVisionTools

Try it

One free message per account, no deposit needed. The reply is length-capped — it's a taste, not a quota.

Connect a wallet and sign in to use your free try.

Connect a wallet

Call it

Every model goes through the same endpoint — just use this page's ID as model.

curl https://macdecloud.com/v1/chat/completions \
  -H "Authorization: Bearer dcld-sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"nex-agi/nex-n2-pro","messages":[{"role":"user","content":"Hello"}]}'

Streaming

Add "stream": true for token-by-token output over standard SSE.

curl -N https://macdecloud.com/v1/chat/completions \
  -H "Authorization: Bearer dcld-sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"nex-agi/nex-n2-pro","stream":true,"messages":[{"role":"user","content":"hi"}]}'

Reasoning tokens are billed

This is a reasoning model: it produces a thinking pass before answering, and those tokens are billed as output — often far more of them than the answer itself. Two consequences. Too small a max_tokens gets consumed during reasoning and returns finish_reason: "length" with a null content, which looks like a failure but is just an exhausted budget (2000+ is a safer floor). And cost runs well above a non-reasoning model at the same headline price.

Function calling

This model supports tools. Replies may carry tool_calls; run them and append the results as role: "tool" messages, then call again.

{
  "model": "nex-agi/nex-n2-pro",
  "messages": [{ "role": "user", "content": "What's the weather in Paris?" }],
  "tools": [{
    "type": "function",
    "function": {
      "name": "get_weather",
      "parameters": {
        "type": "object",
        "properties": { "city": { "type": "string" } },
        "required": ["city"]
      }
    }
  }]
}

Image input

Make content an array mixing text and image_url parts. The image can be a public URL or a data: base64 payload.

{
  "model": "nex-agi/nex-n2-pro",
  "messages": [{
    "role": "user",
    "content": [
      { "type": "text", "text": "What is in this image?" },
      { "type": "image_url", "image_url": { "url": "https://example.com/photo.jpg" } }
    ]
  }]
}
Use it from Claude Code / Cursor / opencode →