Mart402 Portrait Precheck API

The Portrait Precheck API from Mart402 — 1 operation(s) for portrait precheck.

GitHub OpenAPI

Operations 1

POST /v1/portrait-precheck Portrait Precheck #

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/mart402-com:mart402-com-portrait-precheck-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

mart402-com-portrait-precheck-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mart402 Portrait Precheck API
  description: 'Pay-per-call APIs for AI agents with verifiable results, in three lines: documents & web (extract, PDF parsing with hallucination-guarded OCR, invoice verification, company enrichment), Japan statutory calculations (deterministic, primary-source cited) and calibrated vision. Payment via x402 (USDC on Base) - no account, no API key. Docs: /agents.md'
  version: 0.1.0
tags:
- name: Portrait Precheck
paths:
  /v1/portrait-precheck:
    post:
      summary: Portrait Precheck
      description: 'FREE preflight: is this photo analyzable? Deterministic checks only.


        Charter art.1: lets agents check a photo before calling portrait-analysis (a face_not_detected

        call is not charged, but the precheck saves the round trip). No LLM cost; rate-limited like parse/quote.'
      operationId: portrait_precheck_v1_portrait_precheck_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PortraitPrecheckReq'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
        '422':
          description: Input error (action fix_input). Not charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Portrait Precheck
components:
  schemas:
    PortraitPrecheckReq:
      properties:
        image_url:
          type: string
          title: Image Url
        image_base64:
          type: string
          title: Image Base64
      type: object
      title: PortraitPrecheckReq
      x-required-one-of:
      - image_url
      - image_base64
      anyOf:
      - required:
        - image_url
      - required:
        - image_base64
    ErrorEnvelope:
      type: object
      required:
      - ok
      - code
      - retryable
      - action
      - billed_usd
      properties:
        ok:
          type: boolean
          const: false
        code:
          type: string
          description: Machine-readable error code; see GET /catalog errors and error_http.
        retryable:
          type: boolean
        action:
          type: string
          enum:
          - fix_input
          - retry
          - requote
          - retry_payment
          - wait
          - slow_down
          - contact
        billed_usd:
          type: number
          const: 0
          description: 'Always 0: errors are never charged.'
        detail:
          description: 'Human-readable string, or an object with field-level info (jp line: {missing:[...]} or {field, got, ...}).'
          oneOf:
          - type: string
          - type: object
        hint:
          type: string
          description: Legacy alias of detail on some endpoints.
        error:
          type: object
          description: 'jp line only: nested copy {code, retryable, action}.'
      additionalProperties: true