Inference
Inference is the process where an already trained AI model processes an input and produces an output, as opposed to training, where the model itself is adjusted.
Inference is the processing of an input by an already trained model. The result may be text, a classification or a numerical prediction.
The model parameters are generally not changed during this process. This distinguishes inference from training or fine-tuning, where parameters are adjusted.
The cost of inference
Inference cost arises with every use and may account for a substantial part of total operating cost.
Important factors include the model and hardware, input and output length, request volume and concurrency, and requirements for response time and availability.
A larger model is not automatically the most economical choice. What matters is which model achieves the required quality under the relevant operating conditions.
Cloud API versus self-hosted inference
Inference may run through a managed API, a dedicated cloud environment or privately operated hardware.
APIs provide variable cost and limited operational work. Private infrastructure provides fixed capacity and greater control, but requires investment, utilisation planning, maintenance and responsible staff.
The economical choice can be determined only from the specific load profile and full operating cost.
Latency and context length as additional levers
Response time depends on factors including the model, hardware, utilisation, network, input context length and generated output length.
Interactive or time-sensitive applications should therefore provide only the necessary context. Realistic load tests show whether the chosen architecture meets its targets.
Related terms
Related terms
Large Language Model (LLM)
A large language model is an AI model trained on large amounts of text that processes language patterns to generate, summarise and edit text.
View term
Context Window
The context window is the maximum amount of text, measured in tokens, that a language model can process at once in a single request.
View term
Related topics
Related topics
Private AI Infrastructure
We determine whether private AI infrastructure is appropriate for your use case and which data, security and operational questions need to be resolved first.
View overview
Related services
Related services
Infrastructure
For AI, automation and software systems with clear technical requirements for data, availability and operations.
View overview
What would you like to assess or build?
Briefly describe the situation, your objective and the systems involved. We will respond with a technical assessment and a practical next step.