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.

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.

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.

4

Add any custom code, anywhere

Unlike other codegen systems, you can freely edit the generated code as if it were a normal repo – any change, anywhere in the codebase. Your changes will persist the next time Stainless generates a new version.

5

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
6

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. 

Proud to have Stainless as a partner at OpenAI. All our SDKs are generated by them. The team is extremely thoughtful about SDK design and push us to improve our API + other products while they're at it. Stainless is bringing a new standard of SDKs to our industry and this is a great thing for all developers.”

Nikunj Handa
API Product at OpenAI
90%
pre-existing issues closed or triaged in new SDK
Company

Stainless: the API Company

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.

If I told an engineer they have to build all these libraries, 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