API · Models
Text

Llama 3.1 70B

Llama 3.1 70B is Meta's large open-source model with a 128K context window, offering frontier-level performance on reasoning and coding tasks.

Context 131.1K·Max out 16.4K

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.1-70b'),
  prompt: 'Why is the sky blue?',
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}

Specs & pricing

Input $/M
0.4
Output $/M
0.4
Context window
131.1K
Max output
16.4K
Supported parameters
tool-usejson-modestreaming

Related models

ModelTypeContextInput $/M
Llama 3.1 8BText131.1K0.02
Llama 3.2 3BText131.1K0.051
Llama 3.2 1BText131.1K0.027
NVIDIA: Nemotron 3 UltraText1M0.5
Kimi K2.7 CodeText262.1K0.74