Skip to main content

aimarket-nft

Documentation

Document Description
User guide Install, configure, verify plugin is loaded
User cases Personas and cross-plugin workflows
SDK integration Code examples and hook behavior

Tokenized pre-paid capability credits. Transferable between owners. Pre-pay for 1000 calls → get an NFT. Sell on secondary market. Transfer to sub-agents. Gift to friends. Liquidity for unused credits. Something Stripe fundamentally cannot do.

When to Use

  • Bulk purchase discounts — "buy 1000 calls at $0.30 each instead of $0.40"
  • Secondary market — sell unused credits when project ends
  • Agent delegation — give sub-agents pre-paid access without sharing payment keys
  • Gift cards — "gifted 100 Lyra calls" viral distribution
  • DAO treasury — DAO holds NFTs for shared AI capability access

Installation

pip install aimarket-nft

Example

from aimarket_nft.capability_nft import NFTRegistry

reg = NFTRegistry()

# Mint: 100 calls at $0.40 each = $40 total
nft = reg.mint("translate.multi@v2", "prod-001", 100, 0.40, "0xAlice")
print(f"NFT: {nft.token_id}, {nft.remaining_calls} calls remaining")

# Use 5 calls
for _ in range(5):
    reg.consume_call(nft.token_id)
print(f"Remaining: {nft.remaining_calls}")  # 95

# Transfer to Bob
reg.transfer(nft.token_id, "0xAlice", "0xBob")
print(f"Owner: {nft.owner_address}")  # 0xBob

# Gift 50 calls to a friend
gift = reg.gift("summarize@v1", "prod-002", 50, 0.25, "0xAlice", "0xCharlie")
print(f"Gifted: {gift.token_id} to {gift.owner_address}")

# Stats
print(reg.stats())
# {"total_nfts": 2, "active_nfts": 1, "total_transfers": 1, ...}

ERC-721 Compatible

Each NFT includes standard metadata: name, description, attributes (capability, total calls, price per call, transfer count). Ready for OpenSea/Rarible listing.

License

MIT · Maintained by AI-Factory

Metadata

Release files for aimarket-nft 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aimarket-nft 2.0.0
File Size Uploaded
aimarket_nft-2.0.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aimarket-nft 2.0.0
File Interpreter ABI Platform
aimarket_nft-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / aimarket_nft-2.0.0.tar.gz

Download URL aimarket_nft-2.0.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0dcc887649741c4f79eb60694bd5fd09f8142dff6a11e2ded062ae08aa81b72a
BLAKE2b-256 checksum
How to use checksums
89a155678681079ed38cd8b50087fa2f55e78faac057f8787a24f4476e36de54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / aimarket_nft-2.0.0-py3-none-any.whl

Download URL aimarket_nft-2.0.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0e41cb23f5e36dae690b19c4589751d7b255b6c00e2b0cf2565e433103de65d
BLAKE2b-256 checksum
How to use checksums
467134eacde98723aee5cd22a3cbb00285b27c91bb79f0ae44c4800393e4c4b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page