From trained model to monetized predictions in under a day
Your proprietary ML model is valuable intellectual property. Spartera's External API Connector lets you monetize predictions from any model — without sharing weights, training data, or infrastructure. Keep full control. Start earning immediately.
Most data scientists and ML teams face the same dilemma: you've invested months training a high-value model, but the only monetization options — publishing to model hubs, licensing weights, or consulting — either give away your IP or don't scale. Spartera's External API Connector introduces a third path: sell the predictions, not the model. Your model stays on your infrastructure. Buyers get real-time predictions through the Spartera Marketplace. You earn per prediction with zero IP exposure.
Model weights and training data never leave your servers
Buyers discover and purchase predictions through the Spartera Marketplace
You set your own price per prediction and keep 100% of it
Works with any framework: TensorFlow, PyTorch, scikit-learn, XGBoost, custom
Works on any cloud: GCP, AWS, Azure, or your own servers
Spartera handles marketplace discovery, authentication, billing, and delivery
The economics and security of selling inferences
Publishing a model to HuggingFace or licensing weights means your IP is out of your hands forever. Competitors can fine-tune, reverse-engineer, or redistribute. With prediction monetization, your model architecture, weights, and training data never leave your infrastructure — buyers only see inputs and outputs.
Licensing a model is a one-time transaction. Selling predictions creates usage-based recurring revenue that grows as buyers scale. A model licensed for $50K generates $50K. That same model serving 10,000 predictions per month at $2 each generates $240K per year — and grows with demand.
Without Spartera, monetizing a model means managing API keys, billing, contracts, and support for every customer. With the External API Connector, you maintain a single deployment. Spartera handles customer acquisition, authentication, credit billing, and delivery. You serve 10 or 10,000 buyers with zero additional operations.
When you sell predictions via API, you can retrain and update your model at any time without disrupting buyers. They call the same Spartera endpoint and get better results. Try doing that when someone downloaded your model six months ago — they're stuck on the old version forever.
Four phases to your first earning prediction
Start with a trained model in any ML framework. For this guide, we'll walk through a simple scikit-learn classifier, but the same approach works for TensorFlow, PyTorch, XGBoost, or any framework that can produce predictions programmatically.
Wrap your model in a web service that accepts JSON input and returns predictions. You have two main paths: GCP Cloud Run for managed, auto-scaling deployment, or a generic Flask/FastAPI server on any cloud or VPS.
Register your API endpoint as a data connection in the Spartera Seller Portal. This tells Spartera where your model lives and how to authenticate requests — without ever accessing your model directly.
An asset is the marketplace listing that buyers discover and purchase. It defines the model's input parameters (schema), pricing, and metadata. Once published, buyers can get predictions through the marketplace form or via API — with zero knowledge of your backend.
Model weights, architecture, and training data never leave your infrastructure
Go from trained model to earning predictions in hours, not months
Spartera handles discovery, authentication, billing, and customer support
Serve unlimited marketplace buyers from a single model deployment
Any framework that can produce predictions. scikit-learn, TensorFlow, PyTorch, XGBoost, LightGBM, Keras, ONNX, custom code — if it can run behind a REST API and return JSON, it works with Spartera. The External API Connector is framework-agnostic.
Anywhere with an HTTPS endpoint. GCP Cloud Run, AWS Lambda, Azure Functions, AWS EC2, Google Compute Engine, DigitalOcean, Heroku, Render, your own data center — even a Raspberry Pi if it has a public HTTPS URL. Spartera is cloud-agnostic.
No. Buyers only see the marketplace listing (input parameters, description, pricing) and the prediction output. Your model weights, architecture, training data, and infrastructure are completely invisible. Spartera only sends structured requests and receives the answer_value response.
You set a credit price per prediction. Buyers purchase credits and spend them on predictions. You keep 100% of the price you set. Spartera earns by selling credits at a markup to buyers. There are no listing fees, monthly charges, or revenue sharing from your set price.
Yes, using function_id routing. Deploy one endpoint, create separate Spartera assets with different function_id values (e.g., 'predict_salary', 'predict_churn'). Your endpoint reads the function_id and dispatches to the correct model. Each asset gets its own marketplace listing and pricing.
Spartera returns an error to the buyer and classifies it as a seller-side issue (5xx). Buyers are not charged credits for failed predictions. We strongly recommend implementing health checks, uptime monitoring, and setting Cloud Run min-instances to 1+ to avoid cold start downtime.
Yes — this is a key advantage of prediction monetization. Retrain your model, redeploy your endpoint, and buyers automatically get predictions from the updated model. No versioning headaches, no buyer migration, no re-downloads. The Spartera asset and marketplace listing remain unchanged.
Minimal. Your endpoint just needs to: (1) parse the Spartera POST body (asset_id, testmode, function_id, params), (2) run your model on the params, and (3) return {"answer_value": result}. That's roughly 10-20 lines on top of your existing model serving code.
Database-backed assets run SQL queries against a connected data warehouse (BigQuery, Snowflake, etc.) and return aggregate analytics. External API assets forward requests to your custom API endpoint and return whatever your model computes. Both appear the same to marketplace buyers — the difference is entirely in the backend processing.
Aim for under 5 seconds. Most buyer requests come through the marketplace web form, where 1-3 second response times feel responsive. For API-to-API integrations, sub-second is ideal. Spartera will timeout and return an error to the buyer after approximately 30 seconds.
Still have questions?
Contact UsDeepen your understanding with these related guides
APIs that process data and return insights, not raw data
Why smart data owners sell insights, not files
Building analytics APIs that developers love
How to price analytics for maximum revenue
Why data should stay where it lives
Choose the right model to monetize your data assets
Explore more guides and tutorials
Browse All TopicsYour model is already trained. You're 30 minutes away from earning your first dollar on predictions.