Blog6 min read

Use SolCard Inference in AnythingLLM (Generic OpenAI)

Set AnythingLLM’s Generic OpenAI provider to SolCard Inference: base URL, model ID, the 1,024-token Max Tokens default, embeddings, agents and telemetry.

Contents

To run AnythingLLM on SolCard Inference, pick the Generic OpenAI provider, set the Base URL to https://api.solcardinference.ai/v1, paste an sk-si- key and type a model ID such as solcard-inference-fast. Then change two numbers AnythingLLM won’t guess for you: the context window and Max Tokens. The rest of this post covers those, plus the parts of AnythingLLM that don’t go through the chat model at all: embeddings and telemetry.

What you need

  • A key. Create one on the API keys page at app.solcardinference.ai. It starts with sk-si- and is shown once (quickstart).
  • A balance. Every request draws from your prepaid USD balance. How billing works explains what a request costs.
  • A model ID: solcard-inference-fast, solcard-inference-large or solcard-inference-base. Fast, Large or Base helps you pick.

The Generic OpenAI fields

Use the Generic OpenAI provider, not OpenAI. AnythingLLM’s Generic OpenAI page describes it as a wrapper for any provider that is OpenAI-compatible in its API and response format. It’s under the LLM settings, and you can change it later in Settings.

FieldValue
Base URLhttps://api.solcardinference.ai/v1
API Keyyour sk-si-... key
Modelsolcard-inference-fast (or -large, -base)
Model context windowsee below
Max Tokenssee below

The docs say to set Base URL to “the API root,” such as https://llm.example.com/v1, “not the full /chat/completions URL.” They also say to use “the exact model ID that the endpoint serves,” so type the ID as written above.

Then test it small. The same page says to send a short prompt in an empty workspace before you try document chat or agents. If that answers, the URL, key and model are right.

On a Docker or server install, the same settings can come from the .env file. The Generic OpenAI page names GENERIC_OPEN_AI_MODEL_TOKEN_LIMIT for the context window and GENERIC_OPEN_AI_MAX_TOKENS for Max Tokens.

Raise Max Tokens from 1,024

AnythingLLM’s Max Tokens defaults to 1024, which is short for our models. The Generic OpenAI page calls Max Tokens “the output-token limit sent with each chat and agent request,” sent as max_tokens by default.

The default bites hardest on Large. Our reasoning guide says solcard-inference-large “always reasons” and that “Reasoning tokens are billed as output.” It also says that with reasoning on, “the output limit is at least 256 tokens so the answer is not starved by the thinking,” so thinking and answer share one output budget. A long answer from Large can run out of room at 1,024.

Pick a number that fits your answers, up to our cap of 32,768 output tokens per request. Something like 8,192 leaves room for reasoning and a long reply. The Max Tokens limit only matters when a reply runs long, since you pay for the tokens actually generated, not for the limit.

AnythingLLM also lets you set Max Tokens to 0, which its docs say removes the limit from the request “so the provider’s own default applies.” Setting a number keeps the limit in AnythingLLM, where you can see it.

Set the context window honestly

The context window field is a budget, not a capability. AnythingLLM uses it to decide how much of your system prompt, chat history and retrieved document text to pack into each request. Its docs say to use the model’s real size, because “a larger value does not expand the model.”

Fast and Large have about 1M tokens of context and Base has 262k. Those are ceilings, not targets. Every token AnythingLLM packs in is input you pay for, on every message. A smaller budget keeps long chats cheaper, at the cost of the model forgetting earlier turns sooner. Never set it above the model’s real size: switching a workspace from Fast to Base with a 1M budget would ask Base to take more than it can.

Embeddings stay local, or go elsewhere

Our API doesn’t do embeddings, so document chat needs a separate embedder. We cover OpenAI Chat Completions, OpenAI Responses and Anthropic Messages, and embeddings aren’t on that list. The chat model only sees the chunks AnythingLLM retrieves.

That’s fine by default. AnythingLLM’s built-in embedder “runs on CPU” and is the default choice. Its page says it downloads 25 MB on first use, wants at least 2 GB of free RAM, and is “primarily trained on English documents.” If you switch to a cloud embedder, your documents go to that service, whatever you’ve set for the chat model.

Agents and the @agent prefix

Agents use the workspace’s LLM unless you change it. The agent setup page says a workspace uses “the system LLM for agentic chat sessions,” and that you can change the model and provider per workspace. That’s one way to put Fast on everyday chat and Large on agent runs.

If an agent doesn’t use its tools, start the message with @agent. AnythingLLM’s agent usage page says not every provider lets it tell whether the model can use tools, “so you may need to use the @agent directive.” An agent run makes several requests per question, so expect it to cost more than a plain chat.

Telemetry is AnythingLLM’s, not ours

AnythingLLM sends usage events unless you turn them off. Its README lists events such as “When a chat is sent,” with “no information on the nature or content of the chat itself.” To opt out, go to the sidebar > Privacy and turn off telemetry, or set DISABLE_TELEMETRY="true" in the server or Docker .env.

On our side, prompts and responses are never logged or stored. Your chat history lives in AnythingLLM, not in our chat app, so it’s kept wherever AnythingLLM runs. Keeps nothing follows one message through our side.

What a document chat costs

A document question sends more than your question. It also carries the system prompt, retrieved chunks and recent history. Say each question sends 6,000 input tokens and gets 600 back:

ModelPer questionPer 100 questions
Fastabout $0.009about $0.90
Baseabout $0.010about $0.98
Largeabout $0.026, plus reasoningabout $2.63, plus reasoning

That’s before any cached-input discount. A tighter context window and fewer retrieved chunks lower the input side.

Troubleshooting

  • “Model not found” or no reply: check the model ID for typos and that Base URL ends in /v1.
  • Answers stop mid-sentence: raise Max Tokens.
  • Chat works but streaming doesn’t: AnythingLLM’s configuration page has GENERIC_OPENAI_STREAMING_DISABLED="true", which returns whole replies instead of streamed chunks.
  • Images: our models are text only. For files, use AnythingLLM’s document upload, which embeds the text and sends the model chunks of it.

FAQ

Does AnythingLLM fetch our model list? The Generic OpenAI page doesn’t say it does. It asks for “the exact model ID that the endpoint serves,” so enter solcard-inference-fast, -large or -base as written.

What should Max Tokens be? Above the 1,024 default and at or below our 32,768 cap. Large reasons on every request, and the reasoning shares the output budget, so give it room.

Can I use SolCard Inference for embeddings? No. Keep AnythingLLM’s built-in embedder or pick another embedder.

Does SolCard Inference see my documents? Only the chunks AnythingLLM sends with each question, and we don’t log or store them. The embedder and AnythingLLM’s own storage are separate.

Bring the prompt that got refused.

Private. No refusals. In the app, or in the tools you already use.

Pay in crypto. No KYC.