RunAPI Anthropic API

The Anthropic API from RunAPI — 1 operation(s) for anthropic.

Operations 1

POST /v1/messages Anthropic Messages #

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/runapi:runapi-anthropic-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

runapi-anthropic-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RunAPI Anthropic API
  version: v1
  description: Create and retrieve AI media tasks, or use compatible LLM protocol endpoints.
servers:
- url: https://runapi.ai
security:
- bearerAuth: []
tags:
- name: Anthropic
paths:
  /v1/messages:
    post:
      tags:
      - Anthropic
      summary: Anthropic Messages
      operationId: protocol_operation_anthropic_messages
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - model
              - max_tokens
              - messages
              properties:
                model:
                  type: string
                  description: RunAPI model identifier returned by the compatible model catalog.
                max_tokens:
                  type: integer
                  description: Maximum number of tokens to generate before stopping.
                messages:
                  type: array
                  description: Conversation turns in Anthropic Messages format.
                  items:
                    type: object
                    required:
                    - role
                    - content
                    properties:
                      role:
                        type: string
                      content:
                        type:
                        - string
                        - array
                    additionalProperties: true
                stream:
                  type: boolean
                  default: false
                  description: Return typed Messages events as server-sent events.
                system:
                  type:
                  - string
                  - array
                  description: System instructions supplied separately from conversational messages.
                temperature:
                  type: number
                  description: Sampling temperature; model support can vary.
                top_p:
                  type: number
                  description: Nucleus sampling probability; model support can vary.
                tools:
                  type: array
                  description: Tools the model may call.
              additionalProperties: true
      responses:
        '200':
          description: Success or Streaming
          content:
            application/json:
              schema:
                type: object
                required:
                - id
                - type
                - role
                - content
                - model
                - stop_reason
                - usage
                properties:
                  id:
                    type: string
                  type:
                    type: string
                    const: message
                  role:
                    type: string
                    const: assistant
                  content:
                    type: array
                  model:
                    type: string
                  stop_reason:
                    type:
                    - string
                    - 'null'
                  usage:
                    type: object
                    properties:
                      input_tokens:
                        type: integer
                      output_tokens:
                        type: integer
                    additionalProperties: true
                additionalProperties: true
            text/event-stream:
              schema:
                oneOf:
                - type: object
                  required:
                  - type
                  - message
                  properties:
                    type:
                      type: string
                      const: message_start
                    message:
                      type: object
                  additionalProperties: true
                - type: object
                  required:
                  - type
                  - index
                  - delta
                  properties:
                    type:
                      type: string
                      const: content_block_delta
                    index:
                      type: integer
                    delta:
                      type: object
                  additionalProperties: true
                - type: object
                  required:
                  - type
                  - delta
                  - usage
                  properties:
                    type:
                      type: string
                      const: message_delta
                    delta:
                      type: object
                    usage:
                      type: object
                      properties:
                        output_tokens:
                          type: integer
                      additionalProperties: true
                  additionalProperties: true
                - type: object
                  required:
                  - type
                  properties:
                    type:
                      type: string
                      const: message_stop
                  additionalProperties: true
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                required:
                - type
                - error
                properties:
                  type:
                    type: string
                    const: error
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                    additionalProperties: true
                  request_id:
                    type: string
                additionalProperties: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API token