# Nex AGI: Nex-N2-Mini — Use via Hanzo AI API > 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 i... Access via Hanzo's OpenAI-compatible API. Context: 262K. Get started free. [Models](https://hanzo.ai/models)/[Nex-AGI](https://hanzo.ai/models/nex-agi)/nex-n2-mini N # Nex AGI: Nex-N2-Mini [Nex-AGI](https://hanzo.ai/models/nex-agi) 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,... text [Get API Key](https://hanzo.ai/signup)[View Docs](https://docs.hanzo.ai)[Try in Chat](https://hanzo.ai/chat) ## Specifications Context Window 262K Modalities text Input $0.030 / M tokens Output $0.120 / M tokens Status available Category third-party Model ID nex-agi/nex-n2-mini ## Quick Start TypeScript ``` import OpenAI from 'openai' const client = new OpenAI({ apiKey: process.env.HANZO_API_KEY, baseURL: 'https://api.hanzo.ai/v1' }) const response = await client.chat.completions.create({ model: 'nex-agi/nex-n2-mini', messages: [{ role: 'user', content: 'Hello!' }] }) console.log(response.choices[0].message.content) ``` Python ``` from openai import OpenAI client = OpenAI( api_key=os.environ["HANZO_API_KEY"], base_url="https://api.hanzo.ai/v1" ) response = client.chat.completions.create( model="nex-agi/nex-n2-mini", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content) ``` cURL ``` curl https://api.hanzo.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HANZO_API_KEY" \ -d '{ "model": "nex-agi/nex-n2-mini", "messages": [{"role": "user", "content": "Hello!"}] }' ``` Go ``` package main import ( "context" "fmt" "os" "github.com/sashabaranov/go-openai" ) func main() { cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY")) cfg.BaseURL = "https://api.hanzo.ai/v1" client := openai.NewClientWithConfig(cfg) resp, _ := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{ Model: "nex-agi/nex-n2-mini", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) } ``` ## More from Nex-AGI [Nex AGI: Nex-N2-Pro262KNex-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...](https://hanzo.ai/models/nex-agi/nex-n2-pro) [View all Nex-AGI models →](https://hanzo.ai/models/nex-agi) ## Use Nex AGI: Nex-N2-Mini via Hanzo AI One API key. Every major model. OpenAI-compatible. Start free. [Get Free API Key](https://hanzo.ai/signup)[Browse All Models](https://hanzo.ai/models)