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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aimarket_nft-2.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aimarket_nft-2.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file aimarket_nft-2.0.0.tar.gz.

File metadata

  • Download URL: aimarket_nft-2.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aimarket_nft-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0dcc887649741c4f79eb60694bd5fd09f8142dff6a11e2ded062ae08aa81b72a
MD5 b91aafd4b3a5bbdc68c108219f7975a1
BLAKE2b-256 89a155678681079ed38cd8b50087fa2f55e78faac057f8787a24f4476e36de54

See more details on using hashes here.

File details

Details for the file aimarket_nft-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: aimarket_nft-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aimarket_nft-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0e41cb23f5e36dae690b19c4589751d7b255b6c00e2b0cf2565e433103de65d
MD5 811bb962f290e91a26f9f2c54eb64ac2
BLAKE2b-256 467134eacde98723aee5cd22a3cbb00285b27c91bb79f0ae44c4800393e4c4b2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page