# Moondream 3.1 9B A2B

> Moondream 3.1 9B A2B is Moondream's mixture-of-experts vision-language model with 9B total and 2B active parameters. It handles object detection, pointing, OCR and structured output, with a 32,768-token context window and up to 28,672 output tokens.

**ID**: `moondream/moondream3.1-9b-a2b`  
**Creator**: moondream  
**Category**: multimodal  
**Context**: 33K tokens  
**Pricing**: $0.30 / $1.00 per 1M · billed by your provider (BYOK)  
**Released**: 2026-03-10  
**Web page**: https://anyrouter.dev/model/moondream/moondream3.1-9b-a2b

**Input modalities**: text, image  
**Output modalities**: text  

**Capabilities**: vision, streaming, ocr

**Aliases**: `moondream/moondream3.1-9B-A2B`

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "moondream/moondream3.1-9b-a2b",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| openrouter-byok | $0.30/M (list) | $2.50/M (list) |
| aimlapi-byok | $0.32/M (list) | $2.65/M (list) |
| infron-byok | $0.30/M (list) | $2.50/M (list) |
| nano-gpt-byok | $0.30/M (list) | $1.00/M (list) |
| fluence-byok | $0.33/M (list) | $2.78/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Source

- Upstream docs: https://developers.cloudflare.com/ai/models/@cf/moondream/moondream3.1-9B-A2B/
