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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dcc887649741c4f79eb60694bd5fd09f8142dff6a11e2ded062ae08aa81b72a
|
|
| MD5 |
b91aafd4b3a5bbdc68c108219f7975a1
|
|
| BLAKE2b-256 |
89a155678681079ed38cd8b50087fa2f55e78faac057f8787a24f4476e36de54
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0e41cb23f5e36dae690b19c4589751d7b255b6c00e2b0cf2565e433103de65d
|
|
| MD5 |
811bb962f290e91a26f9f2c54eb64ac2
|
|
| BLAKE2b-256 |
467134eacde98723aee5cd22a3cbb00285b27c91bb79f0ae44c4800393e4c4b2
|