---
title: Meta Llama 3.1 405B Instruct Turbo | Text Generation | ModelsLab
description: State-of-the-art 405 billion parameter large language model optimized for instruction-following with a 131K token context window, fast inference, and.
url: https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo/api.md
canonical: https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T02:08:21.077084Z
---

Meta Llama 3.1 405B Instruct Turbo
---

 [LLMs.txt](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo/llms.txt) [.md](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo.md)

meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo meta Closed Source Model $3.500000 / call

Meta Llama 3.1 405B Instruct Turbo
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Meta Llama 3.1 405B Instruct Turbo

meta meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo

Copy model ID

PricingInput $3.50 / 1M tokens

Output $3.50 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[![GPT 5.2](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/2bdd00f4-1692-49d8-a562-72cb1753d0ff.png)](https://modelslab.com/models/openai/gpt-5.2)[Open Ai](https://modelslab.com/models/openai)

 [GPT 5.2

Closed Source Model](https://modelslab.com/models/openai/gpt-5.2)

[AC](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4.6)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude Sonnet 4.6

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-sonnet-4.6)

[MM](https://modelslab.com/models/open_router/mistralai-mistral-medium-3.1)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Mistral Medium 3.1

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-medium-3.1)

[G3](https://modelslab.com/models/together_ai/google-gemma-3-4b-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 3 4b it

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-3-4b-it)

[M(](https://modelslab.com/models/mistral_ai/mistralai-Mistral-7B-Instruct-v0.1)[ModelsLab](https://modelslab.com/models/mistral_ai)

 [Mistral (7B) Instruct

Closed Source Model](https://modelslab.com/models/mistral_ai/mistralai-Mistral-7B-Instruct-v0.1)

[DR](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Llama-70B)[ModelsLab](https://modelslab.com/models/deepseek)

 [DeepSeek-R1

Closed Source Model](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Llama-70B)

[ML](https://modelslab.com/models/together_ai/meta-llama-Meta-Llama-3-70B-Instruct-Turbo)[Together AI](https://modelslab.com/models/together_ai)

 [Meta Llama 3 70B Instruct Turbo

Closed Source Model](https://modelslab.com/models/together_ai/meta-llama-Meta-Llama-3-70B-Instruct-Turbo)

[TC](https://modelslab.com/models/open_router/thedrummer-cydonia-24b-v4.1)[Open Router](https://modelslab.com/models/open_router)

 [TheDrummer: Cydonia 24B V4.1

Closed Source Model](https://modelslab.com/models/open_router/thedrummer-cydonia-24b-v4.1)

[Q3](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-32B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 32B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-32B)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-vl-235b-a22b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 VL 235B A22B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-vl-235b-a22b-instruct)

[MV](https://modelslab.com/models/open_router/anthracite-org-magnum-v4-72b)[Open Router](https://modelslab.com/models/open_router)

 [Magnum v4 72B

Closed Source Model](https://modelslab.com/models/open_router/anthracite-org-magnum-v4-72b)

[L3](https://modelslab.com/models/together_ai/meta-llama-Llama-3.1-405B)[Together AI](https://modelslab.com/models/together_ai)

 [Llama 3.1 405B

Closed Source Model](https://modelslab.com/models/together_ai/meta-llama-Llama-3.1-405B)

[SL](https://modelslab.com/models/open_router/sao10k-l3.3-euryale-70b)[Open Router](https://modelslab.com/models/open_router)

 [Sao10K: Llama 3.3 Euryale 70B

Closed Source Model](https://modelslab.com/models/open_router/sao10k-l3.3-euryale-70b)

[DR](https://modelslab.com/models/open_router/deepseek-deepseek-r1)[Open Router](https://modelslab.com/models/open_router)

 [DeepSeek: R1

Closed Source Model](https://modelslab.com/models/open_router/deepseek-deepseek-r1)

[M8](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x7B-v0.1)[Together AI](https://modelslab.com/models/together_ai)

 [Mixtral 8X7b V0.1

Closed Source Model](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x7B-v0.1)

[LL](https://modelslab.com/models/open_router/liquid-lfm-2-24b-a2b)[Open Router](https://modelslab.com/models/open_router)

 [LiquidAI: LFM2-24B-A2B

Closed Source Model](https://modelslab.com/models/open_router/liquid-lfm-2-24b-a2b)

[G3](https://modelslab.com/models/together_ai/google-gemma-3-27b-pt)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 3 27B Pt

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-3-27b-pt)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3.5-397b-a17b)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3.5 397B A17B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3.5-397b-a17b)

About Meta Llama 3.1 405B Instruct Turbo
---

State-of-the-art 405 billion parameter large language model optimized for instruction-following with a 131K token context window, fast inference, and advanced multilingual, reasoning, and coding capabilities.

### Technical Specifications

Model IDmeta-llama-Meta-Llama-3.1-405B-Instruct-TurboCategoryLLM ModelsTaskText GenerationPrice$3.500000 per million tokensAddedJuly 22, 2025

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Meta Llama 3.1 405B Instruct Turbo into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Meta Llama 3.1 405B Instruct Turbo API costs $3.500000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Meta Llama 3.1 405B Instruct Turbo](https://modelslab.com/meta-llama-31-405b-instruct-turbo) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Meta](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Meta Llama 3.1 405B Instruct Turbo FAQ
---

### What is Meta Llama 3.1 405B Instruct Turbo?

State-of-the-art 405 billion parameter large language model optimized for instruction-following with a 131K token context window, fast inference, and advanced multilingual, reasoning, and coding capabilities.

### How do I use the Meta Llama 3.1 405B Instruct Turbo API?

You can integrate Meta Llama 3.1 405B Instruct Turbo into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Meta Llama 3.1 405B Instruct Turbo cost?

Meta Llama 3.1 405B Instruct Turbo costs $3.500000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Meta Llama 3.1 405B Instruct Turbo model ID?

The model ID for Meta Llama 3.1 405B Instruct Turbo is "meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo". Use this ID in your API requests to specify this model.

### Does Meta Llama 3.1 405B Instruct Turbo have a free tier?

Yes, ModelsLab offers a free tier that lets you try Meta Llama 3.1 405B Instruct Turbo and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*