Prompt
What should I use for docs plus SDK generation?
Latest observation
If you want docs + SDK generation from an API spec, the best tool depends on whether you want a single integrated platform or separate best-in-class tools.
Good options
1) OpenAPI + Redocly / Swagger tools
Best if you already have or can produce an OpenAPI spec.
- Docs: Redocly, Swagger UI, Stoplight
- SDK generation: OpenAPI Generator, Swagger Codegen
Pros
- Widely supported
- Mature ecosystem
- Easy to generate SDKs for many languages
- Good fit for REST APIs
Cons
- Docs and SDK generation are often separate steps/tools
- Some setup/maintenance required
Recommendation:
If you want a practical default, use OpenAPI + Redocly for docs + OpenAPI Generator for SDKs.
2) Fern
A strong choice if you want docs and SDKs generated together from one source of truth.
Pros
- Very good developer experience
- Generates docs, SDKs, and sometimes examples from one spec
- Clean output
- Good for modern API companies
Cons
- Less universal than OpenAPI-native tooling
- May fit best if you’re okay adopting its workflow
Recommendation:
If you want the most integrated “docs + SDKs” experience, Fern is one of the best options.
3) Stoplight
Good for designing APIs, docs, and collaboration.
Pros
- Nice API design workflow
- Good docs
- Visual tooling for teams
Cons
- SDK generation usually still relies on OpenAPI-based generators
- More platform-heavy
4) ReadMe
Great if your priority is polished, customer-facing API docs.
Pros
- Excellent interactive docs
- Easy to publish and maintain
- Developer portal features
Cons
- SDK generation is not its main strength
- You’ll still likely use OpenAPI Generator or similar for SDKs
My short recommendation
- Best general-purpose setup:
OpenAPI + Redocly + OpenAPI Generator - Best all-in-one docs + SDK experience:
Fern - Best customer-facing docs portal:
ReadMe
If you tell me these 3 things, I can recommend a specific stack:
- Is your API REST/OpenAPI or something else?
- Do you need SDKs in many languages?
- Do you want a hosted docs portal or self-hosted docs?
If you want, I can also give you a “best tools by use case” matrix or a recommended stack for your exact API type.