IntentGuard Route API

The Route API from IntentGuard — 1 operation(s) for route.

Operations 1

POST /api/route Select the best AI model and optimize task execution #

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/hatchable-site:hatchable-site-route-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

hatchable-site-route-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: IntentGuard Router Route API
  version: 1.0.0
  description: x402-paid AI model routing and prompt optimization. Select the best model, cheapest acceptable alternative, fallback, and optimized prompt before execution.
servers:
- url: https://intentguard.hatchable.site
tags:
- name: Route
paths:
  /api/route:
    post:
      operationId: routeTask
      summary: Select the best AI model and optimize task execution
      description: Requires 0.0009 USDC on Base mainnet via x402 V2.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - task
              properties:
                task:
                  type: string
                  minLength: 8
                  maxLength: 16000
                objective:
                  type: string
                  enum:
                  - balanced
                  - lowest_cost
                  - fastest
                  - highest_quality
                current_model:
                  type: string
                current_model_cost_tier:
                  type: integer
                  minimum: 1
                  maximum: 5
                budget_tier:
                  type: integer
                  minimum: 1
                  maximum: 5
                risk_level:
                  type: string
                  enum:
                  - low
                  - medium
                  - high
                needs_tools:
                  type: boolean
                needs_vision:
                  type: boolean
                requirements:
                  type: array
                  items:
                    type: string
                input_tokens:
                  type: integer
                output_tokens:
                  type: integer
                available_models:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      cost_tier:
                        type: integer
                      speed_tier:
                        type: integer
                      quality_tier:
                        type: integer
                      strengths:
                        type: array
                        items:
                          type: string
                      input_cost_per_million:
                        type: number
                      output_cost_per_million:
                        type: number
      responses:
        '200':
          description: Model route, optimized prompt, fallback and savings
        '400':
          description: Invalid request
        '402':
          description: x402 payment required
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USDC
          amount: '0.0009'
        network: eip155:8453
        asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
        payTo: '0xcd461ac1783b22c4610d1d34f8fb01063532cb9e'
      tags:
      - Route
x-discovery:
  ownershipProofs:
  - '0xcd461ac1783b22c4610d1d34f8fb01063532cb9e'
  mcp: https://intentguard.hatchable.site/api/mcp