Skip to content

Meta: llama-4-maverick

Active on this gateway Chat / Text

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 pass (400B total). It supports multilingual text and image input, and produces multilingual text and code output across 12 supported languages. Optimized for vision-language tasks, Maverick is instruction-tuned for assistant-like behavior, image reasoning, and general-purpose multimodal interaction.

Maverick features early fusion for native multimodality and a 1 million token context window. It was trained on a curated mixture of public, licensed, and Meta-platform data, covering ~22 trillion tokens, with a knowledge cutoff in August 2024. Released on April 5, 2025 under the Llama 4 Community License, Maverick is suited for research and commercial applications requiring advanced multimodal understanding and high model throughput.

AcceptsTextImage
ProducesText

Pricing

Current price per 1,000,000 tokens. Every request is billed automatically from its exact usage.

Input 125,580 Toman$0,42 / 1M tokens ≈ 125,58 Toman / 1K tokens≈ $0,00042 / 1K tokens
Output 358,800 Toman$1,20 / 1M tokens ≈ 358,80 Toman / 1K tokens≈ $0,00120 / 1K tokens
Cached input 60,996 Toman$0,204 / 1M tokens ≈ 61,00 Toman / 1K tokens≈ $0,00020 / 1K tokens

Cached input applies to the part of a prompt the provider has already processed, such as a long prefix you send again. It is billed at this rate instead of the normal input rate.

Statistics

Live performance and usage of this model, aggregated across all users.

API

Call this model from any OpenAI-compatible client using your API token.

POST https://apiex.cloud/api/v1/chat/completions
<?php
$ch = curl_init( "https://apiex.cloud/api/v1/chat/completions" );

curl_setopt_array( $ch, array(
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => array(
        "Authorization: Bearer YOUR_API_KEY",
        "Content-Type: application/json",
    ),
    CURLOPT_POSTFIELDS     => json_encode( array(
        "model" => "meta-llama/llama-4-maverick",
        "messages" => array(
            array(
                "role" => "user",
                "content" => "Explain quantum entanglement in one paragraph.",
            ),
        ),
        "temperature" => 0.7,
    ) ),
) );

$response = json_decode( curl_exec( $ch ), true );
print_r( $response );

Authentication Every request must include an Authorization: Bearer <TOKEN> header. Generate a token from your account's API Keys page — you can set its rate limit and IP restrictions.

Supported parameters

Parameter Type Description
model string, required This model's ID, exactly as shown above.
messages array, required Conversation history as role/content objects (system, user, assistant).
temperature number, optional Sampling randomness, typically 0–2.
max_tokens integer, optional Upper limit on tokens generated in the reply.
top_p number, optional Nucleus-sampling threshold, as an alternative to temperature.
stream boolean, ignored Responses are always returned in full so the exact cost can be billed; streaming is not available.

Frequently asked questions

What is 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 pass (400B total). It supports multilingual text and image input, and produces multilingual text and code output across 12 supported languages. Optimized for vision-language tasks, Maverick is instruction-tuned for assistant-like behavior, image reasoning, and general-purpose multimodal interaction.

Maverick features early fusion for native multimodality and a 1 million token context window. It was trained on a curated mixture of public, licensed, and Meta-platform data, covering ~22 trillion tokens, with a knowledge cutoff in August 2024. Released on April 5, 2025 under the Llama 4 Community License, Maverick is suited for research and commercial applications requiring advanced multimodal understanding and high model throughput.

How much does llama-4-maverick cost?

Input tokens are priced at $0,42 per 1,000,000 tokens and output tokens at $1,20 per 1,000,000 tokens. Pricing is billed automatically per request; no separate plan is required. Cached input tokens, the part of a prompt the provider has already processed, are priced at $0,204 per 1,000,000 tokens.

What is the context length of llama-4-maverick?

llama-4-maverick supports a context window of up to 524,288 tokens.

Does llama-4-maverick support image input?

Yes, llama-4-maverick accepts image input in addition to text.

Which provider is llama-4-maverick from?

llama-4-maverick is developed by Meta and made available on this gateway through our routing infrastructure.

When was llama-4-maverick added to this gateway?

llama-4-maverick has been available on this gateway since September 23, 2026.

Is llama-4-maverick currently available?

Yes, llama-4-maverick is active and can be used right now through this gateway.

Ready to build with one API?

Create an account, make a key and send your first request in a few minutes.

Create your account