Quick Start
API Reference
Error Reference
AI Agents

AI Agents

Machine-readable documentation for LLMs, AI agents, and automation tools.

llms.txt

We publish llms.txt files — a standard for making websites readable by large language models:

  • llms.txt — structured overview for LLM context windows
  • llms-full.txt — complete API reference in plain text
Feed llms-full.txt to your LLM for complete API coverage in a single context load.
bash
# Fetch the full reference
curl https://img.pro/llms-full.txt

OpenAPI Spec

The img.pro API is described by an OpenAPI 3.1 specification, available as YAML:

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

Import it into any API client (Postman, Insomnia, etc.) or feed it to code-generation tools for auto-generated client libraries.

MCP

img.pro works as a tool in any Model Context Protocol (MCP) setup. Point your agent at the OpenAPI spec or llms-full.txt and it can upload, manage, and serve images through the REST API.

Example tool definition for an MCP-compatible agent:

json
{
  "name": "img_pro_upload",
  "description": "Upload an image to img.pro and get a CDN URL",
  "parameters": {
    "url": { "type": "string", "description": "Image URL to import" }
  },
  "endpoint": "POST https://api.img.pro/v1/import",
  "headers": { "Authorization": "Bearer YOUR_API_KEY" }
}