Pictomancer.ai Estimate API

The Estimate API from Pictomancer.ai — 1 operation(s) for estimate.

Operations 1

POST /v1/estimate Estimate the price of an 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/pictomancer-ai:pictomancer-ai-estimate-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

pictomancer-ai-estimate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pictomancer.ai Gateway Estimate API
  version: 0.1.0
tags:
- name: Estimate
paths:
  /v1/estimate:
    post:
      summary: Estimate the price of an operation
      description: 'Returns the exact USD price this API would charge for an operation on an input of the given size, without fetching or processing anything. Free. Use it before paying: send X-Max-Cost-USD on the real request to have the API refuse (412) instead of charging more than you allowed. The list price is returned even when the request could end up free (free tier, or a compress that does not shrink the file).'
      operationId: estimate_cost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EstimateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EstimateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Estimate
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EstimateResponse:
      properties:
        operation:
          type: string
          title: Operation
          description: Operation that was priced.
        price_usd:
          type: number
          title: Price Usd
          description: Exact list price in USD the API would charge.
        base_usd:
          type: number
          title: Base Usd
          description: Base price of the operation(s) before multipliers and surcharges.
        surcharges_usd:
          additionalProperties:
            type: number
          type: object
          title: Surcharges Usd
          description: Surcharges applied, keyed by name (avif, quality_target); empty when none.
        size_multiplier:
          type: number
          title: Size Multiplier
          description: Multiplier applied for the input size tier.
        pipeline_discount:
          anyOf:
          - type: number
          - type: 'null'
          title: Pipeline Discount
          description: Volume discount factor for pipelines of 3+ operations; null otherwise.
        within_free_tier:
          type: boolean
          title: Within Free Tier
          description: Whether the caller is still within the free tier.
        free_tier_remaining:
          type: integer
          title: Free Tier Remaining
          description: Free-tier requests left for the caller.
        currency:
          type: string
          title: Currency
          description: Settlement currency.
        network:
          type: string
          title: Network
          description: Settlement network.
      type: object
      required:
      - operation
      - price_usd
      - base_usd
      - surcharges_usd
      - size_multiplier
      - pipeline_discount
      - within_free_tier
      - free_tier_remaining
      - currency
      - network
      title: EstimateResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    EstimateRequest:
      properties:
        operation:
          type: string
          title: Operation
          description: Operation to price. One of resize, compress, convert, crop, optimize_for_vision, optimize_generated, pipeline. analyze is always free.
        input_bytes:
          type: integer
          minimum: 1.0
          title: Input Bytes
          description: Size of the input image in bytes. Get it from analyze_image (free) if you do not know it.
        format:
          anyOf:
          - type: string
          - type: 'null'
          title: Format
          description: Requested output format; only avif changes the price.
        quality_target:
          type: boolean
          title: Quality Target
          description: Whether the request will use quality_target (SSIM search surcharge).
          default: false
        operations:
          anyOf:
          - items:
              $ref: '#/components/schemas/EstimateOperation'
            type: array
          - type: 'null'
          title: Operations
          description: 'For pipeline only: the ordered operations, each {type, format?}. Volume discount applies at 3+ operations.'
      type: object
      required:
      - operation
      - input_bytes
      title: EstimateRequest
    EstimateOperation:
      properties:
        type:
          type: string
          title: Type
          description: 'Operation type: resize, compress, convert, or crop.'
        format:
          anyOf:
          - type: string
          - type: 'null'
          title: Format
          description: Requested output format for this operation; only avif changes the price.
      type: object
      required:
      - type
      title: EstimateOperation