Processed online by Toolvito
AI API Example Generator
Paste an OpenAPI (Swagger) document, or describe an API call in plain words. Get ready-to-use request examples and example responses.
From an OpenAPI document (no AI)
- Paste the document in JSON or YAML (OpenAPI 3 or Swagger 2).
- Choose curl, Python (requests), JavaScript (fetch) or raw HTTP, and if you like one operation (its operationId, or GET /pets).
- Each operation gets a request with its path and required parameters and a JSON body from the document’s examples and defaults, or from the types when there is none; and the example response of its success code.
- Operations that need a login read a token from TOKEN, an environment variable you set to your own token.
From a description (AI)
Write an example (AI) writes one request and response from your words with a language model that runs on the Toolvito server. Code checks the request has the usual form, that its address is in your description, and that its JSON parses. The values are made up.