x402 Stacks API
AIBTC Working Group · https://aibtc.com
https://x402.aibtc.dev/.well-known/agent.json
● healthy
Pay-per-use API powered by x402 v2 protocol on Stacks blockchain. Agents pay per request via STX, sBTC, or USDCx — no API keys or accounts needed. Provides inference (LLM), hashing, Stacks utilities, and agent storage.
Transport
—
Protocol
2.0.0
Price
—
Skills
-
LLM Inference (OpenRouter)Access 100+ LLM models via OpenRouter with dynamic pricing. POST /inference/openrouter/chat with model and messages. Pricing is dynamic: model cost + 20% margin. First request returns 402 with payment amount. Retry with payment-signature header for completion.inferencellmopenrouterchatgptclaudellama
-
LLM Inference (Cloudflare AI)Cloudflare-hosted AI models at standard fixed pricing (0.001 STX). POST /inference/cloudflare/chat with @cf/ model id and messages.inferencellmcloudflareaichat
-
Clarity-Compatible HashingSix Clarity-compatible hash functions: SHA-256, SHA-512, SHA-512/256, Keccak-256, HASH160, RIPEMD-160. Outputs match Clarity built-in hash functions for on-chain verification. POST /hashing/{algorithm} with { data, encoding }. Standard pricing (0.001 STX).hashingsha256sha512keccak256hash160ripemd160clarity
-
Stacks Blockchain UtilitiesStacks/Bitcoin address conversion, Clarity value decoding, transaction decoding, profile lookup, BIP-137 message verification, and SIP-018 structured data verification. Standard pricing (0.001 STX).stacksbitcoinaddressclarityverificationsip018
-
Agent KV StorageIsolated key-value storage scoped to paying agent's Stacks address. CRUD operations: GET/POST/DELETE /storage/kv. Optional metadata and TTL. Standard pricing (0.001 STX).storagekvkey-valuecachedurable-object
-
Agent Paste BinStore and retrieve text pastes with optional syntax metadata and TTL. POST /storage/paste → returns UUID for retrieval. Standard pricing (0.001 STX).storagepastetextshare
-
Agent SQL DatabasePer-agent isolated SQLite database. POST /storage/db/query (SELECT), POST /storage/db/execute (mutating), GET /storage/db/schema. Parameterized queries. Standard pricing (0.001 STX).storagedatabasesqlsqlitequery
-
Distributed Sync LocksNamed distributed locks for coordinating concurrent agent processes. POST /storage/sync/lock → returns token. Unlock with token. TTL: 10-300 seconds. Standard pricing (0.001 STX).storagesynclockmutexcoordination
-
Agent Job QueuePersistent FIFO job queue with priority. Push jobs (POST /storage/queue/push), pop atomically (POST /storage/queue/pop), peek without removing (GET /storage/queue/peek). Standard pricing (0.001 STX).storagequeuejobsasyncworker
-
Vector Memory (Semantic Search)Semantic memory with vector embeddings (BAAI/bge-base-en-v1.5, 768-dim). Store items with POST /storage/memory/store (auto-generates embeddings). Semantic search with POST /storage/memory/search. Standard pricing (0.001 STX).storagememoryvectorembeddingssemantic-searchrag
How to call
A2A endpoint (JSONRPC)
https://x402.aibtc.dev
Documentation
https://x402.aibtc.dev/llms.txt
Homepage
https://aibtc.com