Stainless is helping OpenAI, Anthropic and others build SDKs for their APIs
Besides a focus on generative AI, what do AI startups like OpenAI, Anthropic and Together AI share in common? They use Stainless, a platform created by ex-Stripe staffer Alex Rattray, to generate SDKs for their APIs.
Rattray, who studied economics at the University of Pennsylvania, has been building things for as long as he can remember, from an underground newspaper in high school to a bike-share program in college. Rattray picked up programming on the side while at UPenn, which led to a job at Stripe as an engineer on the developer platform team.
At Stripe, Rattray helped to revamp API documentation and launch the system that powers Stripeâs API client SDK. Itâs while working on those projects Rattray observed there wasnât an easy way for companies, including Stripe, to build SDKs for their APIs at scale.
âHandwriting the SDKs couldnât scale,â he told TechCrunch. âToday, every API designer has to settle a million and one âbikeshedâ questions all over again, and painstakingly enforce consistency around these decisions across their API.â
Now, you might be wondering, why would a company need an SDK if it offers an API? APIs are simply protocols, enabling software components to communicate with each other and transfer data. SDKs, on the other hand, offer a set of software-crafting tools that plug into APIs. Without an SDK to accompany an API, API users are forced to read API docs and build everything themselves, which isnât the best experience.
Rattrayâs solution is Stainless, which takes in an API spec and generates SDKs in a range of programming languages including Python, TypeScript, Kotlin, Go and Java. As APIs evolve and change, Stainlessâ platform pushes those updates with options for versioning and publishing changelogs.
âAPI companies today have a team of several people building libraries in each new language to connect to their API,â Rattray said. âThese libraries inevitably become inconsistent, fall out of date and require constant changes from specialist engineers. Stainless fixes that problem by generating them via code.â
Stainless isnât the only API-to-SDK generator out there. Thereâs LibLab and Speakeasy, to name a couple, plus longstanding open source projects such as the OpenAPI Generator.
Stainless, however, delivers more âpolishâ than most others, Rattray said, thanks partly to its use of generative AI.
âStainless uses generative AI to produce an initial âStainless configâ for customers, which is then up to them to fine-tune to their API,â he explained. âThis is particularly valuable for AI companies, whose huge user bases includes many novice developers trying to integrate with complex features like chat streaming and tools.â
Perhaps thatâs what attracted customers like OpenAI, Anthropic and Together AI, along with Lithic, LangChain, Orb, Modern Treasury and Cloudflare. Stainless has âdozensâ of paying clients in its beta, Rattray said, and some of the SDKs itâs generated, including OpenAIâs Python SDK, are getting millions of downloads per week.
âIf your company wants to be a platform, your API is the bedrock of that,â he said. âGreat SDKs for your API drive faster integration, broader feature adoption, quicker upgrades and trust in your engineering quality.â
Most customers are paying for Stainlessâ enterprise tier, which comes with additional white-glove services and AI-specific functionality. Publishing a single SDK with Stainless is free. But companies have to fork over between $250 per month and $30,000 per year for multiple SDKs across multiple programming languages.
Rattray bootstrapped Stainless âwith revenue from day one,â he said, adding that the company could be profitable as soon as this year; annual recurring revenue is hovering around $1 million. But Rattray opted instead to take on outside investment to build new product lines.
Stainless recently closed a $3.5 million seed round with participation from Sequoia and The General Partnership.
âAcross the tech ecosystem, Stainless stands out as a beacon that elevates the developer experience, rivaling the high standard once set by Stripe,â said Anthony Kline, partner at The General Partnership. âAs APIs continue to be the core building blocks of integrating services like LLMs into applications, Alexâs first-hand experience pioneering Stripeâs API codegen system uniquely positions him to craft Stainless into the quintessential platform for seamless, high-quality API interactions.â
Stainless has a 10-person team based in New York. Rattray expects headcount to grow to 15 or 20 by the end of the year.