API · Models
Text
Llama 3.2 1B
Llama 3.2 1B is Meta's smallest open-source model with a 128K context window, designed for ultra-low-latency and on-device inference.
Context 131.1K·Max out 60K
Quickstart
import { streamText } from 'ai';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
const blackbox = createOpenAICompatible({
name: 'blackbox',
apiKey: process.env.BLACKBOX_API_KEY!,
baseURL: 'https://api.blackbox.ai/v1',
});
const result = streamText({
model: blackbox('blackboxai/meta/llama-3.2-1b'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- 0.027
- Output $/M
- 0.201
- Context window
- 131.1K
- Max output
- 60K
- Supported parameters
- tool-usejson-modestreaming
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| Llama 3.1 70B | Text | 131.1K | 0.4 |
| Llama 3.1 8B | Text | 131.1K | 0.02 |
| Llama 3.2 3B | Text | 131.1K | 0.051 |
| NVIDIA: Nemotron 3 Ultra | Text | 1M | 0.5 |
| Kimi K2.7 Code | Text | 262.1K | 0.74 |