Skip to main content

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โ€‹

ActionCredit TypeCalculationExample
Upload document to KBWord-based1 credit per 10,000 words100,000 words โ†’ 10 credits
LLM processing during ingestionToken-basedInput + Output tokens ร— model rateVaries by model

Example โ€“ 100,000 Word Document

KB Processing Cost
100,000 words1 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

ActionCredits
User sends a chat message1โ€“2 credits (based on configuration)
Tool call invoked1 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

ComponentCredits
Question asked1
Tool calls (document retrieval)2
Fixed Platform Credits3 credits

LLM Token Usage

TypeTokensCost
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.