---
title: Meta: Llama 4 Maverick API | Text Generation | ModelsLab
description: Build with Meta: Llama 4 Maverick API by Meta. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-llama-4-maverick.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-llama-4-maverick.md
type: product
component: Playground/LLM/Index
generated_at: 2026-07-11T23:04:31.201015Z
---

Meta: Llama 4 Maverick
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-llama-4-maverick/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-llama-4-maverick.md)

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 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-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[#### open\_router/Mistral: Mistral Medium 3

mistralai-mistral-medium-3

From $1.20/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-mistral-medium-3)

[#### open\_router/Mistral Large 2407

mistralai-mistral-large-2407

From $4.00/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/mistralai-mistral-large-2407)

[#### alibaba\_cloud/Qwen: Qwen3.5-35B-A3B

qwen-qwen3.5-35b-a3b

From $1.13/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/alibaba_cloud/qwen-qwen3.5-35b-a3b)

[#### open\_router/Qwen: Qwen-Plus

qwen-qwen-plus

From $0.52/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen-plus)

[#### open\_router/MiniMax: MiniMax M2.7

minimax-minimax-m2.7

From $0.60/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/minimax-minimax-m2.7)

[#### open\_router/Qwen: Qwen2.5 7B Instruct

qwen-qwen-2.5-7b-instruct

From $0.07/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen-2.5-7b-instruct)

[#### open\_router/Z.ai: GLM 4.5 Air

z-ai-glm-4.5-air

From $0.49/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/z-ai-glm-4.5-air)

[#### open\_router/Qwen: Qwen3 VL 8B Instruct

qwen-qwen3-vl-8b-instruct

From $0.29/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-vl-8b-instruct)

[#### open\_router/Qwen: Qwen3.7 Plus

qwen-qwen3.7-plus

From $0.80/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3.7-plus)

[#### open\_router/Qwen: Qwen3 Max

qwen-qwen3-max

From $2.34/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-max)

[#### meta/Meta Llama 3.1 405B Instruct Turbo

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

From $3.50/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-Meta-Llama-3.1-405B-Instruct-Turbo)

[#### open\_router/Nous: Hermes 4 70B

nousresearch-hermes-4-70b

From $0.27/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nousresearch-hermes-4-70b)

[#### open\_router/Qwen: Qwen3 Coder Flash

qwen-qwen3-coder-flash

From $0.58/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-coder-flash)

[#### open\_router/MoonshotAI: Kimi K2 0905

moonshotai-kimi-k2-0905

From $1.55/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/moonshotai-kimi-k2-0905)

[#### open\_router/OpenAI: GPT-5.6 Sol Pro

openai-gpt-5.6-sol-pro

From $17.50/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.6-sol-pro)

[#### open\_router/xAI: Grok 4.20 Multi-Agent

x-ai-grok-4.20-multi-agent

From $1.88/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/x-ai-grok-4.20-multi-agent)

[#### qwen/Qwen2-VL (72B) Instruct

Qwen-Qwen2-VL-72B-Instruct

From $1.20/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/qwen/Qwen-Qwen2-VL-72B-Instruct)

[#### modelslab/Modelslab: Uncensored Chat 

uncensored-chat

From $0.75/M tokens](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/uncensored-chat)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llm&provider=open-source-models)

[MU

Popular](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/modelslab/uncensored-chat)

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-maverick

CategoryLLM Models

TaskText Generation

Price$0.375 per million tokens

AddedFebruary 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-frontend-v2-927501783998.us-east4.run.app/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>
```

### 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-frontend-v2-927501783998.us-east4.run.app/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-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Meta](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/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-07-12*