Api Endpoint

Claude Sonnet 5 API

Claude Sonnet 5 API (anthropic/claude-sonnet-5): LLM inference via OpenAI-compatible chat completions, pay per call in USDC on Base with x402. No API key, no account. Suited for AI agents and scripts that need Claude Sonnet 5 on demand. When listed, this request cost 30% less than the same request on BlockRun. Streaming and function calling supported. Exact price in the 402 quote before payment; automatic refund if the model fails to answer.

Open interactive test console

Offering

Provider
agent402-arb.rosariovitale0096.workers.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Api
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agent402-arb.rosariovitale0096.workers.dev/llm/claude-sonnet-5
MIME type
application/json
First seen
2026-10-16T01:50:19.913Z
Last seen
Tags
claude-sonnet-5, claude, anthropic, LLM, chat-completions

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.0014 USDC
Atomic price: 1400 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1400",
    "payTo": "0xf7eaf699C6E55887184809c57d597a64aB86d493"
  }
]

Observed health

Status
Healthy
Latest latency
125 ms
Average latency
463 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "properties": {
        "model": {
          "type": "string",
          "description": "Optional: fixed by the route (anthropic/claude-sonnet-5)"
        },
        "messages": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string",
                "enum": [
                  "system",
                  "user",
                  "assistant",
                  "tool",
                  "developer"
                ]
              },
              "content": {
                "type": [
                  "string",
                  "array",
                  "null"
                ]
              }
            },
            "required": [
              "role"
            ]
          }
        },
        "max_tokens": {
          "type": "integer",
          "minimum": 1,
          "maximum": 16384,
          "description": "Optional, default 4096"
        },
        "stream": {
          "type": "boolean",
          "description": "true: server-sent events after payment"
        },
        "temperature": {
          "type": "number",
          "minimum": 0,
          "maximum": 2
        },
        "response_format": {
          "type": "object"
        },
        "tools": {
          "type": "array"
        }
      },
      "required": [
        "messages"
      ]
    },
    "queryParams": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "headers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "max_tokens": {
              "description": "Optional, default 4096",
              "maximum": 16384,
              "minimum": 1,
              "type": "integer"
            },
            "messages": {
              "items": {
                "properties": {
                  "content": {
                    "type": [
                      "string",
                      "array",
                      "null"
                    ]
                  },
                  "role": {
                    "enum": [
                      "system",
                      "user",
                      "assistant",
                      "tool",
                      "developer"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "role"
                ],
                "type": "object"
              },
              "minItems": 1,
              "type": "array"
            },
            "model": {
              "description": "Optional: fixed by the route (anthropic/claude-sonnet-5)",
              "type": "string"
            },
            "response_format": {
              "type": "object"
            },
            "stream": {
              "description": "true: server-sent events after payment",
              "type": "boolean"
            },
            "temperature": {
              "maximum": 2,
              "minimum": 0,
              "type": "number"
            },
            "tools": {
              "type": "array"
            }
          },
          "required": [
            "messages"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "queryParams": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "choices": {
              "items": {
                "required": [
                  "index",
                  "message",
                  "finish_reason"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "model": {
              "type": "string"
            },
            "object": {
              "const": "chat.completion"
            },
            "usage": {
              "type": "object"
            }
          },
          "required": [
            "id",
            "object",
            "model",
            "choices"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}