# Nex-N2.6

Canonical page: https://agentsky.dev/models/nex-agi/nex-n2.6
JSON record: https://gateway.agentsky.dev/v1/models/nex-agi/nex-n2.6

Nex-N2.6 is a text and image-input model by Nex Agi, available through the AgentSky API as nex-agi/nex-n2.6 at $0.13926 per million input tokens and $0.4642 per million output tokens, with a 262K context window.

Nex-N2.6 is an agentic model from Nex AGI, built on [GLM-5.3-Flash](https://huggingface.co/zai-org/GLM-5.3-Flash-BF16) with about 321B parameters.

## Facts

- **Model id:** `nex-agi/nex-n2.6`
- **Maker:** Nex Agi
- **Input modalities:** Text, Image
- **Context:** 262K
- **Max output tokens:** 235,929
- **Aliases:** `nex-agi/nex-n2.6`, `nex-n2.6`

## Pricing

USD per million tokens on the default plan. Signed-in pages show your own plan's price; every response carries the cost of that call in `usage.cost`.

| Meter | Per 1M tokens |
|---|---|
| Input | $0.13926 |
| Output | $0.4642 |
| Cache read | $0.027852 |
| Cache write | $0.13926 |

## Use it

Anthropic wire base URL: `https://gateway.agentsky.dev`. OpenAI wire base URL: `https://gateway.agentsky.dev/v1`. Authenticate with an AgentSky API key (`ast_…`) and pass the model id.

### OpenAI SDK

```js
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://gateway.agentsky.dev/v1",
  apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});

const completion = await client.chat.completions.create({
  model: "nex-agi/nex-n2.6",
  messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(completion.usage.cost); // USD, in the response
```

### Codex

```bash
export OPENAI_BASE_URL="https://gateway.agentsky.dev/v1"
export OPENAI_API_KEY="$AGENTSKY_API_KEY"

codex --model nex-agi/nex-n2.6
```

### OpenCode

```js
// opencode.json — then switch models any time with /models
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "agentsky": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "AgentSky",
      "options": {
        "baseURL": "https://gateway.agentsky.dev/v1",
        "apiKey": "{env:AGENTSKY_API_KEY}"
      },
      "models": { "nex-agi/nex-n2.6": {} }
    }
  }
}
```

## Questions

### What is Nex-N2.6?

Nex-N2.6 is a model from Nex Agi. Nex-N2.6 is an agentic model from Nex AGI, built on [GLM-5.3-Flash](https://huggingface.co/zai-org/GLM-5.3-Flash-BF16) with about 321B parameters.

### How much does Nex-N2.6 cost?

$0.13926 / $0.4642 per million tokens at the prices shown, for input and output respectively. The exact price of every call comes back in the response as usage.cost, so you never have to compute it.

### What is the context length of Nex-N2.6?

262K tokens, and it writes up to 236K tokens in one reply. These are the limits listed for this model in the current AgentSky catalog.

### Which clients can call Nex-N2.6?

Anything that speaks the OpenAI-compatible request format. Point the client's base URL at the gateway, use an AgentSky key, and pass nex-agi/nex-n2.6 as the model.

### How do I name Nex-N2.6 in a request?

The gateway accepts nex-agi/nex-n2.6, nex-n2.6. Any of them resolves to the same model, so an existing integration usually needs no change to its model string.

### Can Nex-N2.6 read images?

Yes. Its listed input types are text, image. Include the image with your request; image input does not imply image generation.

### What output can Nex-N2.6 produce?

The listed output types are text. This model returns text. Producing image, video or audio files requires a suitable tool or another model; it is not included in text generation.

### How should I plan a long prompt for Nex-N2.6?

Plan your instructions, conversation history and source material around the 262K-token context limit, leaving room for the response. The listed response ceiling is 236K tokens. A larger window lets you supply more relevant material; it does not make unrelated content useful.

### What would 10,000 input tokens and 2,000 output tokens cost with Nex-N2.6?

At the displayed input and output rates, the model-token subtotal is $0.002321. This example assumes uncached input and excludes additional pricing categories, tool calls and agent runtime. Actual usage determines the final charge.

### How is cached input priced for Nex-N2.6?

The catalog lists $0.027852 per million cache-read tokens. Cache writes are listed at $0.13926 per million tokens. Repeating a prompt does not by itself guarantee a cache hit; only usage reported as cached receives that rate.

### Does the Nex-N2.6 token price cover an entire agent task?

No. The model price covers the model usage described above. A task can also incur tool and runtime charges, and several model calls may be needed to complete it. Compare total task usage when evaluating cost.

### How do I use Nex-N2.6 on AgentSky?

This model is listed for API use. Use the model ID nex-agi/nex-n2.6 with a supported gateway operation. The agent composer is not offered here because the current agent model menu has no compatible match.
