ModelsAgree
← All leaderboards
🛠

Best OpenAPI SDK Generators for TypeScript and Python

3 models · updated 2026-07-18

The verdict

Stainless leads — 2 of 3 models rank Stainless the top pick.

Not unanimous: Gemini picks Speakeasy.

As of 2026-07-18, ChatGPT, Claude, Gemini collectively rank Stainless first for openapi sdk generators for typescript and python on modelsagree.com.

Your vendor missing? Check any brand →

Combined ranking

  1. 1
    Stainless14 pts
    GPT #1Claude #1Gemini #2

    Produces exceptionally polished, idiomatic TypeScript and Python SDKs with strong pagination, retries, streaming, error handling, documentation, and automated publishing; best when the SDK is a public product surface, with Speakeasy a near-tie.

    + model takes & fixes

    GPT Produces exceptionally polished, idiomatic TypeScript and Python SDKs with strong pagination, retries, streaming, error handling, documentation, and automated publishing; best when the SDK is a public product surface, with Speakeasy a near-tie.

    Claude Sets the quality bar for generated TypeScript and Python SDKs — it powers the official OpenAI, Anthropic, and Cloudflare libraries, and the output is idiomatic enough that users can't tell it's generated (rich types, pagination, auto-retries, streaming helpers, docstrings); its config layer lets teams patch rough OpenAPI specs without forking generated code. Assumption shaping rank: the typical practitioner here is an API company shipping SDKs to customers, where polish directly affects adoption.

    Gemini Produces the highest-fidelity, handwritten-feeling client libraries for TypeScript and Python with zero-dependency code and clean, flat client interfaces (nearly tied with Speakeasy but ranked second due to a much higher cost barrier).

    Where it falls short

    per GPT A managed commercial platform with less low-level template control and a higher cost/commitment than self-hosted generators.

    per Claude Commercial with pricing aimed at API businesses; overkill and costly if you just need a client for your own internal API, and language coverage is narrower than Speakeasy's or OpenAPI Generator's.

    per Gemini It is strictly enterprise-focused with no self-serve or low-cost tier, and the code generation runs entirely in their closed ecosystem.

  2. 2
    Speakeasy13 pts
    GPT #2Claude #2Gemini #1

    Generates highly idiomatic, lightweight, and type-safe SDKs natively from OpenAPI specs with no intermediate DSL. It excels at handling complex schema structures, runtime validation using modern libraries, and automating package publishing (nearly tied with Stainless for the top spot due to similar output quality but with more accessible CLI tools).

    + model takes & fixes

    Gemini Generates highly idiomatic, lightweight, and type-safe SDKs natively from OpenAPI specs with no intermediate DSL. It excels at handling complex schema structures, runtime validation using modern libraries, and automating package publishing (nearly tied with Stainless for the top spot due to similar output quality but with more accessible CLI tools).

    GPT Excellent TypeScript and Python output with Zod/Pydantic runtime validation, sync and async Python clients, strong OpenAPI-native customization, CI automation, and broad operational flexibility; nearly tied with Stainless and often better for teams prioritizing validation and control.

    Claude Closest competitor to Stainless with broader surface — strong TypeScript (Zod-validated) and Python (Pydantic-based) SDKs, plus Terraform providers, webhooks, and OpenAPI linting/editing tooling; excellent CI/CD workflow for regenerating on spec changes. Near-tie with Stainless: Stainless edges it on output ergonomics, Speakeasy on breadth of targets and spec tooling.

    Where it falls short

    per GPT Generated SDKs can be heavier and more opinionated, especially when runtime validation is unnecessary.

    per Claude Also commercial per-SDK pricing; generated code is somewhat heavier/more boilerplate-laden than Stainless's, and free tier limits make it awkward for hobby or internal-only use.

    per Gemini The advanced features and CI/CD pipelines are gated behind a commercial SaaS model, making it unsuitable for teams requiring a fully open-source or free self-hosted solution.

  3. 3
    GPT #3Claude #3Gemini #3

    Generates clean, type-safe TypeScript and Python SDKs while tightly integrating reference documentation, API modeling, publishing, and multi-protocol support; especially valuable for teams treating docs and SDKs as one developer-experience system.

    + model takes & fixes

    GPT Generates clean, type-safe TypeScript and Python SDKs while tightly integrating reference documentation, API modeling, publishing, and multi-protocol support; especially valuable for teams treating docs and SDKs as one developer-experience system.

    Claude Strong commercial third option that pairs SDK generation with a docs platform (Docusaurus-quality API references that stay in sync with the SDKs); TypeScript and Python output is clean and idiomatic, and its own spec format plus OpenAPI import handles messy specs well. Adopted by companies like ElevenLabs and Cohere for official SDKs.

    Gemini Features a hybrid open-source core compiler and shines at integrating SDK generation with API documentation hosting, keeping both synchronized. Generates very clean, idiomatic Python Pydantic models and TypeScript types.

    Where it falls short

    per GPT Its platform and workflow are more proprietary and DSL-oriented than teams wanting a simple, portable OpenAPI-in/code-out tool may prefer.

    per Claude Its biggest draw is the docs+SDK bundle — if you only want SDKs, it's less differentiated from Stainless/Speakeasy, and the custom Fern definition format adds lock-in if you lean on it.

    per Gemini Requires using its proprietary intermediate configuration DSL, which adds complexity for teams wanting to work natively and exclusively with OpenAPI definitions.

  4. 4
    GPT #4Claude #5Gemini #5

    The strongest free, self-hostable generalist, with enormous OpenAPI coverage, mature TypeScript and Python targets, extensive configuration, custom templates, and no vendor dependency.

    + model takes & fixes

    GPT The strongest free, self-hostable generalist, with enormous OpenAPI coverage, mature TypeScript and Python targets, extensive configuration, custom templates, and no vendor dependency.

    Claude The open-source workhorse: free, self-hosted, ~50 language targets including multiple TypeScript and Python flavors, huge community, and no vendor dependency — still the right answer when budget is zero, specs are conventional, or you need languages the commercial vendors don't cover.

    Gemini The most mature, fully free, and vendor-neutral open-source tool with a massive community. Supports both TypeScript and Python alongside dozens of other targets, and allows unlimited customizing of generated outputs via Mustache template overrides.

    Where it falls short

    per GPT Default output is often verbose or non-idiomatic and usually requires careful configuration, template maintenance, and regression testing to reach premium-SDK quality.

    per Claude Output quality is far below the commercial tier — dated idioms, inconsistent handling of oneOf/unions and edge-case specs, and heavy template customization is usually needed to get code you'd proudly publish.

    per Gemini Default code output is bloated, verbose, and heavily structured like Java, requiring significant template customization and boilerplate wrapping to feel clean or idiomatic to Python and TypeScript developers.

  5. 5
    Hey API2 pts
    GPT Claude #4Gemini

    The best open-source choice for the TypeScript-consumer side — generates fully typed clients with pluggable fetch/axios, TanStack Query integration, and Zod schemas from any OpenAPI spec; actively maintained, fast, and free, making it the default for frontend teams consuming an API rather than publishing one.

    + model takes & fixes

    Claude The best open-source choice for the TypeScript-consumer side — generates fully typed clients with pluggable fetch/axios, TanStack Query integration, and Zod schemas from any OpenAPI spec; actively maintained, fast, and free, making it the default for frontend teams consuming an API rather than publishing one.

    Where it falls short

    per Claude TypeScript only — no Python — and it produces client bindings, not a polished distributable SDK (no retries/pagination conventions, docs, or release tooling), so it doesn't serve API vendors shipping to third parties.

  6. 6
    GPT Claude Gemini #4

    A fully open-source, vendor-neutral, and free tool that prevents client bloat by generating lightweight SDKs using a shared core model, supporting selective compilation of only the endpoints your application actually consumes.

    + model takes & fixes

    Gemini A fully open-source, vendor-neutral, and free tool that prevents client bloat by generating lightweight SDKs using a shared core model, supporting selective compilation of only the endpoints your application actually consumes.

    Where it falls short

    per Gemini Enforces a rigid, fluent hierarchical client builder syntax that mimics the API's URL paths, which can be verbose and counterintuitive compared to traditional flat clients.

  7. 7
    APIMatic1 pts
    GPT #5Claude Gemini

    Mature commercial generation for TypeScript and Python with solid authentication, serialization, documentation, portal, and publishing workflows; a practical all-in-one choice for teams that also need a developer portal.

    + model takes & fixes

    GPT Mature commercial generation for TypeScript and Python with solid authentication, serialization, documentation, portal, and publishing workflows; a practical all-in-one choice for teams that also need a developer portal.

    Where it falls short

    per GPT Less compelling than the leaders when SDK code quality and customization are the primary goals rather than a bundled API-experience platform.

Just missed the top 5

GPT liblabstrong managed SDK automation, but its TypeScript/Python output and customization ecosystem are less proven than the top commercial leaders · Hey APIexcellent lightweight TypeScript generation, but it does not cover Python and therefore cannot serve a dual-language SDK program

Claude Microsoft Kiotasolid free multi-language generator with good OpenAPI conformance, but its opinionated request-builder style and Microsoft-ecosystem flavor make output less idiomatic than Hey API for TS or the commercial tools for Python

Gemini liblabOffers clean config-driven multi-language generation but has a smaller integration ecosystem and community footprint compared to Speakeasy and Fern · OrvalHighly optimized for TypeScript client generation with excellent TanStack Query integration, but does not support Python

By model

ChatGPT

  1. 1.Stainless
  2. 2.Speakeasy
  3. 3.Fern
  4. 4.OpenAPI Generator
  5. 5.APIMatic

Claude

  1. 1.Stainless
  2. 2.Speakeasy
  3. 3.Fern
  4. 4.Hey API
  5. 5.OpenAPI Generator

Gemini

  1. 1.Speakeasy
  2. 2.Stainless
  3. 3.Fern
  4. 4.Microsoft Kiota
  5. 5.OpenAPI Generator

Common questions

What is the best openapi sdk generators for typescript and python according to AI models?

Stainless leads. 2 of 3 models rank Stainless the top pick. The current top 3: Stainless, Speakeasy, Fern. Ranked by asking ChatGPT, Claude, Gemini the same buying question and merging their top-5 picks, updated 2026-07-18. Source: modelsagree.com.

Which openapi sdk generators for typescript and python did each AI model pick first?

ChatGPT: Stainless. Claude: Stainless. Gemini: Speakeasy.

Do the AI models agree on the best openapi sdk generators for typescript and python?

Not unanimous. Gemini picks Speakeasy.

How is this openapi sdk generators for typescript and python ranking made?

ChatGPT, Claude, Gemini are each asked the same buying question in a fresh session with no system steering. Their top-5 answers are merged (rank 1 = 5 pts … rank 5 = 1 pt) into the consensus ranking, re-polled weekly and tracked over time.

More on how polling works: full methodology →

This ranking moves

We re-poll all four models weekly. Get one short email when a #1 flips.

Cite this ranking

ModelsAgree, “Best OpenAPI SDK Generators for TypeScript and Python” — merged ranking from ChatGPT, Claude, Gemini & Grok, polled 2026-07-18. https://modelsagree.com/best/best-openapi-sdk-generators-for-typescript-and-python (CC BY 4.0)

Tracked by ModelsAgree · rank 1 = 5 pts … rank 5 = 1 pt · re-polled weekly