Skip to main content

Lyceum

Since v1.114.0

Lyceum is a European GPU cloud with serverless inference for open models through an OpenAI-compatible API. Use the lyceum/ prefix with a model ID from Lyceum's model list.

Provider support was added in PR #55796. Use a release or build that includes it.

Overview​

PropertyDetails
Provider prefixlyceum/
API key environment variableLYCEUM_API_KEY
Default API basehttps://api.lyceum.technology/openai/v1
Optional API base overrideLYCEUM_API_BASE or the api_base parameter
Upstream endpoints/chat/completions, /embeddings
Provider documentationLyceum serverless inference

Setup​

Create an API key in the Lyceum dashboard and export it before you start the SDK or proxy:

export LYCEUM_API_KEY="your-lyceum-api-key"

Lyceum model IDs keep their vendor prefix, so a LiteLLM model name has two slashes, for example lyceum/z-ai/glm-5.3. LiteLLM removes the lyceum/ prefix and sends z-ai/glm-5.3 to Lyceum. GET https://api.lyceum.technology/openai/v1/models lists the IDs your key can use.

Models with prices in LiteLLM​

LiteLLM model nameContextNotes
lyceum/z-ai/glm-5.31M
lyceum/z-ai/glm-5.3-flash1Mimages and video in
lyceum/moonshotai/kimi-k3.1-pro1Mimages in
lyceum/moonshotai/kimi-k2.7-code256Kimages in
lyceum/deepseek/deepseek-v4.1-flash-10171Mimages in, also callable as lyceum/deepseek/deepseek-v4.1-flash
lyceum/deepseek/deepseek-v4-flash-07311M
lyceum/minimax/minimax-m3.1-flash1Mimages and video in
lyceum/qwen/qwen3.8-27b256Kimages and video in
lyceum/qwen/qwen3.8-2.4t-a95b256K
lyceum/qwen/qwen3-embedding-8b32Kembeddings

All chat models support tool calls and reasoning. z-ai/glm-5.3-instant, z-ai/glm-5.3-flash-instant and qwen/qwen3.8-27b-instant are the same models with reasoning turned off, at the same price.

Lyceum also answers to alias IDs such as z-ai/glm-5.1. An alias has no price of its own in LiteLLM, so LiteLLM bills the request at the price of the model that Lyceum names in its response.

LiteLLM Python SDK​

from litellm import completion

response = completion(
model="lyceum/z-ai/glm-5.3-flash",
messages=[{"role": "user", "content": "Say hello in five words"}],
max_tokens=2000,
)

print(response.choices[0].message.content)

For streaming, pass stream=True and iterate over the response chunks:

from litellm import completion

response = completion(
model="lyceum/z-ai/glm-5.3-flash",
messages=[{"role": "user", "content": "Say hello in five words"}],
max_tokens=2000,
stream=True,
)

for chunk in response:
print(chunk.choices[0].delta.content or "", end="")

Reasoning is on by default for most models, and reasoning tokens count toward max_tokens, so leave room for both. LiteLLM sends reasoning_effort to Lyceum as you set it. Pass reasoning_effort="none" to turn reasoning off where the model allows it, or use an -instant model name.

Embeddings​

from litellm import embedding

response = embedding(
model="lyceum/qwen/qwen3-embedding-8b",
input=["Lyceum runs open models in Europe"],
)

print(len(response.data[0]["embedding"]))

LiteLLM Gateway​

Save this configuration as config.yaml:

model_list:
- model_name: glm-5.3-flash
litellm_params:
model: lyceum/z-ai/glm-5.3-flash
api_key: os.environ/LYCEUM_API_KEY

general_settings:
master_key: os.environ/LITELLM_MASTER_KEY

Start the proxy with LYCEUM_API_KEY and LITELLM_MASTER_KEY exported in its environment:

litellm --config config.yaml

Set LITELLM_API_KEY to the master key or a virtual key from the proxy, then send a request using the configured model alias. This is your LiteLLM key, not your Lyceum API key.

curl http://localhost:4000/v1/chat/completions \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3-flash",
"messages": [{"role": "user", "content": "Say hello in five words"}],
"max_tokens": 2000
}'

LiteLLM also accepts Anthropic Messages and Responses API requests for Lyceum models through its translation layer. These requests use Lyceum's chat completions endpoint, not native Lyceum Messages or Responses endpoints.

A /v1/responses request with previous_response_id works only on a proxy with a database and store_prompts_in_spend_logs: true under general_settings, because LiteLLM rebuilds the conversation from its spend logs. See Session Management. Without that setup, and from the Python SDK, send the earlier turns in input instead.

LiteLLM Enterprise
SSO/SAML, audit logs, spend tracking, multi-team management, and guardrails, built for production.
Learn more →