---
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.com/models/meta/meta-llama-llama-4-maverick.md
canonical: https://modelslab.com/models/meta/meta-llama-llama-4-maverick
type: product
component: Playground/LLM/Index
generated_at: 2026-07-19T20:30:56.921913Z
---

Meta: Llama 4 Maverick
---

 [LLMs.txt](https://modelslab.com/models/meta/meta-llama-llama-4-maverick/llms.txt) [.md](https://modelslab.com/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.20 / 1M tokens

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

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

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

From $0.18/M tokens](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-8B-Instruct-Turbo)

[#### thedrummer/TheDrummer: Rocinante 12B

thedrummer-rocinante-12b

From $0.38/M tokens](https://modelslab.com/models/thedrummer/thedrummer-rocinante-12b)

[#### qwen/Qwen: Qwen3 VL 8B Thinking

qwen-qwen3-vl-8b-thinking

From $0.74/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-vl-8b-thinking)

[#### anthracite-org/Magnum v4 72B

anthracite-org-magnum-v4-72b

From $4.00/M tokens](https://modelslab.com/models/anthracite-org/anthracite-org-magnum-v4-72b)

[#### qwen/Qwen: Qwen3 VL 8B Instruct

qwen-qwen3-vl-8b-instruct

From $0.29/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-vl-8b-instruct)

[#### google/Google: Nano Banana Pro (Gemini 3 Pro Image Preview)

google-gemini-3-pro-image-preview

From $7.00/M tokens](https://modelslab.com/models/google/google-gemini-3-pro-image-preview)

[#### mistralai/Mistral: Mixtral 8x22B Instruct

mistralai-mixtral-8x22b-instruct

From $4.00/M tokens](https://modelslab.com/models/mistralai/mistralai-mixtral-8x22b-instruct)

[#### qwen/Qwen: Qwen3 VL 30B A3B Thinking

qwen-qwen3-vl-30b-a3b-thinking

From $0.84/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-vl-30b-a3b-thinking)

[#### google/Google: Gemini 3.1 Pro Preview Custom Tools

google-gemini-3.1-pro-preview-customtools

From $7.00/M tokens](https://modelslab.com/models/google/google-gemini-3.1-pro-preview-customtools)

[#### amazon/Amazon: Nova Premier 1.0

amazon-nova-premier-v1

From $7.50/M tokens](https://modelslab.com/models/amazon/amazon-nova-premier-v1)

[#### openai/OpenAI GPT-OSS 20B

openai-gpt-oss-20b

From $0.08/M tokens](https://modelslab.com/models/openai/openai-gpt-oss-20b)

[#### openai/GPT-5.1-Codex-Max

gpt-5.1-codex-max

From $5.63/M tokens](https://modelslab.com/models/openai/gpt-5.1-codex-max)

[#### mistralai/Mistral Large 2407

mistralai-mistral-large-2407

From $4.00/M tokens](https://modelslab.com/models/mistralai/mistralai-mistral-large-2407)

[#### minimax/MiniMax: MiniMax M2-her

minimax-minimax-m2-her

From $0.75/M tokens](https://modelslab.com/models/minimax/minimax-minimax-m2-her)

[#### google/Google: Gemini 3.1 Flash Lite Preview

google-gemini-3.1-flash-lite-preview

From $0.88/M tokens](https://modelslab.com/models/google/google-gemini-3.1-flash-lite-preview)

[#### qwen/Qwen: Qwen3 Max Thinking

qwen-qwen3-max-thinking

From $2.34/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-max-thinking)

[#### qwen/Qwen2.5 Coder 32B Instruct

qwen-qwen-2.5-coder-32b-instruct

From $0.83/M tokens](https://modelslab.com/models/qwen/qwen-qwen-2.5-coder-32b-instruct)

[#### meta/Meta: Llama 3.2 1B Instruct

meta-llama-llama-3.2-1b-instruct

From $0.11/M tokens](https://modelslab.com/models/meta/meta-llama-llama-3.2-1b-instruct)

Open Source Alternatives
---

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

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU

Popular](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/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.5 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.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>
```

### Pricing

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

[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 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.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 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-20*