Skip to content

Stainless compatibility results

Use these numbers to judge how much of your Stainless SDK's API carries over before you switch. Each row runs oryva import stainless and oryva generate, then checks the result with oryva compat against a public Stainless-generated SDK. Numbers read before → after the changes to oryva listed under "What changed in oryva". Python and TypeScript come first; Go, Java, Kotlin and C# follow.

SDK API size Python breaks TypeScript breaks Python methods unchanged TypeScript methods unchanged
Cerebras: cerebras-cloud-sdk-python, cerebras-cloud-sdk-node 4 endpoints 10 → 2 8 → 11 3/4 → 4/4 3/4 → 4/4
Browserbase: sdk-python, sdk-node 18 endpoints 15 → 0 13 → 8 13/18 → 18/18 14/18 → 18/18
OpenAI: openai-python, openai-node 279 endpoints 128 → 102 177 → 158 0/320 → 255/320 0/306 → 243/306

"Methods unchanged" counts the old SDK's methods that compat reports no break for: same path from the client, same name, same arguments, still paged. Break counts alone understate the change: before, a missing nested resource or client class was one break that hid every method under it. Before, OpenAI's client class came out as Openai, so from openai import OpenAI failed and no call worked. Cerebras TypeScript has more breaks after because Cerebras.RequestOptions now exists, so compat compares its fields (see below).

What was compared

  • Cerebras at main (Python 2026-11-25, Node 2026-07-08), with the spec the Python repo ships (openapi.yml).
  • Browserbase at the 1.0 / 2.0 releases (Python d865f5e, Node 2ecb572, October 2024), with the openapi.v1.yaml the Python repo shipped then. Today's repos have a newer API than that file.
  • OpenAI at the last Stainless-generated commits (Python 2ad8c98, Node d6dad64, 2026-07-31), with openai-openapi at 117ce56, the spec published the same day. It is not the spec Stainless built from, which is no longer downloadable.

None of the three publishes its stainless.yml, so each config was derived from the SDK: resource and method names and endpoints from api.md, models matched to schemas by name or fields, environments and credential variables from _client.py, and pagination from pagination.py. A real config names every model; a derived one misses some, which shows up below as types.

What is left

Cerebras: warm_tcp_connection is an option their engineers added by hand; TypeScript's httpAgent (use fetchOptions or fetch); and fields of Stainless's RequestOptions: internal ones callers don't set (method, path, stream, __binaryResponse, ...) and idempotencyKey, which oryva has only when the spec names an idempotency header.

Browserbase: httpAgent and the same RequestOptions fields.

OpenAI (Python / TypeScript):

Cause Python TypeScript
Code written by hand: parse, stream, poll, *_and_poll, connect, wait_for_processing, client.beta.chat, the provider and workload_identity options 51 35
Types the derived config can't name (inline enums such as AudioModel, near-miss matches) 18 46
Stainless's page classes and streaming overload types (ModelsPage, ...ParamsNonStreaming) – 22
Lists oryva can't page: client.models.list() isn't paginated by the API, and pages that send the last item's id where the response has no last_id 15 15
Request bodies: images.edit offers JSON and multipart, oryva takes JSON and Stainless took multipart; the public spec differs from Stainless's (realtime sessions, skills.create) 8 12
Client options sent as headers (organization, project), the webhook secret, and admin_api_key read from OPENAI_ADMIN_KEY 8 4
Fields of Stainless's RequestOptions (internals, idempotencyKey) – 10
Query arrays named include[] keep the brackets in TypeScript – 8
Resources with types and no methods (graders) – 3
Two methods for one endpoint (files.content and files.retrieve_content) 2 2
adminAPIKeys (oryva writes adminApiKeys) – 1

What changed in oryva

  • Nested resources: client.chat.completions.create(); a dotted name in oryva.yml.
  • The client's class (OpenAI), its credential variables (credentials), default_headers and default_query in Python, defaultQuery and fetchOptions in TypeScript, and Client.RequestOptions.
  • Stainless's type names: <Resource><Method>Response for each method (operations.<op>.response), an alias when two methods share a schema, schema names in PascalCase kept as written (SessionLiveURLs).
  • Python: a namespaced package (cerebras.cloud.sdk); a parameter named like a request option becomes api_<name> (api_timeout).
  • TypeScript: the last path parameter by position, the others in the params object (retrieve(keyId, { project_id })), as Python already did; resources in camelCase.
  • An object whose anyOf only lists required fields stays an object.
  • compat reads namespaced packages, type aliases, and two resource classes with the same name.

oryva's own tests keep these patterns covered with a small hand-written SDK in the same shape.

Go, Java, Kotlin and C

Cerebras and Browserbase have no Stainless SDK in these languages, and OpenAI's .NET SDK isn't Stainless's, so Terminal (37 endpoints) and ImageKit (61) join OpenAI here.

SDK Language Breaks Methods unchanged
Terminal: terminal-sdk-go Go 130 → 121 28/37 → 33/37
ImageKit: imagekit-go Go 533 → 476 22/64 → 55/64
OpenAI: openai-go Go 2265 → 2056 29/319 → 261/319
Terminal: terminal-sdk-java Java 995 → 994 60/115 → 61/115
ImageKit: imagekit-java Java 1165 → 2269 31/300 → 149/300
OpenAI: openai-java Java 8004 → 12201 79/1467 → 536/1467
Terminal: terminal-sdk-kotlin Kotlin 1252 → 1251 49/115 → 50/115
ImageKit: imagekit-dotnet C# 665 → 707 0/85 → 0/85

Java and Kotlin count each overload as a method. Here "methods unchanged" leaves out how the client is built, which every program does once and which still differs in these languages (see below), and C#'s raw-response copies of each resource. Breaks go up in Java and C# because resources and params classes that were missing as a whole now exist, so compat compares their members one by one.

What was compared:

  • OpenAI Go 1849487 and Java 1c3834a, from 2026-07-31 like the Python and Node commits, with the same spec and config.
  • Terminal Go 571cf26 (2026-07-18), and Java c6fefb9 and Kotlin daab693 (2025-04-25, their last Stainless releases), with the spec the API serves at https://api.terminal.shop/doc (version 1.0.3, read 2026-11-27, 43 operations). The config comes from terminal-sdk-python b11a044.
  • ImageKit Go 403f62c, Java 0ba7cad and .NET 74fba33, with imagekit-openapi 32fea25, all from 2026-11-16. The config comes from imagekit-python 20c8fe5.

What changed in oryva:

  • Nested resources in Go, Java, Kotlin and C#: client.Chat.Completions.New(...), client.files().versions().get(...), client.Files.Versions.GetAsync(...).
  • Go: create and retrieve are New and Get (create_variation is NewVariation). A params struct is named after the resource path in the singular and the method (ChatCompletionNewParams), and a response named after its method follows it (AddressNewResponse). A body that isn't an object is a field named after its type (OriginRequest), and AI is an initialism.
  • Java and Kotlin: a params class is named after the resource in the singular (VersionGetParams), after its parents too when another resource has the same name (ChatCompletionCreateParams). A method whose params are all optional also takes just the request options: list(RequestOptions).
  • C#: targets.csharp.client names the client class, and the import sets Stainless's <Organization>Client (ImageKitClient).
  • compat reads Java, Kotlin and C# names through each file's package or namespace and imports (Stainless has a FileService in several packages), walks services that only hold others (client.accounts()), no longer takes implementations of services (FileServiceImpl) for clients, and skips Go's unexported embedded fields (paramObj).

Not yet compatible

These need a different shape of SDK, not new names:

Gap Terminal ImageKit OpenAI What it would take
Go options live in an option package: NewClient(option.WithAPIKey(k)) 21 21 24 Move the request config to an internal package that the SDK and a new option package both import, and add the options Stainless names differently (WithRequestTimeout, WithEnvironmentProduction, WithJSONSet)
Go: a JSON field on every response model (raw JSON and which fields were present) 61 65 274 Keep each field's raw JSON while decoding
Go: a separate ...Param type for every model a request takes, and ...Union names for unions 7 183 537 A second, request-shaped type per model
Java, Kotlin: TerminalOkHttpClient.builder()...build() returns a TerminalClient interface; an async client too 2 2 3 Interfaces for the client and every service, and a builder class named after the HTTP client
Java, Kotlin: every method takes a params object, path parameters included: get(FileGetParams), get(String, FileGetParams) 52 108 790 A params class for every method, with its path parameters as fields
Java, Kotlin: model internals: _field() raw accessors, validate(), isValid(), toBuilder(), builders' additional properties 837 (Kotlin 1106) 1794 9246 JsonField wrappers around every field
C#: no Async suffix (client.Files.Get), a params record per method, ID in capitals (fileID) – 60 – Dropping .NET's conventions, which oryva keeps
C#: WithRawResponse and WithOptions on every service, and IImageKitClient – 88 – Interfaces and a raw-response copy of every service

Without the Async suffix, 59 of the 61 C# methods would be at the same path with the same name; their arguments would still differ. Go's generated OpenAI SDK doesn't compile yet (two variants of a union map to the same discriminator value), and Terminal's example test passes a map where the field takes any; both were there before these changes.