APIClaw Anthropic Passthrough API

The anthropic_passthrough API from APIClaw — 3 operation(s) for anthropic_passthrough.

Operations 3

POST /api/event_logging/batch Event Logging Batch #
POST /v1/messages Anthropic Response #
POST /v1/messages/count_tokens Count Tokens #

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/apiclaw:apiclaw-anthropic-passthrough-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

apiclaw-anthropic-passthrough-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LiteLLM Anthropic Passthrough API
  description: 'Proxy Server to call 100+ LLMs in the OpenAI format. **Customize Swagger Docs**


    👉 ```LiteLLM Admin Panel on /ui```. Create, Edit Keys with SSO. Having issues? Try ```Fallback Login```


    💸 ```LiteLLM Model Cost Map```.


    🔎 ```LiteLLM Model Hub```. See available models on the proxy. **Docs**'
  version: 1.102.1
tags:
- name: anthropic_passthrough
paths:
  /api/event_logging/batch:
    post:
      description: 'Stubbed endpoint for Anthropic event logging batch requests.


        This endpoint accepts event logging requests but does nothing with them.

        It exists to prevent 404 errors from Claude Code clients that send telemetry.'
      operationId: event_logging_batch_api_event_logging_batch_post
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
      summary: Event Logging Batch
      tags:
      - anthropic_passthrough
  /v1/messages:
    post:
      description: 'Use `{PROXY_BASE_URL}/anthropic/v1/messages` instead - Docs.


        This was a BETA endpoint that calls 100+ LLMs in the anthropic format.'
      operationId: anthropic_response_v1_messages_post
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
      security:
      - APIKeyHeader: []
      summary: Anthropic Response
      tags:
      - anthropic_passthrough
  /v1/messages/count_tokens:
    post:
      description: 'Count tokens for Anthropic Messages API format.


        This endpoint follows the Anthropic Messages API token counting specification.

        It accepts the same parameters as the /v1/messages endpoint but returns

        token counts instead of generating a response.


        Example usage:

        ```

        curl -X POST "http://localhost:4000/v1/messages/count_tokens?beta=true" -H "Content-Type: application/json" -H "Authorization: Bearer your-key" -d ''{

        "model": "claude-3-sonnet-20240229",

        "messages": [{"role": "user", "content": "Hello Claude!"}]

        }''

        ```


        Returns: {"input_tokens": }'
      operationId: count_tokens_v1_messages_count_tokens_post
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
      security:
      - APIKeyHeader: []
      summary: Count Tokens
      tags:
      - anthropic_passthrough
components:
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: Bearer token
      in: header
      name: x-litellm-api-key