AI Gateway

All Models/

Llama 3.1 8B

Llama 3.1 8B by Meta

Llama 3.1 8B brings powerful performance in a smaller, more efficient package. With improved multilingual support, tool use, and a 128K context length, it enables sophisticated use cases like interactive agents and compact coding assistants while remaining lightweight and accessible.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'meta/llama-3.1-8b',
prompt: 'Why is the sky blue?'
})