Asset Monetization API
License datasets and content with flexible pricing models
Pricing Models
Assets can be monetized using four different pricing models:
Per-Training
Pay per training use. Ideal for datasets and models that track individual training runs.
Per-Response
Pay per API response generated. Best for content used in real-time inference.
One-Time License
Single payment for unlimited usage. Suitable for datasets with perpetual licenses.
Time-Based
Monthly or yearly subscriptions. Perfect for ongoing access to evolving datasets.
Browse Monetized Assets
/assets/monetized
List all available monetized assets with pricing information.
Example Request
curl "https://opttab.com/api/v1/ai/assets/monetized?category=dataset&pricing_model=per_training" \
-H "X-API-Key: opttab_abc123..." \
-H "X-API-Secret: your-secret-here"
Example Response
{
"success": true,
"data": [
{
"id": 123,
"name": "Medical Image Dataset",
"category": "dataset",
"monetization_model": "per_training",
"price_per_training": 0.05,
"description": "10,000 labeled medical images",
"owner": "Dr. Smith",
"total_uses": 5420
}
]
}
License Asset
/assets/{id}/license
License an asset for use in your AI model.
Example Request
curl -X POST "https://opttab.com/api/v1/ai/assets/123/license" \
-H "X-API-Key: opttab_abc123..." \
-H "X-API-Secret: your-secret-here" \
-H "Content-Type: application/json" \
-d '{
"license_type": "per_training",
"estimated_uses": 10000
}'
Track Usage
/assets/{id}/usage
Track asset usage and process automatic payments based on the pricing model.
Example Request
curl -X POST "https://opttab.com/api/v1/ai/assets/123/usage" \
-H "X-API-Key: opttab_abc123..." \
-H "X-API-Secret: your-secret-here" \
-H "Content-Type: application/json" \
-d '{
"usage_type": "training",
"count": 100
}'
Example Response
{
"success": true,
"data": {
"asset_id": 123,
"usage_type": "training",
"count": 100,
"price_per_use": 0.05,
"total_charged": 5.00,
"creator_earnings": 4.00,
"platform_fee": 1.00
},
"message": "Usage tracked and payment processed"
}