# Llama 3.1 8B Instruct Fast API Pricing

As of October 31, 2026, Llama 3.1 8B Instruct Fast costs $0.15 per 1M input tokens and $0.28 per 1M output tokens on ZeroGPU, with cache reads at $0.025 per 1M tokens. It has a 131,072-token context window and returns up to 8,192 tokens per response.

- Page: https://models.litellm.ai/models/llama-3.1-8b-instruct-fast
- Lab: Meta
- LiteLLM model name: `zerogpu/llama-3.1-8b-instruct-fast`
- Context window: 131,072 tokens
- Max output: 8,192 tokens
- Added to LiteLLM: October 30, 2026
- Prices updated: October 30, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| ZeroGPU | `zerogpu/llama-3.1-8b-instruct-fast` | $0.15 | $0.28 | $0.025 | – | – | 128K |

## Cost examples

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

- ZeroGPU: $0.44

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

- ZeroGPU: $1.556

## Features

Supported: Function calling, Structured output.

## Use it with LiteLLM

```python
from litellm import completion

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

## Cost calculator

10,000 requests a day with 1,000 input and 500 output tokens each, at ZeroGPU's price: $0.00029 per request, $2.90 per day, $87.00 per month (30 days). Try other numbers at https://models.litellm.ai/calculator?model=llama-3.1-8b-instruct-fast

## FAQ

### How much does Llama 3.1 8B Instruct Fast cost?

Llama 3.1 8B Instruct Fast costs $0.15 per 1M input tokens and $0.28 per 1M output tokens on ZeroGPU, with cache reads at $0.025 per 1M tokens.

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

Llama 3.1 8B Instruct Fast has a 131,072-token context window and returns up to 8,192 tokens per response.

### Which providers offer Llama 3.1 8B Instruct Fast?

Llama 3.1 8B Instruct Fast is available from ZeroGPU through LiteLLM, using the model name zerogpu/llama-3.1-8b-instruct-fast.

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

Use the LiteLLM Python SDK with model="zerogpu/llama-3.1-8b-instruct-fast", 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 Instruct Fast support?

Llama 3.1 8B Instruct Fast supports function calling and structured output.

### When did LiteLLM add Llama 3.1 8B Instruct Fast?

Llama 3.1 8B Instruct Fast was added to LiteLLM's model price file on October 30, 2026.

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.
