EN ▾
Create key

Lama API Key vs Llama: Spelling and What You Need

Last updated

A lama api key is almost always a misspelled search for a key to the Llama family of language models. The right spelling has two l's, and the key you need depends on which host runs the model, as the sections below explain.

A signpost splitting toward a brass key and a stack of servers, showing the choice of which key you need

Lama, llama and the key you actually want

In English, "lama" is a Tibetan religious teacher. The South American animal and the language model family are both spelled "llama". In German, Polish and several other languages the animal is written "Lama", which is one reason the single-l spelling shows up so often in searches. When someone types lama api key next to the word API, they nearly always mean the model family released by Meta.

That clears up the spelling but not the key. Meta publishes the weights, so there is no one dashboard that issues credentials. Each company that runs the model for you gives out its own key, valid only on its own service.

Which key matches which goal

What you are trying to doWhat you need
Download and run the weights on your own machineNo API key. You accept the model license and run it locally.
Call a hosted Llama model from codeA key from a host that lists the exact model by name
Use an OpenAI-style app with a cheaper or less restricted backendA key and base URL from any OpenAI-compatible host
Chat with Meta's own assistantA Meta account, not an API key at all

Pin down the row you are in first. Much wasted time comes from people pasting a key from one service into a client configured for another, then reading the resulting 401 as a bug.

What our key is

This site sells access to one hosted model through an OpenAI-compatible API. The model is open-weight, run by an independent provider, and tuned to answer without content refusals for lawful adult use. It is not Meta's API, and it does not route between vendors. The only model ID is uncensored.

If you need the named Llama checkpoint, choose a host that lists it. If you need a standard chat endpoint that does not refuse on every sensitive topic, you can get a key on the API key page. New accounts can claim $0.50 of trial credit with one click. It lasts 7 days and needs no card. Sign-up is with Google, or with an email and password.

Where spelling really matters

Search engines forgive a missing letter. Code does not. Three places trip people up.

  • The base URL. It is https://api.lamaapikey.com/v1. The domain really does use the single-l form, so copy it instead of correcting it.
  • The model ID. Send uncensored. A value such as llama-3 will not match anything here and you will get an error back.
  • The variable name. If your code reads LAMA_KEY and your shell exports LLAMA_KEY, the client sends an empty key and the server answers 401.

A small habit removes the third problem: read the variable with a hard failure when it is missing, as below.

import os
from openai import OpenAI

key = os.environ["API_KEY"]  # raises KeyError if it is unset

client = OpenAI(base_url="https://api.lamaapikey.com/v1", api_key=key)

reply = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Reply with the single word: ready"}],
)
print(reply.choices[0].message.content)

A KeyError on line one is far easier to diagnose than a vague authentication failure three layers down.

Check that a key works before you build on it

Two cheap requests tell you most of what you need. The first lists models and proves the key and base URL are right. The second shows your remaining balance in a response header.

curl -i https://api.lamaapikey.com/v1/models \
  -H "Authorization: Bearer $API_KEY"

curl -i https://api.lamaapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "uncensored", "max_tokens": 5, "messages": [{"role": "user", "content": "ping"}]}'

Look at the status line first. A 200 means you are in. Then find X-Balance-USD in the headers of the second call to see what is left. You can also read the balance from GET /v1/balance or the OpenAI-style /v1/dashboard/billing/credit_grants path.

Costs, limits and the usual errors

Billing is prepaid credit with no subscription. Input is $0.15 per 1M tokens and output is $0.50 per 1M. A chat turn with 1,000 tokens in and 400 out costs $0.00015 plus $0.0002, so $0.00035. Failed or refused requests are not charged, and credit never expires. Top-ups are any whole amount from $20 to $500 in crypto (USDT on TRC20 or USDC on Base), with bonuses of 5%, 10% and 15% from $50, $100 and $200. The pricing page has the details.

A full key allows 8 concurrent requests and 300 per minute. A trial key allows 2 and 60. If you go over, the API returns HTTP 429 with rate_limited or concurrency as the error code. A 401 means the key is wrong, missing or was regenerated. You can regenerate a key at any time on the key page, and the old one stops working at once.

The docs list streaming, tool calling and JSON mode, and the key mistakes article covers storage habits that apply to every provider.

Other names that get mixed in

A misspelled query often sits next to a second confusion. These are the ones we see most.

  • Ollama. A tool for running models on your own computer. It can expose a local OpenAI-style address, so the "key" there is usually a placeholder value because nothing leaves your machine.
  • Llama.cpp. A C++ program for running model files. Same story: local, no account, no billing.
  • Hugging Face tokens. These download weights or call Hugging Face services. They are not keys for our API and ours is not valid there.
  • Chatbot logins. Signing in to a consumer assistant gives you a chat window, not credentials for code.

The test is simple. If a service asks you to send an HTTP request with an Authorization: Bearer header, you need an API key from that service. If you only type into a box, you do not.

What to do if you already have the wrong key

Nothing breaks permanently. A key from another host fails with 401 against ours, and ours fails against theirs. Swap the key and base URL together, and keep them in the same config block so they cannot drift apart. Never edit one without the other.

A quick way to decide

If your goal is learning how models work, run a small open model locally and skip keys entirely. If your goal is an app that calls a model over HTTP, pick a host by checking four things: the exact model it serves, its content policy, its price per million tokens, and its rate limits. Write them down for two or three hosts, then compare. Keep your client code pointed at a configurable base URL so that changing host is a one-line edit.

A five-line checklist

  1. Spell the model family Llama when you search, and copy exact strings when you code.
  2. Confirm which host issued the key and keep the base URL beside it.
  3. Store the key in an environment variable, never in the repository.
  4. Test with a tiny request that sets max_tokens low before running anything large.
  5. Watch the balance header after your first few calls so a cost surprise never reaches production.

Frequently asked questions

Is it lama or llama?

The model family is spelled Llama, with two l's. Search engines treat lama as a near match, but code and model IDs must be spelled exactly.

Is there an official free key for Llama?

Meta releases the weights and no master key. Some hosts offer free tiers with limits, so check each host's current terms.

Does your key give me Meta's Llama?

No. It serves one open-weight model from an independent provider under the ID uncensored, and it is not Meta's API.

How do I replace a key I pasted somewhere public?

Regenerate it on the API key page. The old key stops working immediately, and no support request is needed.

Get your API key in one step

Sign up, copy your key, update your base URL. Done.