OpenAPI schema for the public API

February 16, 2023

OpenAPI (formerly known as Swagger) is a specification for describing HTTP APIs with structured data, including the available endpoints, their HTTP methods, expected request and response formats, and other metadata.

You can use this schema as a reference document, or to auto-generate your own API client code, or to mock and test your existing use of Replicate's API.

All of the documentation you see on the HTTP API reference page is also available as a structured OpenAPI JSON schema.

Download the schema at api.replicate.com/openapi.json