---
title: Meta: Llama 4 Maverick API | Text Generation | ModelsLab
description: Build with Meta: Llama 4 Maverick API by Meta Llama. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/meta-llama/meta-llama-llama-4-maverick/api.md
canonical: https://modelslab.com/models/meta-llama/meta-llama-llama-4-maverick/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T02:09:45.834011Z
---

Meta: Llama 4 Maverick
---

 [LLMs.txt](https://modelslab.com/models/open_router/meta-llama-llama-4-maverick/llms.txt) [.md](https://modelslab.com/models/meta-llama/meta-llama-llama-4-maverick.md)

meta-llama-llama-4-maverick meta-llama Closed Source Model $0.375000 / call

Meta: Llama 4 Maverick
---

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 4 Maverick

meta-llama meta-llama-llama-4-maverick

Copy model ID

PricingInput $0.15 / 1M tokens

Output $0.60 / 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)

[ZG](https://modelslab.com/models/open_router/z-ai-glm-4.7-flash)[Open Router](https://modelslab.com/models/open_router)

 [Z.ai: GLM 4.7 Flash

Closed Source Model](https://modelslab.com/models/open_router/z-ai-glm-4.7-flash)

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

 [Anthropic: Claude Opus 4

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

[ER](https://modelslab.com/models/together_ai/togethercomputer-EssentialAI-RNJ-1-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [EssentialAI Rnj-1 Instruct

Closed Source Model](https://modelslab.com/models/together_ai/togethercomputer-EssentialAI-RNJ-1-Instruct)

[G5](https://modelslab.com/models/together_ai/zai-org-GLM-5)[Together AI](https://modelslab.com/models/together_ai)

 [GLM 5 Fp4

Closed Source Model](https://modelslab.com/models/together_ai/zai-org-GLM-5)

[MD](https://modelslab.com/models/open_router/mistralai-devstral-small)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Devstral Small 1.1

Closed Source Model](https://modelslab.com/models/open_router/mistralai-devstral-small)

[QQ](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-35b-a3b)[Alibaba](https://modelslab.com/models/alibaba_cloud)

 [Qwen: Qwen3.5-35B-A3B

Closed Source Model](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-35b-a3b)

[T2](https://modelslab.com/models/scb10x/scb10x-scb10x-llama3-1-typhoon2-70b-instruct)[ModelsLab](https://modelslab.com/models/scb10x)

 [Typhoon 2 70B Instruct

Closed Source Model](https://modelslab.com/models/scb10x/scb10x-scb10x-llama3-1-typhoon2-70b-instruct)

[GG](https://modelslab.com/models/open_router/google-gemini-2.0-flash-lite-001)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemini 2.0 Flash Lite

Closed Source Model](https://modelslab.com/models/open_router/google-gemini-2.0-flash-lite-001)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B-Base)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 1.7B Base

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B-Base)

[AN](https://modelslab.com/models/open_router/amazon-nova-2-lite-v1)[Open Router](https://modelslab.com/models/open_router)

 [Amazon: Nova 2 Lite

Closed Source Model](https://modelslab.com/models/open_router/amazon-nova-2-lite-v1)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 30B A3B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-30b-a3b)

[L4](https://modelslab.com/models/together_ai/meta-llama-Llama-4-Maverick-17B-128E-Instruct-FP8)[Together AI](https://modelslab.com/models/together_ai)

 [Llama 4 Maverick Instruct (17Bx128E) FP8

Closed Source Model](https://modelslab.com/models/together_ai/meta-llama-Llama-4-Maverick-17B-128E-Instruct-FP8)

[AA](https://modelslab.com/models/open_router/arcee-ai-spotlight)[Open Router](https://modelslab.com/models/open_router)

 [Arcee AI: Spotlight

Closed Source Model](https://modelslab.com/models/open_router/arcee-ai-spotlight)

[QQ](https://modelslab.com/models/open_router/qwen-qwen-plus)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen-Plus

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen-plus)

[QC](https://modelslab.com/models/open_router/qwen-qwen-2.5-coder-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen2.5 Coder 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen-2.5-coder-32b-instruct)

[MW](https://modelslab.com/models/open_router/mancer-weaver)[Open Router](https://modelslab.com/models/open_router)

 [Mancer: Weaver (alpha)

Closed Source Model](https://modelslab.com/models/open_router/mancer-weaver)

[ZG](https://modelslab.com/models/open_router/z-ai-glm-4.6)[Open Router](https://modelslab.com/models/open_router)

 [Z.ai: GLM 4.6

Closed Source Model](https://modelslab.com/models/open_router/z-ai-glm-4.6)

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

 [Qwen: Qwen3.5-27B

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

About Meta: Llama 4 Maverick
---

Llama 4 Maverick 17B Instruct (128E) is a high-capacity multimodal language model from Meta, built on a mixture-of-experts (MoE) architecture with 128 experts and 17 billion active parameters per forward...

### Technical Specifications

Model IDmeta-llama-llama-4-maverickCategoryLLM ModelsTaskText GenerationPrice$0.375000 per million tokensAddedFebruary 20, 2026

### 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 4 Maverick 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-llama-4-maverick",
        "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-llama/meta-llama-llama-4-maverick/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Meta: Llama 4 Maverick API costs $0.375000 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

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Meta Llama](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Meta: Llama 4 Maverick FAQ
---

### What is Meta: Llama 4 Maverick?

Llama 4 Maverick 17B Instruct (128E) is a high-capacity multimodal language model from Meta, built on a mixture-of-experts (MoE) architecture with 128 experts and 17 billion active parameters per forward...

### How do I use the Meta: Llama 4 Maverick API?

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

### How much does Meta: Llama 4 Maverick cost?

Meta: Llama 4 Maverick costs $0.375000 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 4 Maverick model ID?

The model ID for Meta: Llama 4 Maverick is "meta-llama-llama-4-maverick". Use this ID in your API requests to specify this model.

### Does Meta: Llama 4 Maverick have a free tier?

Yes, ModelsLab offers a free tier that lets you try Meta: Llama 4 Maverick 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*