EKB Credit Consumption Guide
Platform: EKB
Credits in Enterprise Knowledge are consumed in two ways:
Platform Action Credits
Charged when users perform specific actions (uploading documents, sending messages, invoking tools).
LLM Token Credits
Charged based on actual Large Language Model (LLM) usage, calculated from:
โข Input tokens (prompt, document chunks, system context)
โข Output tokens (LLM response)
LLM usage is converted into credits based on our pricing model.
Credit Consumption Tableโ
A. Knowledge Base (KB) Ingestionโ
| Action | Credit Type | Calculation | Example |
|---|---|---|---|
| Upload document to KB | Word-based | 1 credit per 10,000 words | 100,000 words โ 10 credits |
| LLM processing during ingestion | Token-based | Input + Output tokens ร model rate | Varies by model |
Example โ 100,000 Word Document
| KB Processing Cost | |
|---|---|
| 100,000 words | 1 credit per 10,000 words โ 10 credits |
LLM Token Cost (Ingestion)
LLM Token Cost is applied when the project is configured to use LLM Extraction (i.e., an LLM is used to extract the data from the document), and it is calculated based on:
โข Input tokens from document parsing
โข Output tokens generated
โข Model pricing
B. Chat / Agent Interactionโ
Fixed Platform Credits
| Action | Credits |
|---|---|
| User sends a chat message | 1โ2 credits (based on configuration) |
| Tool call invoked | 1 credit per tool call |
Variable LLM Token Credits
LLM credits are calculated as:
(Input Tokens ร Input Rate) + (Output Tokens ร Output Rate)
Example pricing (Claude 4.5 sample model):
โข Input: $3 per 1M tokens
โข Output: $15 per 1M tokens
Full Chat Exampleโ
Scenario
User asks: "Explain the attached document."
Platform Credits
| Component | Credits |
|---|---|
| Question asked | 1 |
| Tool calls (document retrieval) | 2 |
| Fixed Platform Credits | 3 credits |
LLM Token Usage
| Type | Tokens | Cost |
|---|---|---|
| Input | ~53,634 tokens | ~$0.161 |
| Output | ~900 tokens | ~$0.0135 |
| Total LLM Cost | โ | ~$0.1745 |
Converted to credits: 17 credits
Final Total
Fixed platform credits: 3
LLM usage credits: 17
โโโโโโโโโโโโโโโโโโโโโโโโโ
Total: 20 credits
Cost Calculation Formula Summaryโ
Document Upload
Word Credits = Total Words รท 10,000 + LLM Token Credits (Parsing)
Chat Message
Fixed Message Credit + Tool Call Credits + LLM Token Credits (Input + Output)
What Drives LLM Credit Usage?โ
LLM cost increases when:
โถ Large documents are retrieved into context
โถ Many KB chunks are injected into the prompt
โถ Responses are long or structured
โถ Multiple tool calls are triggered
โถ Higher-cost models are selected
Important Notes for Customersโ
โ Word-based ingestion cost is predictable.
โ Chat costs vary significantly depending on document size and the number of tokens used.
โ Model pricing is configurable in Super Admin.
โ LLM credits are consumption-based and cannot be flat-rated.
โ Final credit total = Platform Credits + LLM Credits.