Supported Providers¶
Lumiverse supports 21 AI providers out of the box. Each provider has its own model catalog, API format, and capabilities.
Provider List¶
| Provider | API Key Required | Notes |
|---|---|---|
| OpenAI | Yes | GPT-5.x, o-series, and more |
| Anthropic | Yes | Claude Opus, Sonnet, Haiku — includes Lumiverse-side prompt caching support |
| Yes | Gemini Pro, Gemini Flash, and more | |
| Google Vertex AI | Service account JSON | Gemini, Claude, and managed Model Garden MaaS models through Vertex. Upload a service account JSON and pick a supported region. |
| OpenRouter | Yes (or OAuth) | Aggregator — access hundreds of models through one key. Supports OAuth sign-in and provider plugins. |
| DeepSeek | Yes | DeepSeek models with reasoning |
| xAI | Yes | Grok models |
| Mistral | Yes | Mistral and Mixtral models |
| Groq | Yes | Fast inference for open models |
| Perplexity | Yes | Search-augmented generation |
| AI21 | Yes | Jamba models |
| Moonshot | Yes | Kimi models |
| Fireworks | Yes | Fast inference for open models |
| ElectronHub | Yes | Model aggregator |
| SiliconFlow | Yes | Chinese and international models |
| NanoGPT | Yes | Pay-per-token aggregator with PAYG provider routing, balance, and subscription usage |
| Infermatic | Yes | TotalGPT — uncensored open-weights hosting (https://api.totalgpt.ai/v1) |
| Chutes | Yes | Model hosting platform |
| Z.AI | Yes | Standard and Coding Plan endpoints |
| Pollinations | No | Free text models, no API key required |
| Custom | Varies | Any OpenAI-compatible API endpoint |
Custom Base URLs & Reverse Proxies¶
Every provider in Lumiverse lets you override the default API URL on each connection. This means any provider type can be pointed at a reverse proxy, load balancer, or alternative endpoint — not just the Custom provider.
For example, you could create an OpenAI connection but set its API URL to your proxy at https://my-proxy.example.com/v1. Lumiverse uses OpenAI's API format for the request but sends it to your custom URL.
This is useful for:
- Reverse proxies — Route requests through a proxy for logging, rate limiting, or cost tracking
- Regional endpoints — Use a provider's regional API endpoint instead of the default
- Self-hosted mirrors — Point to your own deployment of an API-compatible service
Using the Custom Provider¶
The Custom provider is for services that aren't covered by the built-in providers but implement the OpenAI-compatible API format. This includes:
- Local models — LM Studio, Ollama, text-generation-webui, KoboldCpp
- Other services — Any endpoint with an OpenAI-compatible chat completions API
To use a custom provider:
- Create a connection with provider set to Custom
- Enter the API URL (e.g.,
http://localhost:5000/v1for a local model) - Enter the Model name as the server expects it
- Add an API Key if the server requires one
OpenRouter¶
OpenRouter is a popular choice because it gives you access to hundreds of models from many providers through a single API key:
- Get an API key from openrouter.ai, or click Sign in with OpenRouter on the connection form to do a PKCE OAuth flow that auto-fills the key.
- Create a connection with provider set to OpenRouter.
- Use the Models button to browse available models.
The OpenRouter connection form has two extra sections beyond the basics:
| Section | What it does |
|---|---|
| Routing | Override OpenRouter's defaults — sort order (cheapest / fastest / lowest latency), provider allow/deny lists, quantization filters, and a data-collection mode (Allow / Deny). Useful when you want privacy-first routing or a specific upstream. |
| Plugins | Toggle OpenRouter-side features for this connection: Web Search (provider-side search augmentation, distinct from Lumiverse Web Search), Response Healing (auto-fixes malformed JSON on non-streaming responses), and Context Compression (middle-out compression when prompts exceed the model's limit). |
The connection card also shows your live OpenRouter credit balance — handy as a usage gauge.
To use Flex, save your connection with an API key, select a model, and expand Provider Routing. The provider pickers include that model's exact endpoints, such as OpenAI — Flex or regional variants. Availability depends on the model.
- Choose Flex under Only These Providers to restrict requests and fallbacks to the selected Flex endpoints. Leave this list empty to allow other providers.
- Choose Flex under Preferred Providers to try it first. With Allow fallback providers enabled, another provider can serve the request at its own rate, including standard pricing.
Selecting the base OpenAI provider does not opt into Flex. Flex offers lower pricing in exchange for higher latency and lower availability. Routing restrictions belong to the connection and remain in place if you change its model. OpenRouter service tiers
Anthropic Prompt Caching¶
Anthropic connections expose a per-connection prompt caching panel. Caching lets Anthropic reuse identical request prefixes between calls — you pay a small write cost on the cached call and get cheaper, faster reads on every subsequent call until the cache expires.
Settings¶
| Field | What it does |
|---|---|
| Enable Prompt Caching | Master switch. When off, every request hits Anthropic without cache_control. |
| Prompt Cache TTL | How long Anthropic should hold the cached prefix. 5 minutes is the default (cheapest writes). 1 hour keeps the cache alive across slower follow-up flows but costs more on the first write. |
| Use Automatic Caching | Lets Anthropic place the cache breakpoint at the last eligible block automatically. Recommended for most setups. |
| Cache Tools | Explicit breakpoint that caches your tool/function definitions. Worth turning on when you ship a large tool catalogue that's stable across calls. |
| Cache System Prompt | Explicit breakpoint on the system message. Best when your preset's system block is long and rarely changes mid-chat. |
| Cache Conversation Prefix | Explicit breakpoint on the conversation history up to the last user turn. Useful for long chats where the history grows but the bulk of it stays identical between calls. |
Automatic and explicit breakpoints can be combined. If you enable caching without ticking any breakpoint, Lumiverse falls back to automatic mode so the toggle never produces an empty cache_control.
When to Use Each Pattern¶
| Pattern | Best for |
|---|---|
| Automatic only (default) | Normal chat. Anthropic picks the optimal breakpoint for you and you don't have to reason about it. |
| Automatic + Cache System Prompt | Roleplay with a large preset / character card that's stable across the chat. Cuts repeated charges for the system block. |
| Cache Tools + System + Messages | Long agentic flows with tools where the entire prefix is reused for many short user turns. Maximises hit rate at the cost of more cache writes. |
| 5m TTL | Active chat where messages arrive at least every few minutes. |
| 1h TTL | Slower interactive use, or chats where you pause for long stretches between turns. Higher first-write cost is amortized across more reads. |
The connection card shows a compact summary (e.g. Cache 5m • auto + system) so you can verify the active configuration at a glance.
Caching pairs nicely with reasoning binds
A heavy reasoning model with prompt caching enabled keeps deep thinking affordable. Bind your high-reasoning Claude profile to the connection (see Binding Reasoning Settings) and turn on at least Cache System Prompt so the prefix isn't re-paid every reasoning hop.
Caching only helps when the prefix is byte-identical
A single character difference in the cached portion invalidates the cache. Macros that change on every call (timestamps, random values, etc.) will undermine system-prompt caching — keep volatile content out of cached blocks.
Z.AI Coding Plan¶
Z.AI ships two API URLs that share the same authentication but route to different upstreams:
| Endpoint | Path | Used for |
|---|---|---|
| General (default) | https://api.z.ai/api/paas/v4 |
Pay-as-you-go API access tied to your Z.AI account. |
| Coding Plan | https://api.z.ai/api/coding/paas/v4 |
Subscription Coding Plan keys (Z.AI's flat-rate plan for IDE/agent use). |
On a Z.AI connection, toggle Use Coding Plan Endpoint to route through /api/coding/paas/v4. Leave it off for normal API keys. Lumiverse rewrites the base URL accordingly — you don't have to edit the API URL field by hand.
Z.AI does not expose an OpenAI-compatible /models endpoint, so Lumiverse ships a built-in model list (glm-5.3-flash, glm-5.3, glm-5.2, glm-5.1, glm-5-turbo, glm-5, glm-4.7 family, glm-4.6, glm-4.5 family, glm-4-32b-0414-128k) and validates your key by sending a minimal chat/completions request rather than a model list call. This is what keeps Coding Plan keys working — they 404 the model list endpoint but accept chat requests fine.
Coding Plan keys reject /models
If you see "model list failed" errors on a freshly-saved Z.AI connection, you probably forgot to enable Use Coding Plan Endpoint — Lumiverse's chat-completion validation already handles this, but third-party tools that hit /models directly will fail.
Google Vertex AI¶
Vertex AI provides Gemini plus managed partner and open models from Model Garden. Lumiverse authenticates with a service account JSON rather than an API key and automatically selects each model family's required API protocol.
- Create a service account in your GCP project with the Vertex AI User role and download the JSON key.
- Create a connection with provider set to Google Vertex AI.
- Upload the service account JSON file.
- Pick a Region (e.g.
us-central1,europe-west4) in the Vertex metadata section, or leave it onglobalfor the global endpoint. - Enable each partner/open model on its Model Garden model card and accept any required terms.
- Refresh the model field to populate managed models from the Model Garden publisher catalogs.
Because Vertex routes by project + region, the API URL is derived automatically from your service account and region selection — there's nothing to fill in there yourself.
Gemini IDs can remain bare (for example, gemini-2.5-flash). Claude accepts either the model-card ID or an explicit anthropic/claude-... ID. Open MaaS models use the documented publisher/model form, such as meta/llama-3.3-70b-instruct-maas or deepseek-ai/deepseek-v3.1-maas. Lumiverse sends Claude through Vertex rawPredict using Anthropic's Messages format and sends open MaaS models through Vertex's OpenAI-compatible Chat Completions endpoint.
Only managed API (MaaS) models can be called directly by this connection. A self-deployed Model Garden model has its own Vertex endpoint ID and is not the same as a managed publisher model.
NanoGPT Usage¶
Prompt caching¶
For NanoGPT Claude models, Enable Prompt Caching sends NanoGPT's explicit caching helper. When Cache Cutoff Message Index is blank, Lumiverse derives a cutoff before the newest assistant turn and reserves six more history messages to reduce cache misses from recent prompt rewrites. Short prompts and requests without a completed assistant turn retain NanoGPT's automatic placement. Other model families keep their existing implicit caching behavior.
A pinned cutoff always takes precedence. Advanced connection metadata under nanogpt_caching also accepts autoCut: false to delegate placement to NanoGPT, and tailReserveMessages (a nonnegative integer, default 6) to adjust the reserve. Snake-case aliases auto_cut and tail_reserve_messages are accepted. Connection edits preserve these settings. Explicit Cache Control uses existing inline markers; the cutoff does not reposition them. NanoGPT prompt caching
The reserve is a heuristic, not a guarantee of cache hits. Presets with deeper regex windows may need a larger reserve. Changing content earlier in the prompt or trimming old context can still invalidate the cached prefix. The eight-message minimum for a derived cutoff is separate from the provider's minimum token requirement.
Balance and routing¶
The active NanoGPT connection shows your PAYG account balance, today's spend, this month's spend, and any available subscription quotas. Spend is net of refunds for this connection's API key and follows UTC dates. Other API keys' usage is not included. Unavailable account data appears as Unknown; refresh the card to retry. NanoGPT Usage API
Edit the connection and select a model to discover its available upstream providers and prices. Routing preferences are saved per model on that connection. Preferred providers specifies a soft order; Allowed providers restricts requests to that list; Excluded providers blocks selected providers. You can also choose a price, speed, throughput, or latency routing goal and control fallback. Displayed rates use USD per million tokens and already include provider-selection markup. Provider selection
Explicit provider selection can bypass subscription coverage and use your PAYG balance. Always use pay-as-you-go also forces balance billing when no provider is selected. Your NanoGPT API key must permit paid usage. Use Subscription API keeps these PAYG settings inactive until you turn it off. Billing override
Provider Capabilities¶
Not all providers support all features:
| Feature | Support |
|---|---|
| Text generation | All providers |
| Streaming | All providers |
| Vision (image input) | OpenAI, Anthropic, Google, and models that support it |
| Audio input | Select OpenAI models |
| Function calling | OpenAI, Anthropic, Google, and compatible providers |
| Structured output | Provider-dependent (see below) |
Structured Output¶
Different providers handle structured output differently:
- Google Gemini — Pass
responseMimeTypeandresponseSchemain parameters - OpenAI-compatible — Pass
response_formatin parameters - Anthropic — Use tool definitions for structured output