One ledger for language, voice, image, and video APIs. Compare billing units and source-linked rates, then model the work your product will actually run.
31 tools trackedMost recent source review: September 26, 2026Sources: linked public pricing pages and API documentation
Browse by category
01 / 5 tools
Video Generation
API video generation, with clip-based and per-second rates kept distinct.
Artificial intelligence is a broad field: systems can classify information, make predictions, find patterns, or generate new material. A model is only one part of an AI product. Data sources, instructions, software tools, safety checks, and the way people use its output all affect the result.
This guide introduces the main ideas behind common AI APIs, how to test an AI feature, and why the cheapest model is not always the best fit. It is written for curious readers and developers who want a clear starting point rather than a model leaderboard.
DIAGRAM 01 / MODEL LIFECYCLETraining prepares a model. Inference uses it.
TRAINING
01ExamplesSelected data and desired patterns
→
02LearningParameters are adjusted
→
03Trained modelEvaluated before release
INFERENCE
01New requestPrompt, context, or media
→
02Model responsePrediction or generated output
→
03App reviewValidate, display, or act on it
Most API calls are inference, not a fresh training run. The application decides what context to send and what checks happen before a response reaches a person.
01 / Foundations
AI is a family of methods, not one product
Machine learning is one approach within AI. Instead of encoding every decision as a fixed rule, developers train a model to learn patterns from examples. A classifier might label a support message; a recommendation system might rank items; a generative model might draft text or create an image. Each solves a different kind of problem and needs a different success measure.
Training fits a model from data; inference is using an already-trained model to respond to a request. An API request can include instructions, conversation history, documents, or media. Language models process text in tokens: a token can be a word, part of a word, punctuation, or another piece. Token counts therefore differ from word counts and affect usage limits and many API bills.
Language models can draft, summarize, classify, or extract structured data. Image, speech, and video systems handle different inputs and outputs; multimodal models work across more than one kind of media. Check the actual endpoint for supported formats, file limits, context windows, and output controls. Compare equivalent tasks with the same quality, resolution, and duration.
Retrieval can bring approved documents into a request
Retrieval-augmented generation (RAG) is a pattern in which an application searches its own document collection, selects relevant passages, and supplies them to a model with the question. Semantic search can find related meaning even when wording differs. The model can then draft an answer grounded in those passages, but retrieval can miss the right source or surface outdated material.
Prompts, retrieval, and tuning solve different problems
A prompt gives instructions and context for one request. Retrieval supplies relevant external material that can be refreshed separately. Fine-tuning, when a provider supports it, adapts a model using examples for a repeated task or output style. Tuning is not a live search engine: changing facts still need a current source. Start with a clear prompt and representative tests before taking on a training workflow.
A model can request an action; your software controls it
With tool or function calling, a model can return a structured request such as looking up an order or searching a database. The application validates the request, checks permissions, runs the function, and sends the result back to the model. The model does not automatically have access to every system. Keep credentials and authorization in your application, and require human approval for consequential actions.
A benchmark or polished demo cannot tell you whether a model fits your product. Build realistic examples, include difficult edge cases, and define what a good result means before testing. Compare models with the same inputs and settings. Track correctness, consistency, response time, and cost together. For creative tasks, use a clear human rating rubric because there may be several acceptable answers.
Generative systems can produce incorrect, incomplete, or biased output, and model behavior can change between versions. Verify important claims against reliable sources. Before sending private or regulated information to an API, read the provider's data-retention, training, and access terms. For consequential uses, plan human review, permissions, fallback behavior, and a way to report problems.
For a text API with separate input and output rates: input tokens / 1,000,000 x input rate, plus output tokens / 1,000,000 x output rate. A monthly budget should also account for average request size, output length, retries, caching, tools, and traffic peaks. Image, voice, and video services may use different units such as image, character, second, or clip, so a token-only estimate will not cover them.
DIAGRAM 02 / DOCUMENT RETRIEVALGive an answer relevant source material to work from.
RAG
01QuestionUser asks a question
→
02SearchFind related passages
→
03ContextSend sources with the prompt
→
04ResponseAnswer can cite its sources
Retrieval does not guarantee that sources are complete or correct. Show the source passages, test search quality, respect document permissions, and make it easy for a person to verify an answer.
DIAGRAM 03 / TOOL CALLINGUseful actions still pass through application checks.
TOOL USE
01RequestA user asks for help
→
02Tool proposalModel returns arguments
→
03App executesValidate, authorize, run
→
04ResultReturn data for a response
Keep side effects explicit. A tool that reads public data has a different risk from one that changes an account, sends a message, or moves money.
A practical starting point
Before you ship an AI feature
Use a repeatable check instead of choosing from a demo alone.
Define the user task and what counts as a correct result.
Test representative inputs, including ambiguous and difficult cases.
Compare quality, response time, and full workload cost.
Review data handling, add a fallback, and monitor real use.
A short AI glossary
Model
A learned system that maps inputs to predictions or generated outputs.
Prompt
The instructions and context supplied with a model request.
Inference
Running a trained model to produce a response or prediction.
Context window
The model-specific limit on input and output in one request.
Embedding
A numeric representation used to compare meaning or find related material.
Retrieval
Finding relevant information from a separate source collection.
Evaluation
A planned way to measure output quality against examples and criteria.
Tool call
A structured request for the application to run a defined function.
Multimodal
A system that can work with more than one type of input or output.
API Ledger is a pricing comparison, not a model quality ranking. Listings link to provider documentation and show when their displayed model, billing unit, and rate were reviewed. Read how pricing data is collected or explore the API pricing guide.