Generate
best-in-class SDKs.

Developers expect your API to come with a typesafe client library in their language. 

With Stainless, you can deliver idiomatic SDKs while you stay focused on building the API.

Trusted by API companies
SDK Generation

Robust & polished SDKs

Great SDKs for your API drive faster integration, broader feature adoption, quicker upgrades, and trust in your engineering quality.

At Stainless, we work hard to make each SDK feel as though it were hand-written by an expert in the language who had the time to get it right.

All our libraries include: rich types (for autocomplete and docs on hover), auto-pagination, auto-retry with backoff, seamless auth, and much more.

Try for free
Examples of SDKs we've produced:
Node / TypeScript
Python
Go
Java
Kotlin

How Stainless works

1. Provide your OpenAPI spec

All Stainless needs to get started is your OpenAPI spec. It doesn’t have to be perfect.
We’ll create a starter Stainless config file that standardizes naming and defines core functionality like pagination and authentication.

1openapi: 3.0.0
2paths:
3 /chat/completions:
4 post:
5 operationId: createChatCompletion
6 tags:
7 - OpenAI
8 summary: Creates a model response for the given chat conversation.
9 requestBody:
10 ...

2. Generate your SDKs

Receive shippable SDKs in the languages your developers demand.

TypeScript
Node
Python
Java
Go
Kotlin

3. Iterate & customize

You can customize the Stainless configuration for more bespoke SDKs that best represent you and your developers by fine-tuning names, docs, and more.

1resources:
2 completions:
3 methods:
4 create: post /completions
5 models:
6 completion: CreateCompletionResponse

4. Automate your updates

Push your updated OpenAPI spec to us whenever it changes with a GitHub Action (or equivalent). We regenerate your SDK and open a pull request.

1on: {push: {branches: [main]}}
2jobs:
3 stainless:
4 steps:
5 - uses: actions/checkout@v3
6 - uses: stainless-api/upload-openapi-spec-action@main

5. Publish your packages

You approve our PR and we automatically release the new SDK to your GitHub repos and npm, pypi, or maven packages. You own the code, we automate the toil, and your security team is happy. 

“Stainless isn’t just taking our OpenAPI Spec, generating a bunch of code, and passing it along.

They’re exhibiting a strong sense of ownership over making sure it’s best in class and solves problems.”

David Schnurr
Developer Platform at OpenAI
90%
pre-existing issues closed or triaged in new SDK
Company

Stainless: the API Company

Stainless is building the platform for high-quality, easy-to-use APIs.

You can think of us like Stripe's API platform for any REST API, but our ambitions are a little bigger, and our starting point is a little narrower.

Our story

Our founder Alex previously worked on the developer platform team at Stripe, where he created Stripe’s patent-pending client library codegen system and shipped TypeScript for the Stripe API.

After Stripe, Alex kept getting asked how to replicate the Stripe developer experience. Everyone understood they needed great SDKs, but only huge companies could afford the engineer-years it’d take to build a decent codegen system to make them. Frustrated with the available options, he started Stainless to bring the quality of Stripe's codegen to companies of any size.

Our Mission

APIs are at the heart of all internet software, but right now they’re messy, chaotic, and hard to get right.

We're on a mission to build great open-source standards and tools that bring the benefits of GraphQL (types, field selection/expansion, standards) and gRPC (types, speed, versioning) to the simplicity and ubiquity of REST.

Investors and advisors
Daniel Schafer
co-creator, GraphQL
Guillermo Rauch
CEO, Vercel; creator, Next.JS
Søren Bramer Schmidt
CEO, Prisma
Calvin French-Owen
co-founder, Segment
Cristina Cordova
COO, Linear
... and dozens of (ex-)Stripe engineers, executives, and other industry experts.

“If I told an engineer they have to build all these libraries at this quality, they’d tell me it would take at least a year.
With Stainless, it’s like magic.”

Kamil Sindi
Head of Engineering at Lithic
$230k
saved annually in engineer salaries