Moondream 3.1
Moondream 3.1 is a vision-language model from Moondream, the successor to Moondream 3 Preview, with 9B total parameters and 2B active (mixture-of-experts).
- Context Window
- 32K
- In
- $0.334per million tokens
- Out
- $2.78per million tokens
moondream
moondream/ moondream3.1-9b-a2bSpecifications
In$0.334
Out$2.78
- Context Window
- 32K
- Modalities
- text
- Price
- $0.334 in · $2.78 out, per million tokens
- Model ID
- moondream/moondream3.1-9b-a2b
Quick start
moondream/moondream3.1-9b-a2b
$0.334 in · $2.78 out, per million tokens
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: 'moondream/moondream3.1-9b-a2b',
messages: [{ role: 'user', content: 'Hello!' }]
})
console.log(response.choices[0].message.content)
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="moondream/moondream3.1-9b-a2b",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
curl https://api.hanzo.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HANZO_API_KEY" \
-d '{
"model": "moondream/moondream3.1-9b-a2b",
"messages": [{"role": "user", "content": "Hello!"}]
}'
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: "moondream/moondream3.1-9b-a2b",
Messages: []openai.ChatCompletionMessage{
{Role: openai.ChatMessageRoleUser, Content: "Hello!"},
},
},
)
fmt.Println(resp.Choices[0].Message.Content)
}
More from moondream
View all moondream models →$8.90Bill a month
The same bill for this mix.
Moondream 3.1$8.9032K
Moondream 3 Preview$8.9032K
Use Moondream 3.1 via Hanzo AI
One API key. Every major model. OpenAI-compatible. Start free.

