Softwr

AI Agent Builders · head to head

Mastra vs Vapi

Mastra logo

Mastra

AI Agent Builders

Open-source TypeScript framework for building AI agents, workflows and apps

From
Free
Free plan
Yes
Vapi logo

Vapi

AI Agent Builders

Developer platform for voice AI agents, billed per minute with $29 and $999 support packages

From
Free
Free plan
Yes

The short version

  • Mastra is an Apache 2.
  • Free plans on both; paid from $25/mo and $29/mo.
  • Only Mastra lists agents with tools and instructions; only Vapi lists provider choice.
  • Where Mastra falls short: code-first, so non-developers cannot build agents with it.
  • Where Vapi falls short: total per-minute cost is spread across several provider lines, so it is hard to forecast.

How do Mastra and Vapi differ?

Mastra and Vapi differ on pricing model and platforms (Web against Web, API). Only the attributes on which Mastra and Vapi actually diverge.

Attributes where Mastra and Vapi differ
AttributeMastraVapi
Pricing modelOpen-sourcePer minute of use plus optional monthly packages
PlatformsWebWeb, API

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for Vapi.

Which features does each one have?

They share no listed features; 8 appear only for Mastra and 6 only for Vapi. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Mastra

  • Agents with tools and instructions
  • Typed workflows with branches and retries
  • Human-in-the-loop pause and resume
  • Memory and semantic recall
  • Evals, datasets and tracing
  • Routing to 90+ model providers
  • MCP server support
  • Deployers for Vercel, Netlify and Cloudflare

Only in Vapi

  • Provider choice
  • Phone numbers
  • Concurrent calls
  • Data retention
  • Compliance options
  • Add-ons

What is each one used for?

Mastra is most often brought in for customer support agents; Vapi for building an appointment-booking phone agent. The jobs each tool is most often brought in to do.

Mastra

  • Customer support agentsnot Vapi
  • Internal knowledge searchnot Vapi
  • Coding agentsnot Vapi
  • Incident response automationnot Vapi
  • Agents inside Next.js appsnot Vapi

Vapi

  • Building an appointment-booking phone agentnot Mastra
  • Prototyping with free creditsnot Mastra
  • Scaling inbound support lines to 30 concurrent callsnot Mastra
  • Choosing different speech and language providers per use casenot Mastra

Where do Mastra and Vapi fall short?

Mastra's most cited limit: code-first, so non-developers cannot build agents with it. Vapi's: total per-minute cost is spread across several provider lines, so it is hard to forecast. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Mastra

  • Code-first, so non-developers cannot build agents with it
  • TypeScript only, so Python teams cannot use it directly
  • Hosted platform overage is billed by usage on compute, egress and events
  • Enterprise features use a separate source-available licence

Vapi

  • Total per-minute cost is spread across several provider lines, so it is hard to forecast
  • Only 4 concurrent calls are included by default
  • The Pro package jumps to $999 a month minimum
  • Retention is only 14 days on the base tier
  • It is a developer platform, so non-technical teams need engineering time

How much do Mastra and Vapi cost?

Mastra has a free plan, with paid plans from $25/mo; Vapi has a free plan, with paid plans from $29/mo. Plan by plan below, from each vendor's own pricing page.

Mastra

Free
  • FreeFree
    • 100K observability events
    • 10 GB shared egress
    • 5 connections
  • Starter$25/mo
    • 250K observability events
    • 25 GB shared egress
    • Usage alerts
  • Team$250/mo
    • 10M observability events
    • 50 GB shared egress
    • SOC 2 report

Vapi

Free
  • By UsageFree
    • $5 free credits
    • 2 organisations
    • 1 phone number
  • Core$29/mo
    • 5 phone numbers
    • 10 concurrent calls
    • 30 days retention
  • Pro$999/mo
    • Or 10% of Vapi hosting fee, $999 minimum
    • 30 concurrent calls
    • 180 days retention
  • PremierOn request
    • Custom
    • Named support team
    • 99.9% uptime SLA

Which should you pick?

Choose Mastra if

  • You need agents with tools and instructions.
  • You want to start without paying.
  • You also want typed workflows with branches and retries.

Choose Vapi if

  • You need provider choice.
  • You want to start without paying.
  • You work on Web, API.
  • You also want phone numbers.

Questions people ask

Is Mastra or Vapi better?
It depends on the job. Mastra fits customer support agents; Vapi fits building an appointment-booking phone agent. Mastra starts at Free and Vapi at Free.
Which is cheaper, Mastra or Vapi?
Mastra starts at Free and Vapi at Free.
Does Mastra or Vapi run on more platforms?
Mastra runs on Web. Vapi runs on Web, API.
Can I use Mastra for free?
Both have a free tier, so you can try either at no cost before committing.
What is Mastra best used for?
Mastra is most often used for customer support agents, internal knowledge search, coding agents, incident response automation. Of those, customer support agents and internal knowledge search are not what Vapi is typically brought in for.
What can Mastra do that Vapi cannot?
Mastra covers Agents with tools and instructions, Typed workflows with branches and retries, Human-in-the-loop pause and resume, Memory and semantic recall. Vapi covers Provider choice, Phone numbers, Concurrent calls, Data retention.

Answered from the vendors’ own pages

Mastra: Is Mastra free?

The core framework is open source under Apache 2.0, and the hosted platform has a Free plan at $0 a month.

Source
Vapi: Is there a free tier?

Yes, $5 in free credits to start.

Mastra: What language is Mastra written for?

Mastra is a TypeScript framework, aimed at developers using Node.js, React and Next.js.

Source
Vapi: How is it billed?

Per minute of use, with optional monthly success packages.

Mastra: How many model providers does it reach?

The vendor lists access to 90+ providers through one interface.

Source
Vapi: Does it support HIPAA?

A HIPAA compliance add-on is listed.

Share

Related pages

Other head to heads