API (Application Programming Interface)

An API is a set of rules that lets different software systems communicate with each other. For vibe coders, APIs are how your app connects to services like AI models, payment processors, databases, and third-party tools — they're the bridges that make modern software work.

Example

Your app calls the Stripe API to process a payment, the OpenAI API to generate text, and a weather API to show forecasts. Each API has specific endpoints you call with specific data, and they return structured responses.

APIs are everywhere in vibe-coded applications. Almost every feature you build connects to an API — understanding them helps you describe what you want to AI.

APIs in Plain English

Think of an API like a restaurant menu:

  • The menu lists what's available (API documentation)
  • Your order is the request (API call)
  • The kitchen processes it (the server)
  • Your food is the response (data returned)

You don't need to know how the kitchen works — you just need to order correctly.

Common APIs Vibe Coders Use

ServiceWhat It Does
OpenAI / AnthropicAI text generation
StripePayment processing
SupabaseDatabase and auth
ResendEmail delivery
VercelDeployment
GitHubCode hosting

How API Calls Work

  1. Your app sends a request — "Create a new customer with this email"
  2. The API processes it — Validates data, performs the action
  3. The API sends a response — "Customer created, here's their ID"
  4. Your app uses the response — Shows confirmation to the user

APIs and AI

When you tell AI to "integrate Stripe payments" or "add email notifications," it's writing API integration code. The better you understand what APIs do, the better you can guide AI to use them correctly.