KI- und LLM-API-Glossar

Concise engineering definitions of 30 essential AI & LLM API terms covering tokens, streaming, Anthropic Messages, OpenAI Responses, tool calling, multimodal endpoints, and prepaid ST billing.

30 AI & LLM API Definitions

Token
The smallest unit of text processed by an LLM (roughly 3–4 English characters or 1–2 Vietnamese syllables); API token billing is metered per 1M input and output tokens.
Context Window
The maximum number of combined input and output tokens a model can attend to in a single request, ranging from 128K up to 2M tokens.
TTFT (Time to First Token)
Latency in milliseconds from sending an API request until the first streamed output token arrives; critical for interactive chat responsiveness.
TPS (Tokens Per Second)
Generation throughput measuring how many output tokens a model emits per second during SSE streaming.
Anthropic Messages API
Anthropic's native POST /v1/messages protocol supporting Claude models, Prompt Caching, Extended Thinking, and native tool calling.
OpenAI Responses API
OpenAI's unified POST /v1/responses stateful/agentic endpoint designed for multi-turn tool loops, Codex CLI, and structured reasoning.
Chat Completions API
The universal POST /v1/chat/completions schema popularized by OpenAI and supported across GPT, DeepSeek, Gemini, Qwen, Kimi, GLM, and Grok.
SSE Streaming
Server-Sent Events delivery (stream: true) that pushes incremental text deltas over HTTP in real time so users see output immediately.
Tool Use
Capability allowing a model to emit structured tool invocation payloads so the host application can query APIs, databases, or local shells.
Structured Outputs
Schema-constrained decoding ensuring the model's JSON response strictly matches a declared JSON Schema with zero parse failures.
Extended Thinking
Dedicated internal reasoning budget where frontier models deliberate step-by-step before emitting the final answer.
Prompt Caching
Server-side caching of repeated system instructions, codebases, or long documents to cut token cost and TTFT on subsequent calls.
MCP (Model Context Protocol)
Open protocol standardizing how AI agents and IDEs securely connect to external data sources, tools, and prompts.
Embeddings
Dense floating-point vectors generated via POST /v1/embeddings representing semantic meaning for vector search and RAG.
Rerank
Cross-encoder scoring via POST /v1/rerank that reorders retrieved RAG passages by true relevance before passing them to an LLM.
Batch API
Asynchronous bulk-processing workflow for running large offline datasets of prompts without real-time latency requirements.
Rate Limit (RPM / TPM)
Throughput ceilings measured in Requests Per Minute (RPM) and Tokens Per Minute (TPM) protecting gateway stability.
Vision & Multimodal
Ability to process images, charts, screenshots, PDFs, or audio alongside text inside a single model prompt.
Image Generation API
POST /v1/images/generations and /v1/images/edits endpoints creating or editing high-resolution images from text prompts and reference pictures.
Text-to-Video API
POST /v1/videos endpoint synthesizing motion video clips from text prompts or keyframes with configurable duration and resolution.
Realtime Voice API
Low-latency bidirectional audio streaming over WebSockets or HTTP for natural voice assistants, STT, and TTS.
Credit ST
Prepaid billing unit on the API gateway (1 VND = 1 ST) shared seamlessly across every text, image, and video model under one balance.
Pre-hold Billing
Atomic balance reservation made before dispatching an upstream request and settled immediately to exact usage upon completion.
OpenAI-Compatible Gateway
Unified proxy exposing standard /v1/ endpoints so any OpenAI SDK, IDE, or agent switches between 180+ models by changing only base_url and api_key.
Fallback Routing
Automated multi-upstream failover that reroutes requests to healthy backup channels whenever an upstream errors or slows down.
Model Alias
Short or stable model identifier automatically mapped by the gateway to the active underlying model version and optimal routing lane.
Temperature & Top-P
Sampling hyperparameters controlling output randomness (temperature) and cumulative probability cutoff (top_p) during token generation.
System Prompt
High-priority instruction block setting the model's persona, constraints, formatting rules, and domain boundaries across a conversation.
JSON Mode
Response constraint (response_format: json_object) guaranteeing syntactically valid JSON output for reliable downstream parsing.
Function Calling
Structured mechanism where developers pass typed function definitions and the model returns validated arguments to invoke them.