API Keys
What is an API key?
Section titled “What is an API key?”An API key is a randomly generated string that your application sends with every request to maKI. From the key, maKI knows who is asking and which models may be called; usage is logged per key.
You need a key as soon as you call maKI from your own code, an SDK, a notebook, or a tool like curl — anything outside the admin UI at /ui/.
Treat the key like a password:
- Never check it into source code or a Git repository
- Store it in an environment variable, a secret manager, or 1Password
- If you suspect it has been compromised, request a revocation immediately
Key types
Section titled “Key types”| Type | Assignment | Personal reference | Example |
|---|---|---|---|
| Personal key | Individual person | Yes (indirectly via usage data) | Philipp Hematty |
| Service key | Application or team (≥3 persons) | No | F13-Assistenzsystem |
| Batch key | Ad-hoc bulk processing | No | embedding-migration-2026 |
Choosing a key type
Section titled “Choosing a key type”Choose the type by how the key is used, not by data volume:
- Personal: you work with maKI interactively yourself. Example: you connect maKI to your editor and get help while programming.
- Service: a production service uses the key permanently for several people. Example: a chatbot on a chair’s website answers questions from students.
- Batch: everything else, especially scripts, notebooks, trials and bulk analysis. Example: you test a notebook on a few documents and later classify an entire text corpus.
If you trial first and process at scale later, choose a batch key from the start. You do not need a new key later. While GPUs are free, batch requests get full throughput; they only wait under load (see Prioritization).
In the request form (German) this is the “Batch” deployment option.
Requesting a key
Section titled “Requesting a key”Use the API-key form (German). Fill in the main fields as follows:
- Name and e-mail: yourself. You are the responsible contact for the key.
- Institution: your chair, institute or department.
- Head of institution/responsible unit: the head of that institution, for example the chair holder.
- Short title: a short name for your project. You do not need a separate service name.
- Technical deployment: see Choosing a key type.
Select the model groups you need. The key grants access to these groups. New models in an approved group become available automatically.
For the Quick Start, select self-hosted.
This group includes all locally hosted models.
Once you receive the key, follow the Quick Start to make your first request. If the form is unavailable, contact maki@uni-mannheim.de.
Revoking a key
Section titled “Revoking a key”If a key is suspected to be compromised:
- Report immediately to philipp.hematty@uni-mannheim.de
- Administrator disables the key via the LiteLLM admin UI (
/ui) - New key is issued and handed over to the applicant
- Old key is permanently deleted
Revoked keys become invalid immediately — in-flight requests are completed, new requests are rejected.
Prioritization
Section titled “Prioritization”API keys are prioritized by type under GPU load:
| Key type | Priority | Behavior under load |
|---|---|---|
| Personal | High (1) | Requests are served first from the queue |
| Service | Normal (64) | Requests wait behind personal requests |
| Batch | Low (128) | Requests wait behind personal and service requests |
When the GPU is not saturated, all key types get full throughput — there is no artificial throttling. Prioritization only kicks in when all parallel slots for a model are occupied.
Limits
Section titled “Limits”Concurrency
Section titled “Concurrency”A model may have a limit on concurrent requests (max_parallel_requests); the table shows the current state. Excess requests are queued and served by priority. If the queue is long, requests receive HTTP 429 and should be retried with exponential backoff.
Loading model list …
Request size
Section titled “Request size”Each model has a context window. The input and maximum output must fit inside this window together. The table shows the limit for each model.
Loading model list …
If a request exceeds this limit, follow the troubleshooting steps.
Long requests can need more processing time. Send only the content that you need for the task.
Budget
Section titled “Budget”For the use of local models described here, there are no per-key cost budgets. Usage is tracked for planning purposes (timestamp, model, token count).
Monitoring
Section titled “Monitoring”Usage is tracked per key:
- Requests per model and time period
- Token consumption (input/output)
- Error rates
This data is used for capacity planning and cost allocation, not behavioral monitoring (see Privacy Policy).