AI API glossary
Short, plain-English definitions of the terms you meet when calling AI models through an API, each linked to the models and guides where it matters.
B
C
- Context window
- The most text a model can take in one request, counted in tokens.
E
- Embeddings
- Lists of numbers that capture what a text means, used for search.
F
- Fine-tuning
- Training a model further on your own examples to change its behavior.
- Function calling
- Letting a model ask your code to run a tool and use the result.
G
- GPU memory (VRAM)
- The memory on a graphics card that holds a model's weights while it runs.
I
- Image-to-video
- Animating a still image into a video clip.
L
- Latency (TTFT)
- How long a request takes; TTFT is the wait until the first token.
- LLM gateway
- One endpoint in front of many model providers.
M
- Max tokens
- The most tokens a model may write in one reply.
- Multimodal model
- A model that works with more than text: images, audio or video.
O
- OpenAI-compatible API
- An API that accepts the same requests as OpenAI's, so OpenAI SDKs work with it.
P
- Parameters
- The learned numbers inside a model; their count is a rough measure of its size.
- Per-second billing
- Paying for a generated video by the length of the clip.
- Prompt caching
- Reusing the repeated start of a prompt so later requests read it at a lower price.
Q
- Quantization (4-bit / 8-bit)
- Storing a model's weights with fewer bits so it needs less memory.
R
- RAG (retrieval-augmented generation)
- Fetching relevant documents first and giving them to the model with the question.
- Rate limit (429)
- A cap on requests or tokens per minute; going over returns HTTP 429.
- Reasoning tokens
- Tokens a model writes while thinking before its answer, billed as output.
- Reranking
- Re-sorting search results by how well each one answers the query.
S
- Self-hosting
- Running a model on servers you control instead of calling an API.
- Sparse MoE (Mixture of Experts)
- A model built from many expert networks, of which only a few run for each token.
- Speech-to-text
- Turning recorded speech into written text.
- Streaming
- Receiving a model's answer piece by piece while it is still being written.
- Structured output
- Making a model reply in JSON that matches a schema you give.
T
- Temperature
- A setting that makes a model's replies more predictable or more varied.
- Text-to-video
- Generating a video clip from a written prompt.
- Tokens
- The small pieces of text a model reads and writes, and the unit it is billed in.
V
- Video upscaling
- Raising a generated clip's resolution after it is made, for example to 4K.