# Moondream 3.1 9B A2B

> Moondream 3.1 is a fast, efficient 9B mixture-of-experts vision language model (2B active parameters) delivering frontier-level visual reasoning for object detection, pointing, OCR, and structured output. Served through the OpenAI chat-completions surface by translating image + prompt into the Moondream query skill.

**ID**: `moondream/moondream3.1-9b-a2b`  
**Creator**: moondream  
**Category**: multimodal  
**Context**: 33K tokens  
**Pricing**: $0.30 / $2.50 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) |

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/
