Llama API

Meta's Llama 4 Maverick through one key, with per-token pricing and prepaid credit.

Llama (Meta) models and pricing

ModelContextInput / 1MOutput / 1MCached / 1M
Llama 4 Maverick
meta-llama/llama-4-maverick
128K $0.325$1.131$0.065

USD per million tokens. Billed from prepaid credit; every response reports its exact cost.

Quick start

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

Works with LangChain, Cline, Continue, Open WebUI and any tool that lets you set a base URL: use https://solorouter.ai/api/v1. See the docs.

How to get your Llama API key

  1. Sign in with Google. New accounts get free credit (one per person).
  2. Copy the API key created for you on the Keys page, or create one with its own spending limit.
  3. Send requests to https://solorouter.ai/api/v1/chat/completions with "model": "meta-llama/llama-4-maverick". Top up from $5 when you need more.

Why use Llama (Meta) through Solo Router

Related guides

Frequently asked questions

How do I use Llama 4 through an API?

Create a Solo Router key and call meta-llama/llama-4-maverick.

Get your API key in 30 seconds

Sign in with Google. New accounts get free credit (one per person) to try the models.

Get started free

Also on Solo Router: DeepSeek API · Kimi API · Qwen API · GLM API · MiniMax API · Gemma API · all models