Meta: Llama 4 Maverick

llama-4-maverick

Llama 4 Maverick costs $0.455 per million input tokens and $1.30 per million output tokens, supports 1.05M context, and is available through the OpenAI-compatible API.

Llama 4 Maverick, a 17 billion active parameter model with 128 experts, is the best multimodal model in its class, beating GPT-4o and Gemini 2.0 Flash across a broad range of widely reported benchmarks, while achieving comparable results to the new DeepSeek v3 on reasoning and coding—at less than half the active parameters. Llama 4 Maverick offers a best-in-class performance to cost ratio with an experimental chat version scoring ELO of 1417 on LMArena.

Modalities

Text + Image → Text

Input / output price

$0.455 / $1.30 per 1M

Context

1.05M · max output 66K

Capabilities

VisionTool callingLong contextOpen weights

Pricing

Billed per token actually used and deducted from your credits.

ItemUSD per 1M tokens
Input$0.455
Output$1.30
Cached input$0.221

Calculator

Drag the sliders to estimate what this model will cost.

Per request
$0.00241
Per day
$1.20
Per month (30 days)
$36.07

Llama 4 Maverick: input $0.455/M · output $1.3/M · cached input $0.221/M

Request with these settings
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "llama-4-maverick", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

Code samples

OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to llama-4-maverick.

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "llama-4-maverick",
    "stream": true,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use it in a client: Cursor · Cline · SillyTavern · Codex

Parameters

Common OpenAI parameters can be passed as-is.

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

FAQ

How is Llama 4 Maverick billed?
Input is $0.455 and output is $1.30 per million tokens; cached input is $0.221. The charge for every request is listed in Usage Logs in the console.
How long is the context window?
1.05M tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
Does it support streaming?
Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.
Llama 4 Maverick API pricing · GeniusRelay