Agentgates Inference API

The Inference API from Agentgates — 4 operation(s) for inference.

Operations 4

GET /api/inference/docs Inference agent docs — contract + live prices (markdown) #
GET /api/inference/catalog Inference models and live prices (JSON) #
POST /api/inference/chat Ask a model (x402 or prepaid balance) #
POST /api/inference/credits Prepay an inference balance (x402) #

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/agentgates-ai:agentgates-ai-inference-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

agentgates-ai-inference-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agentgates Ai Inference API
  version: 1.0.0
  description: 'Operations tagged Inference across 2 of this provider''s published API definitions: agentgates-ai-openapi.json, agentgates-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://agentgates.ai
tags:
- name: Inference
paths:
  /api/inference/docs:
    get:
      summary: Inference agent docs — contract + live prices (markdown)
      responses:
        '200':
          description: Markdown for agents
      tags:
      - Inference
      operationId: getApiInferenceDocs
      x-operation-id-source: derived
    servers:
    - url: https://agentgates.ai
  /api/inference/catalog:
    get:
      summary: Inference models and live prices (JSON)
      responses:
        '200':
          description: Catalog
      tags:
      - Inference
      operationId: getApiInferenceCatalog
      x-operation-id-source: derived
    servers:
    - url: https://agentgates.ai
  /api/inference/chat:
    post:
      summary: Ask a model (x402 or prepaid balance)
      description: POST without X-PAYMENT for a free 402 quote priced for your exact body; pay per request, or draw from a prepaid balance with X-Wallet-Auth.
      parameters:
      - $ref: '#/components/parameters/XPayment'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - model
              - messages
              properties:
                model:
                  type: string
                  description: A model id from /api/inference/catalog
                messages:
                  type: array
                  items:
                    type: object
                max_tokens:
                  type: integer
                  description: Output ceiling — charged whether used or not
      responses:
        '200':
          description: Completion + settlement
        '402':
          description: x402 payment required — the quote. `accepts` carries one entry per network, each with its own exact price. Quoting is free and repeatable; nothing was charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/X402Quote'
      tags:
      - Inference
      operationId: postApiInferenceChat
      x-operation-id-source: derived
    servers:
    - url: https://agentgates.ai
  /api/inference/credits:
    post:
      summary: Prepay an inference balance (x402)
      parameters:
      - $ref: '#/components/parameters/XPayment'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - amountUsd
              properties:
                amountUsd:
                  type: number
      responses:
        '200':
          description: Balance after the top-up
        '402':
          description: x402 payment required — the quote. `accepts` carries one entry per network, each with its own exact price. Quoting is free and repeatable; nothing was charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/X402Quote'
      tags:
      - Inference
      operationId: postApiInferenceCredits
      x-operation-id-source: derived
    servers:
    - url: https://agentgates.ai
components:
  parameters:
    XPayment:
      name: X-PAYMENT
      in: header
      required: false
      schema:
        type: string
      description: 'base64 x402 payload: {"x402Version":1,"scheme":"exact","network","payload":{"signature","authorization"}}. Omit to receive a free 402 quote.'
  schemas:
    X402Quote:
      type: object
      properties:
        x402Version:
          type: integer
        accepts:
          type: array
          description: One entry per network — read the entry you intend to pay; another chain's price never applies to yours.
          items:
            type: object
            properties:
              scheme:
                type: string
              network:
                type: string
              maxAmountRequired:
                type: string
                description: USDC atomic units
              asset:
                type: string
              payTo:
                type: string
              extra:
                type: object
externalDocs:
  description: Machine index (llms.txt)
  url: https://agentgates.ai/llms.txt
x-refined-from:
- agentgates-ai-openapi.json
- agentgates-ai-openapi.json