Core Concepts

What is API (Application Programming Interface)?

A way for developers to programmatically access AI models in their own applications.

Definition

In the AI context, an API allows developers to send prompts to AI models (like GPT-4 or Claude) and receive responses programmatically, without using the chat interface. This enables building AI-powered applications, automating workflows, and integrating AI into existing software. APIs charge per token used.

๐Ÿ’ก Example

A developer building a customer support chatbot would use the Claude API to send customer messages as prompts and receive AI-generated responses, which are then displayed in the chat widget on their website.

Related concepts

Token

The basic unit of text that AI models process โ€” roughly 4 characters or 0.75 words.

โ†’
Inference

The process of running a trained AI model to generate predictions or outputs.

โ†’

Explore AI tools

Find tools that use api (application programming interface) in practice.

Browse all tools โ†’ Back to glossary
What is API (Application Programming Interface)?

In the AI context, an API allows developers to send prompts to AI models (like GPT-4 or Claude) and receive responses programmatically, without using the chat interface. This enables building AI-powered applications, automating workflows, and integrating AI into existing software. APIs charge per token used.

How does API (Application Programming Interface) work in practice?

A developer building a customer support chatbot would use the Claude API to send customer messages as prompts and receive AI-generated responses, which are then displayed in the chat widget on their website.