OpenAPI 3.1 Specification Generator
Build perfect OpenAPI specs visually — no YAML hell! Supports Bearer, OAuth2, schemas, examples.
Security Scheme
Paths & Operations
OpenAPI 3.1 Spec
About the OpenAPI 3.1 Specification Generator
Fill in the API title, version, description and authentication type, then add one row per endpoint: an HTTP method, a path, a summary and an example JSON response. The tool builds an OpenAPI 3.1 document as you edit. You can copy it as YAML or download it as YAML or JSON.
Example
Input: GET /users/{id}, summary "Get user by ID", example {"id": 1, "name": "John"}.
Output (excerpt):
paths:
/users/{id}:
get:
summary: Get user by ID
responses:
'200':
description: Success
content:
application/json:
example:
id: 1
name: John
Limits
- Each operation gets one
200response with an example. There are no request bodies, parameters or reusable schemas yet. Add them by hand, or expand the spec in an editor such as Swagger Editor. - Paths with
{id}also need a matchingparametersentry before strict validators accept the file. - The example field must be valid JSON. If it is not, the output stops updating.
- The server URL is always
https://api.example.com/v1. Change it after you export.
Privacy
All conversion happens in JavaScript inside your browser. The tool code on this page makes no network request with what you type, so your input is not uploaded or stored by PyInns. (The page itself still loads ads and shared libraries from third-party CDNs.)