Skip to content
SPECIFICTION
Get listed

oapi-codegen vs OpenAPI Generator

oapi-codegen

github.com

OpenAPI Generator

openapi-generator.tech

Side by side

Figureoapi-codegenOpenAPI Generator
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOS—Yes
LinuxYesYes
Self-hostedYesYes
Plans published11
Spec score · API Generation Software7.5 (#12)7.7 (#11)
Spec score · Code Generators7.5 (#24)7.8 (#21)
CustomizationGenerated Go templates can be overridden, and supported OpenAPI extensions can customize generated types, names, JSON behavior, and struct tags.Users can replace templates with Mustache templates, provide additional files and extensions through configuration, or create custom generators.
IntegrationsIt can be installed as a Go tool or binary and used with go:generate; the project also documents Renovate for updating a pinned configuration schema.The project documents Gradle, Maven, sbt, Bazel, GitHub, and CI/CD integrations; Cake is a third-party add-in.
Purposeoapi-codegen is a command-line tool and library that converts OpenAPI specifications into Go server implementations, API clients, and HTTP models.Generates clients, servers, and documentation from OpenAPI 2.0 and 3.x documents.

Plans

oapi-codegen

  • Open sourceFree

oapi-codegen pricing →

OpenAPI Generator

  • OpenAPI GeneratorFree

OpenAPI Generator pricing →

In their own words

oapi-codegen

oapi-codegen has no write-up on Specifiction yet; its figures are above.

Visit github.com

OpenAPI Generator

OpenAPI Generator produces API clients, server stubs, and documentation from OpenAPI 2.0 and 3.x documents. It offers more than 50 client generators and server stub generation for over 40 languages and technologies, including Java, Kotlin, Go, and PHP. Other outputs include Apache2 configuration, MySQL, GraphQL schemas, and formats such as HTML and Cwiki. It can also convert OpenAPI 2.0 documents into OpenAPI 3.x JSON or YAML. Generated output can be adapted with Mustache templates, configuration-provided files and extensions, or custom generators. Installation choices include npm, Homebrew, Scoop, PyPI, Docker, JAR, JBang, and a Bash launcher. The project documents Gradle, Maven, sbt, Bazel, GitHub, and CI/CD integrations. Supported operating systems include Linux, macOS, and Windows, though installer availability varies by system. The JAR option requires Java 11 or later. The project is free and describes a Slack community for questions and guidance.

Visit openapi-generator.tech