SammaPix SammaPix API — Image & PDF Processing For AI Agents API

The SammaPix API — Image & PDF Processing For AI Agents API from SammaPix — 1 operation(s) for sammapix api — image & pdf processing for ai agents.

GitHub OpenAPI

Operations 1

POST /api/v1/{op} Run one image or PDF operation #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sammapix-com:sammapix-com-sammapix-api-image-pdf-processing-for-ai-agents-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sammapix-com-sammapix-api-image-pdf-processing-for-ai-agents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SammaPix API — Image & PDF Processing For AI Agents API
  version: 1.0.0
  description: Agent-native image and PDF processing. Deterministic ops (compress, convert, resize, crop, rotate, watermark, PDF compress/split/merge/rotate, image-to-PDF), AI vision (describe, alt text, OCR, tags, filename, document extraction) and a pipeline that chains image ops in one call. Pay-as-you-go with a free daily tier, zero-retention (files processed in memory and discarded). Also available as a remote MCP server at /api/mcp (OAuth 2.1, no API key to paste).
  contact:
    name: SammaPix
    url: https://www.sammapix.com/for-ai-agents
servers:
- url: https://www.sammapix.com
security:
- bearerAuth: []
tags:
- name: SammaPix API — Image & PDF Processing For AI Agents
paths:
  /api/v1/{op}:
    post:
      summary: Run one image or PDF operation
      description: 'Send a file (multipart ''file'' field) or JSON ({ image: base64|dataURL } or { url }). Returns the processed file (binary) for most ops, or JSON for metadata/pdf-info/describe/alt-text/suggest-filename/ocr/tags/extract-document. Billing: 1 credit per op, 2 for AI vision ops; a failed op is refunded. Free daily tier applies first. KEYLESS FREE TRIAL: deterministic ops (compress, resize, crop, convert, rotate, flip, grayscale, blur, adjust, tint, negate, flatten, border, round, watermark, metadata, optimize-web, pdf-compress, pdf-split, pdf-rotate, pdf-info) can be called a few times/day per IP with NO API key (max 5MB) to try before signing up. AI ops always require a key.'
      parameters:
      - name: op
        in: path
        required: true
        description: The operation to run.
        schema:
          type: string
          enum:
          - compress
          - resize
          - crop
          - convert
          - rotate
          - metadata
          - flip
          - grayscale
          - blur
          - adjust
          - tint
          - negate
          - flatten
          - border
          - round
          - watermark
          - optimize-web
          - pdf-compress
          - pdf-merge
          - pdf-split
          - pdf-rotate
          - image-to-pdf
          - pdf-info
          - describe
          - alt-text
          - suggest-filename
          - ocr
          - tags
          - extract-document
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: The input image or PDF. For pdf-merge and image-to-pdf, repeat the 'file' field for multiple files.
                format:
                  type: string
                  description: Target format for convert/optimize-web (webp, avif, jpeg, png).
                quality:
                  type: integer
                  description: Output quality 1-100.
                width:
                  type: integer
                height:
                  type: integer
                ratio:
                  type: string
                  description: Aspect ratio for crop, e.g. 16:9.
                angle:
                  type: integer
                  description: Degrees for rotate/pdf-rotate.
                pages:
                  type: string
                  description: Pages for pdf-split, e.g. 1-3,5.
              required:
              - file
          application/json:
            schema:
              type: object
              properties:
                image:
                  type: string
                  description: Base64 or data URL of the input image.
                url:
                  type: string
                  description: Public URL of the input image (fetched securely).
                format:
                  type: string
                quality:
                  type: integer
                width:
                  type: integer
                height:
                  type: integer
                ratio:
                  type: string
      responses:
        '200':
          description: Processed file (binary) or JSON result. Response headers include x-op-cost and x-credits-remaining.
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
            application/json:
              schema:
                type: object
        '401':
          description: Missing or invalid API key.
        '402':
          description: Insufficient credits. Body includes cost and remaining.
        '413':
          description: Payload too large (max 20MB per file).
        '422':
          description: Operation failed on valid input (credits refunded).
        '429':
          description: Rate limited.
      tags:
      - SammaPix API — Image & PDF Processing For AI Agents
      operationId: postApiV1ByOp
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key as ''Authorization: Bearer sk_live_...''. Generate one at https://www.sammapix.com/dashboard/api. Agents can also connect over MCP at /api/mcp with OAuth 2.1 (no key to paste).'