Skip to content
All comparisons

API mocking tools, compared

A mock is useful while it matches the spec. This page compares hosted API mock servers on how they answer, whether they run your code, and how they stay in step with the API description.

6 products, compared from their own documentation.

The products, one by one

What each is, its strong points, its limits, and who it suits.

APIGit

A Git-native platform for API design, documentation, mock servers and governance

APIGit serves a mock from a commit of your repository at its own URL. A spec-based mock answers from OpenAPI documents or a GraphQL schema and validates requests; a code-based mock runs your Express.js scripts when responses need logic and state.

Best for:
Teams that want the mock versioned together with the spec
Price:
Free for one user. Team: $24 a month, 3 seats included; $8 per further seat.

Strong points

  • The mock is pinned to a commit or follows a branch, so it cannot drift from the spec
  • Request validation against the OpenAPI document
  • Express.js scripts with state for code-based mocks
  • The same mock on your machine with apigit mock serve

Limits

  • Code-based mocks need the Team or Enterprise plan
  • No AsyncAPI or event mocks

Postman

An API client and testing platform, by Postman, Inc.

A Postman mock server answers from the examples saved in a collection, matching the request to the closest example, and paid plans add JavaScript code mocks.

Best for:
Teams whose examples already live in collections
Price:
Free for one user. Solo $9 a month and Team $19 per user a month, billed yearly.

Strong points

  • Mock servers on every plan
  • Example matching with dynamic variables and templates
  • JavaScript code mocks on Solo and above
  • The client that calls the mock is in the same app

Limits

  • Responses come from saved examples unless you write a code mock
  • The mock follows the collection, not a commit of the spec

SwaggerHub

An API design platform, now named Swagger Studio, by SmartBear

SwaggerHub's Auto Mocking creates a mock for an API version from the examples and schemas in its definition, with nothing to configure.

Best for:
A quick static mock while designing in Swagger Studio
Price:
Individual, Team, Enterprise and Enterprise Plus plans; prices are not published.

Strong points

  • A mock for every API version with one integration
  • Always generated from the current definition

Limits

  • No business logic
  • Limited to 10 requests a minute per API version

Stoplight

An API design and documentation platform, by SmartBear

Stoplight hosts Prism, its open-source mock server. It answers from the examples in the OpenAPI file or generates data from the schema, and validates the requests it receives.

Best for:
Teams that want generated data with no scripting
Price:
Free for one user and one project. Basic $44 a month billed yearly with three users.

Strong points

  • Dynamic responses generated from the schema
  • Request validation
  • Prism is open source and runs locally or in CI

Limits

  • No custom scripts or state
  • Hosted mocks belong to a Stoplight project

Apidog

An all-in-one API design, debugging, testing, mock and documentation platform, by Apidog

Apidog generates mock responses from the schema with its Smart Mock, lets you add expectations with conditions, and runs JavaScript mock scripts, locally in the app or in the cloud.

Best for:
Front-end teams that want believable data without writing examples
Price:
Free for up to four users. Basic from $9 per user a month.

Strong points

  • Realistic data from field names and types with no setup
  • Conditional expectations with Faker and templates
  • Local and cloud mocks

Limits

  • Mock scripts run with Smart Mock only
  • The mock follows the project, not a commit of a spec file

Insomnia

An open-source API client with a spec editor, by Kong

Insomnia creates mock servers in its cloud or self-hosted with Mockbin, on every plan. Routes return the responses you define, with templates and generated data for dynamic values.

Best for:
Developers mocking a few routes while they debug
Price:
Free Essentials plan. Pro $12 per user a month.

Strong points

  • Cloud and self-hosted mocks on the free plan
  • Dynamic values from templates and generated data
  • The client that calls the mock is in the same app

Limits

  • Routes are defined by hand rather than served from the spec at a commit
  • 1,000 cloud requests a month on the free plan, 10,000 on Pro

Side by side

Each product name opens its full comparison with APIGit.

FeatureAPIGitPostmanSwaggerHubStoplightApidogInsomnia
Git and version control
Where your API files liveYes:Its own Git repositoryPartly:Postman Cloud, or your repoNo:Its own registryPartly:Your repo, or StoplightPartly:Its own project storePartly:Device, cloud or your repo
Clone and push with any Git clientYes:HTTPS and SSHNo:Not a Git hostNo:Not a Git hostNo:Through your Git hostNo:Not a Git hostNo:Not a Git host
Branches and tagsYes:Git branchesPartly:Forks; Git via your repoNo:Its own versionsYes:Git branches, paidPartly:Its own sprint branchesYes:Git, via your repo
Pull requests and reviewYes:Built inPartly:On forked collectionsPartly:Comments, no PRsPartly:On your Git hostPartly:Its own merge requestsNo:On your Git host
Commit history and diffYes:Every commitPartly:Diff in its pull requestsPartly:Version comparePartly:On your Git hostPartly:Per endpointPartly:Commit and push
Working with GitHub, GitLab and othersYes:Optional syncYes:Native GitPartly:Push; pull on EnterpriseYes:Four providersPartly:Spec-first mode, betaYes:Git Sync
Mock servers
Hosted mock server from a specYes:OpenAPI, GraphQLYes:From examplesYes:From examplesYes:PrismYes:Smart MockYes:Cloud mocks
Mocks with your own code and stateYes:Express.js scriptsYes:JavaScript, paid plansNo:No logicNo:No scriptsYes:Expectations, scriptsPartly:Templates
Mock on your machineYes:apigit mock serve, from the working copyNot coveredNot coveredYes:Prism is open source and runs locallyYes:A local mock in the desktop appYes:Self-hosted mock servers with Insomnia Mockbin
  • Yes:Has it
  • Partly:Has part of it; the cell says which
  • No:Does not have it

Scroll sideways for every product.

Checked on 19 November 2026 against each vendor's public documentation and pricing pages. APIGit's column follows our documentation and pricing. Products change: if a cell is out of date, tell us and we will correct it. Product names are trademarks of their owners.

Sources

How to choose

Static examples or logic

Examples from the spec are enough for a first front end. A flow such as create, then read, needs state, which means code.

Ask what updates the mock

A mock that follows a branch or is pinned to a commit changes when the spec does. A mock configured by hand changes when someone remembers.

Run it locally too

The same mock on a laptop and in CI removes a network dependency from tests.

Questions

Which API mocking tools were compared?
APIGit, Postman, SwaggerHub, Stoplight, Apidog and Insomnia. They were chosen because teams that work with OpenAPI most often weigh them against each other. The page is published by APIGit, so APIGit is listed first; the limits of each product, ours included, are listed beside its strong points.
Where do the facts come from?
From each vendor's own public documentation and pricing pages, listed under the table with the date they were read. APIGit's entries follow our documentation and pricing page.
Why does the comparison start with Git?
Because an API description is a file that several people change, and Git is the tool built for that. A tool that keeps the file in a real Git repository gives you branches, review and history without a sync step; a tool with its own store has to rebuild those things or copy the file out.
Can I use more than one of these tools?
Yes, and many teams do. Because an APIGit project is an ordinary Git repository, any tool that reads OpenAPI files from Git or from a folder on your machine can work with the same files.

Other jobs: API design tools, API documentation tools.

Try it yourself

Worked examples from the learn hub, each with the output of the tools.

Put your API and docs in a repository today

Create a free workspace, add an OpenAPI file and a Markdown guide, and publish your first documentation site and mock server in minutes.

Free for individuals. No credit card.

$ npm install -g @apigit/cli$ apigit auth login$ apigit doc publish