Last updated: April 5, 2026 · Pricing & Deployment · by Daniel Ashford
What is API (Application Programming Interface)?
The technical interface that lets your software send prompts to an LLM and receive responses.
Definition
An API is the programmatic interface that allows developers to integrate language model capabilities into their applications. Developers send HTTP requests to an API endpoint with their prompt and receive the model response in JSON format.
How It Works
All major LLM providers offer APIs: OpenAI, Anthropic, Google, and others. API access enables building custom applications, automating workflows, and processing data at scale. Pricing is usage-based per token. Most APIs support streaming, system prompts, function calling, and vision.
Example
A developer building a chatbot sends each customer message to the Claude API and receives the model suggested response in their chat interface.
Related Terms
See How Models Compare
Understanding api (application programming interface) is important when choosing the right AI model. See how 12 models compare on our leaderboard.