Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

aisp

bởi daveo280

AI & LLMs
591Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Enables AI agents to interact with AISP (Agent Inference Sharing Protocol) for renting or providing DIEM API.

Mô tả

Kỹ năng này làm gì

Enables AI agents to rent or provide Venice API inference capacity through a USDC escrow system on Base. Providers list capped API keys with pricing; agents fund rentals on-chain and receive keys automatically. Settlement happens at term expiration with a 1% protocol fee.

Compared to direct API key sharing, escrow-based rental enforces payment and expiry on-chain without trusting counterparties.

Khi nào nên dùng

  • Renting idle Venice API capacity for a short-term agent task
  • Listing spare inference API keys to earn USDC passively
  • Automating API key retrieval after on-chain escrow funding
  • Checking available inference listings before starting a batch job
  • Settling expired rentals to collect provider earnings

Quy trình ví dụ

ĐẦU VÀO

User asks: rent the cheapest available Venice API listing for 7 days

AGENT
  1. 1

    Call GET /api/listings to fetch available listings

  2. 2

    Select listing with lowest pricePerDay

  3. 3

    Approve USDC spend and call contract.fund(listingId, 7, diemAmount) to get rentalId

  4. 4

    POST to /api/key/{rentalId} with EIP-191 signed message to retrieve the API key

  5. 5

    Return apiKey and expiresAt to the user

ĐẦU RA

Venice API key valid for 7 days, ready for inference requests

Yêu cầu

  • BACKEND_URL environment variable pointing to the Diem Marketplace backend
  • Venice API key (inference-only, scoped) if acting as a provider
  • USDC balance on Base network if acting as a renting agent
  • Ethereum wallet/signer on Base (chain ID 8453)

Cài đặt

clawhub install daveo280/aisp

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết