# Llama 3.1 8B Instant API Pricing

As of October 21, 2026, Llama 3.1 8B Instant costs $0.20 per 1M input tokens and $0.50 per 1M output tokens on Inference APIs. It has a 131,072-token context window.

- Page: https://models.litellm.ai/models/llama-3.1-8b-instant
- Lab: Meta
- LiteLLM model name: `inferenceapis/llama-3.1-8b-instant`
- Context window: 131,072 tokens
- Added to LiteLLM: July 2024
- Prices updated: October 15, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Inference APIs | `inferenceapis/llama-3.1-8b-instant` | $0.20 | $0.50 | – | – | – | 128K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- Inference APIs: $0.65

100 long-document requests with 100,000 input and 2,000 output tokens each:

- Inference APIs: $2.10

## Features

Supported: Function calling.
Not supported: Image input, Reasoning.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="inferenceapis/llama-3.1-8b-instant",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## Cost calculator

10,000 requests a day with 1,000 input and 500 output tokens each, at Inference APIs's price: $0.00045 per request, $4.50 per day, $135 per month (30 days). Try other numbers at https://models.litellm.ai/calculator?model=llama-3.1-8b-instant

## FAQ

### How much does Llama 3.1 8B Instant cost?

Llama 3.1 8B Instant costs $0.20 per 1M input tokens and $0.50 per 1M output tokens on Inference APIs.

### What is the context window of Llama 3.1 8B Instant?

Llama 3.1 8B Instant has a 131,072-token context window.

### Which providers offer Llama 3.1 8B Instant?

Llama 3.1 8B Instant is available from Inference APIs through LiteLLM, using the model name inferenceapis/llama-3.1-8b-instant.

### How do I call Llama 3.1 8B Instant with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="inferenceapis/llama-3.1-8b-instant", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### What features does Llama 3.1 8B Instant support?

Llama 3.1 8B Instant supports function calling. It does not support image input and reasoning.

### When did LiteLLM add Llama 3.1 8B Instant?

Llama 3.1 8B Instant was added to LiteLLM's model price file in July 2024.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change.
