Hey API turns OpenAPI specifications into TypeScript and Python clients, validators, mocks, and related artifacts using openapi-ts and openapi-python with many optional plugins.
Overview
Hey API is a monorepo of packages that generate production-oriented code from OpenAPI documents. The flagship openapi-ts generator targets Node.js 22+ environments and emits typed SDKs, HTTP clients, Zod schemas, TanStack Query hooks, and more through a plugin architecture.
openapi-python produces SDKs and Pydantic models, with additional libraries such as spec-types providing typed OpenAPI and JSON Schema definitions. Generators accept standard OpenAPI inputs and emphasize customizable output via plugins rather than one fixed template.
Documentation and manuals live with each package; sponsors and downstream users include companies cited on the site. Releases use the MIT license, and contribution guides describe how to land features in the ecosystem.
Typical workflows start from an OpenAPI file and run the published CLI—for example npx @hey-api/openapi-ts—to refresh clients whenever the API contract changes.
Key features
- openapi-ts TypeScript generator
- openapi-python SDK generator
- Twenty-plus generation plugins
- Fetch, Axios, and HTTPX client options
- Zod and Pydantic schema outputs
- TanStack Query hook generation
- OpenAPI and JSON Schema type defs
- Customizable plugin pipeline
Use cases
- Keeping front-end SDKs aligned with OpenAPI
- Generating Zod validators from API specs
- Building typed Python clients from Swagger
- Reducing hand-written API client boilerplate