---
title: Nex AGI: Nex N2 Mini API | Text Generation | ModelsLab
description: Build with Nex AGI: Nex N2 Mini API by Nex Agi. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/nex-agi/nex-agi-nex-n2-mini.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/nex-agi/nex-agi-nex-n2-mini.md
type: product
component: Playground/LLM/Index
generated_at: 2026-07-11T21:07:08.349451Z
---

Nex AGI: Nex-N2-Mini
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nex-agi-nex-n2-mini/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/nex-agi/nex-agi-nex-n2-mini.md)

Nex AGI: Nex-N2-Mini
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Nex AGI: Nex-N2-Mini

nex-agi nex-agi-nex-n2-mini

Copy model ID

PricingInput $0.025 / 1M tokens

Output $0.10 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[#### open\_router/Z.ai: GLM 4.6

z-ai-glm-4.6

From $1.08/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/z-ai-glm-4.6)

[#### open\_router/Qwen: Qwen3 VL 32B Instruct

qwen-qwen3-vl-32b-instruct

From $0.26/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-vl-32b-instruct)

[#### open\_router/OpenAI: GPT-5.6 Terra Pro

openai-gpt-5.6-terra-pro

From $8.75/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.6-terra-pro)

[#### open\_router/Mistral: Mistral Medium 3

mistralai-mistral-medium-3

From $1.20/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-mistral-medium-3)

[#### open\_router/OpenAI: gpt-oss-safeguard-20b

openai-gpt-oss-safeguard-20b

From $0.19/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-oss-safeguard-20b)

[#### openai/GPT 5.1

gpt5.1

From $5.63/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt5.1)

[#### open\_router/Qwen: Qwen3 Coder Next

qwen-qwen3-coder-next

From $0.46/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-coder-next)

[#### open\_router/Anthropic: Claude Sonnet 4.6

anthropic-claude-sonnet-4.6

From $9.00/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-sonnet-4.6)

[#### open\_router/DeepSeek: R1

deepseek-deepseek-r1

From $1.60/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-r1)

[#### open\_router/StepFun: Step 3.7 Flash

stepfun-step-3.7-flash

From $0.68/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/stepfun-step-3.7-flash)

[#### open\_router/MoonshotAI: Kimi K2.5

moonshotai-kimi-k2.5

From $1.20/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/moonshotai-kimi-k2.5)

[#### meta/Meta Llama 3.1 8B Instruct Turbo

meta-llama-Meta-Llama-3.1-8B-Instruct-Turbo

From $0.18/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-Meta-Llama-3.1-8B-Instruct-Turbo)

[#### openai/GPT-5.1-Codex-Max

gpt-5.1-codex-max

From $5.63/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/gpt-5.1-codex-max)

[#### open\_router/Qwen: Qwen3.6 27B

qwen-qwen3.6-27b

From $1.34/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.6-27b)

[#### open\_router/Qwen: Qwen3 Max

qwen-qwen3-max

From $2.34/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-max)

[#### open\_router/Google: Nano Banana Pro (Gemini 3 Pro Image)

google-gemini-3-pro-image

From $7.00/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-3-pro-image)

[#### open\_router/Tencent: Hunyuan A13B Instruct

tencent-hunyuan-a13b-instruct

From $0.35/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/tencent-hunyuan-a13b-instruct)

[#### open\_router/MiniMax: MiniMax M2.5

minimax-minimax-m2.5

From $0.53/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/minimax-minimax-m2.5)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llm&provider=open-source-models)

[MU

Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/uncensored-chat)

About Nex AGI: Nex-N2-Mini
---

Nex-N2-Mini is an open-source agentic mixture-of-experts model from Nex AGI, the smaller sibling in the Nex-N2 series. It accepts text and image input and is built for coding, tool use,...

### Technical Specifications

Model IDnex-agi-nex-n2-mini

CategoryLLM Models

TaskText Generation

Price$0.0625 per million tokens

AddedJuly 6, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Nex AGI: Nex-N2-Mini into your application with a single API call. Get your API key from the [pricing page](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "nex-agi-nex-n2-mini",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Nex AGI: Nex-N2-Mini API costs $0.062500 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Nex Agi](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

Nex AGI: Nex-N2-Mini FAQ
---

### What is Nex AGI: Nex-N2-Mini?

Nex-N2-Mini is an open-source agentic mixture-of-experts model from Nex AGI, the smaller sibling in the Nex-N2 series. It accepts text and image input and is built for coding, tool use,...

### How do I use the Nex AGI: Nex-N2-Mini API?

You can integrate Nex AGI: Nex-N2-Mini into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "nex-agi-nex-n2-mini" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Nex AGI: Nex-N2-Mini cost?

Nex AGI: Nex-N2-Mini costs $0.062500 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Nex AGI: Nex-N2-Mini model ID?

The model ID for Nex AGI: Nex-N2-Mini is "nex-agi-nex-n2-mini". Use this ID in your API requests to specify this model.

### Does Nex AGI: Nex-N2-Mini have a free tier?

Yes, ModelsLab offers a free tier that lets you try Nex AGI: Nex-N2-Mini and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-07-12*