llms.txt Generator for APIs
Paste an OpenAPI or Swagger spec. You get an llms.txt that tells AI assistants and agents what your API does, where it lives, how to authenticate and which endpoints it has. It runs in your browser; nothing is uploaded.
# Bookings API
> Create, change and cancel bookings for rooms and desks.
Base URL: https://api.bookings.test/v1
Authentication:
- bearerAuth: Bearer token in the `Authorization` header
## Bookings
A booking holds one resource for a time range.
- GET /bookings: List bookings, newest first
- POST /bookings: Create a booking
- GET /bookings/{id}: Get a booking
- DELETE /bookings/{id}: Cancel a booking
## Resources
Rooms and desks that can be booked.
- GET /resources: List rooms and desks
What goes into the file
- Name and summary
info.titleas the H1 andinfo.summary(or the first sentence of the description) as the blockquote, as llmstxt.org asks.- Base URL
- The first entry in
servers, orhostandbasePathfor Swagger 2.0. - Authentication
- One line per security scheme: bearer token, API key and where it goes, Basic, OAuth 2.0 or OpenID Connect.
- Endpoints by tag
- An H2 per tag, with its description, then one line per operation: method, path and summary. Deprecated operations are left out.
- Links
- Add your docs URL and spec URL and they go under
## Optional, so an agent can fetch the detail when it needs it. - YAML or JSON
- OpenAPI 3.0, 3.1 and Swagger 2.0. Paste the file as it is.
Publish it
- 1
Put it at the root
Serve it at/llms.txton your docs domain, as plain text, for examplehttps://docs.example.com/llms.txt. - 2
Link the detail
Fill in the docs and spec URLs above so the file points to the full reference instead of repeating it. - 3
Regenerate when the API changes
The file is a snapshot of the spec. When endpoints change, generate it again, or let your docs platform build it on every update.
Want the file to stay current on its own?
Every Specway docs site serves /llms.txt and /mcp.json built from your spec, and rebuilds them each time the spec syncs. Free for one API: create an account.
- llms.txt and mcp.json
- Every docs site serves both, built from the same spec, so AI agents can read your API.
- Update now
- Re-reads the spec URL and lists the endpoints that were added, changed and removed. Keep in sync does the same once a day.
- A page per endpoint
- Parameters, request body and responses read from the spec, grouped by tag in the sidebar.
Questions
What is llms.txt?+
A plain markdown file at the root of a site, proposed at llmstxt.org in 2024, that gives language models a short, readable map of the site: a name, a one-line summary, and lists of links with notes. For an API it is the place to say what the API does, where it lives and which endpoints exist.
How do I create an llms.txt for my API?+
Paste your OpenAPI spec above, add your docs and spec URLs, and download the file. Then serve it at /llms.txt on your docs site.
What does an llms.txt for an API look like?+
The sample above is one: an H1 with the API name, a blockquote summary, the base URL and authentication, then an H2 per tag listing each endpoint as method, path and summary, and an Optional section with links to the full docs and the spec.
Should llms.txt include every parameter and schema?+
No. Keep llms.txt short and link to the detail. The full spec is the right place for parameters and schemas, and an agent can fetch it from the link under Optional.
Do AI assistants actually read llms.txt?+
Support varies by tool and changes often. It helps most when someone points an assistant or a coding agent at your docs: the file gives it the map in one request instead of crawling every page.
Does this generate llms.txt for a whole website?+
No. This tool reads an OpenAPI spec, so it is for APIs. For a marketing site or blog, a generator that reads your sitemap fits better.
See your docs in a minute
Paste the link to your OpenAPI file. Free for one API, no card needed.