Models
llama3.1-8b β API, Pricing & Context Window | Vivgrid
llama3.1-8b on Vivgrid: Meta's efficient 8B open model with a 128K context window, available through one unified API.
llama3.1-8b is Meta's efficient 8-billion-parameter open model, offering a 128K-token context window and dependable performance for lightweight tasks. Its small size makes it fast and inexpensive for high-volume workloads.
On Vivgrid, llama3.1-8b is available through the unified, OpenAI-compatible API, providing an open-model option alongside the catalog's commercial models under a single key.
Specifications
| Provider | Meta |
| Model ID | llama3.1-8b |
| Best for | General-purpose |
| Context window | 128,000 tokens |
| Modalities | Text |
| Tool / function calling | Yes |
| Knowledge cutoff | 2023-12 |
| Acceleration | π Global (Centralized) |
Pricing
Pricing for llama3.1-8b matches the provider's published rates. See live pricing in the Vivgrid Console.
Quick start
Call llama3.1-8b through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the Vivgrid Console.
curl https://api.vivgrid.com/v1/chat/completions \
-H "Authorization: Bearer $VIVGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "llama3.1-8b",
"messages": [
{ "role": "user", "content": "Say hello in English, Chinese and Spanish." }
],
"stream": true
}'Ideal use cases
- Lightweight, high-volume text tasks
- Cost-sensitive classification and extraction
- Simple assistants and autocomplete features
- An open-model baseline for evaluation
Related models
- gpt-5-mini β fast, low-cost commercial model
- deepseek-v4-flash β ultra-affordable option
- gemini-2.0-flash β efficient multimodal model