---
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.com/models/nex-agi/nex-agi-nex-n2-mini.md
canonical: https://modelslab.com/models/nex-agi/nex-agi-nex-n2-mini.md
type: product
component: Playground/LLM/Index
generated_at: 2026-07-06T22:52:14.491979Z
---

Nex AGI: Nex-N2-Mini
---

 [LLMs.txt](https://modelslab.com/models/open_router/nex-agi-nex-n2-mini/llms.txt) [.md](https://modelslab.com/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.com/models?feature=llmaster)

[#### open\_router/OpenAI: GPT-4o

openai-gpt-4o

From $6.25/M tokens](https://modelslab.com/models/open_router/openai-gpt-4o)

[#### open\_router/Mistral: Mixtral 8x22B Instruct

mistralai-mixtral-8x22b-instruct

From $4.00/M tokens](https://modelslab.com/models/open_router/mistralai-mixtral-8x22b-instruct)

[#### meta/Llama 3.1 Nemotron 70B Instruct HF

nvidia-Llama-3.1-Nemotron-70B-Instruct-HF

From $0.88/M tokens](https://modelslab.com/models/meta/nvidia-Llama-3.1-Nemotron-70B-Instruct-HF)

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

minimax-minimax-m2.1

From $0.75/M tokens](https://modelslab.com/models/open_router/minimax-minimax-m2.1)

[#### open\_router/Nous: Hermes 4 70B

nousresearch-hermes-4-70b

From $0.27/M tokens](https://modelslab.com/models/open_router/nousresearch-hermes-4-70b)

[#### together\_ai/MiniMax M2.7 FP4

MiniMaxAI-MiniMax-M2.7

From $0.75/M tokens](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M2.7)

[#### open\_router/Qwen2.5 72B Instruct

qwen-qwen-2.5-72b-instruct

From $0.38/M tokens](https://modelslab.com/models/open_router/qwen-qwen-2.5-72b-instruct)

[#### open\_router/Poolside: Laguna XS.2

poolside-laguna-xs.2

From $0.15/M tokens](https://modelslab.com/models/open_router/poolside-laguna-xs.2)

[#### open\_router/DeepSeek: DeepSeek V3.1 Terminus

deepseek-deepseek-v3.1-terminus

From $0.61/M tokens](https://modelslab.com/models/open_router/deepseek-deepseek-v3.1-terminus)

[#### mistral\_ai/Mistral (7B) Instruct v0.3

mistralai-Mistral-7B-Instruct-v0.3

From $0.20/M tokens](https://modelslab.com/models/mistral_ai/mistralai-Mistral-7B-Instruct-v0.3)

[#### open\_router/Cohere: Command R+ (08-2024)

cohere-command-r-plus-08-2024

From $6.25/M tokens](https://modelslab.com/models/open_router/cohere-command-r-plus-08-2024)

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

anthropic-claude-sonnet-4.6

From $9.00/M tokens](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4.6)

[#### open\_router/TheDrummer: Cydonia 24B V4.1

thedrummer-cydonia-24b-v4.1

From $0.40/M tokens](https://modelslab.com/models/open_router/thedrummer-cydonia-24b-v4.1)

[#### open\_router/Mistral: Ministral 3 14B 2512

mistralai-ministral-14b-2512

From $0.20/M tokens](https://modelslab.com/models/open_router/mistralai-ministral-14b-2512)

[#### together\_ai/Kimi K2.6 Fp4

moonshotai-Kimi-K2.6

From $2.85/M tokens](https://modelslab.com/models/together_ai/moonshotai-Kimi-K2.6)

[#### open\_router/OpenAI: GPT-4o (2024-11-20)

openai-gpt-4o-2024-11-20

From $6.25/M tokens](https://modelslab.com/models/open_router/openai-gpt-4o-2024-11-20)

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

qwen-qwen3-vl-30b-a3b-instruct

From $0.33/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-instruct)

[#### open\_router/Z.ai: GLM 4.7 Flash

z-ai-glm-4.7-flash

From $0.23/M tokens](https://modelslab.com/models/open_router/z-ai-glm-4.7-flash)

Open Source Alternatives
---

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

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU

Popular](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/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.com/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.com/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.com/models?feature=llmaster) [More from Nex Agi](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/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-07*