synlake-ai Billing API

Usage tracking and metered billing

Operations 2

GET /agent/usage Get agent usage and billing status #
POST /billing/activate Activate metered billing #

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/synlake-ai:synlake-ai-billing-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

synlake-ai-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Synlake Ai Billing API
  version: 0.1.0
  contact:
    name: Synlake
    url: https://synlake.ai
    email: contactcharly00@gmail.com
  license:
    name: Proprietary
  description: 'Operations tagged Billing across 2 of this provider''s published API definitions: api-synlake-openapi.json, synlake-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.synlake.ai/api/v1
  description: Production
security:
- BearerAuth: []
tags:
- name: Billing
  description: Usage tracking and metered billing
paths:
  /agent/usage:
    get:
      operationId: getUsage
      summary: Get agent usage and billing status
      description: Returns the authenticated agent's billing status, remaining free calls, spending cap, and usage stats for the current cycle. Free — no cost per call.
      tags:
      - Billing
      responses:
        '200':
          description: Agent usage data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
    servers:
    - url: https://api.synlake.ai/api/v1
      description: Production
  /billing/activate:
    post:
      operationId: activateBilling
      summary: Activate metered billing
      description: Creates a Stripe Checkout session to activate pay-per-execution billing. Returns a URL to complete payment setup. After activation, the agent moves from free tier to metered billing.
      tags:
      - Billing
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - email
              properties:
                email:
                  type: string
                  format: email
                spending_cap:
                  type: number
                  default: 100
                  description: Max monthly spend in USD
                api_key_id:
                  type: string
                  description: Links subscription to existing API key
      responses:
        '200':
          description: Billing activation session created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivateResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
    servers:
    - url: https://api.synlake.ai/api/v1
      description: Production
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: UNAUTHORIZED
              message: Missing Authorization Bearer token
  schemas:
    UsageResponse:
      type: object
      properties:
        agent_id:
          type: string
        billing_status:
          type: string
          enum:
          - free
          - active
          - grace_period
          - suspended
        free_calls_remaining:
          type: integer
        spending_cap:
          type: number
        api_calls_today:
          type: integer
        api_calls_limit:
          type: integer
        total_infrastructure_deployed:
          type: integer
        total_spend_managed:
          type: number
        budget_remaining:
          type: number
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            suggestions:
              type: array
              items:
                type: string
    ActivateResponse:
      type: object
      properties:
        status:
          type: string
        setup_url:
          type: string
          format: uri
        session_id:
          type: string
        pricing:
          type: object
          properties:
            estimate:
              type: string
            query_basic:
              type: string
            query_full:
              type: string
            validate:
              type: string
        spending_cap:
          type: number
        message:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key in format: sk_synlake_...'
x-refined-from:
- api-synlake-openapi.json
- synlake-ai-openapi.json