Quick Start
API Reference
Error Reference
AI Agents

OpenAPI Specification

The img.pro API specification is available for programmatic use.

Spec Files

Available as YAML:

https://img.pro/openapi.yaml

Usage

Agents and tools can fetch the spec to:

  • Discover available endpoints
  • Validate request/response schemas
  • Generate client code automatically

Example

bash
curl https://img.pro/openapi.yaml

Spec Contents

The OpenAPI 3.1 spec includes:

  • All endpoints with request/response schemas
  • Authentication requirements
  • Error response formats with action objects
  • Example values for every field
Feed the spec URL to your AI agent or import it into any API client (Postman, Insomnia, etc.) for auto-generated documentation and request builders.