API ReferenceBuild with ML Bridge
Comprehensive API documentation for integrating decentralized machine learning capabilities into your applications.
RESTful API
Wallet Auth
Real-time Updates
API Base URL
All requests should be made to this endpoint
https://api.mlbridge.net/v1Quick Start
Get up and running with the ML Bridge API in three simple steps.
1
Authenticate
Connect wallet and get API credentials
POST /api/auth/challenge
{ "address": "0x..." }2
Make Request
Use your token to access endpoints
GET /api/models Authorization: Bearer <token>
3
Submit Task
Create and monitor ML tasks
POST /api/tasks/submit
{ "modelId": "...", "input": {} }API Endpoints
Explore our comprehensive API endpoints.
Official SDKs
Use our SDKs for easier integration.
JS
JavaScript
npm install @mlbridge/sdkPy
Python
pip install mlbridge-pythonGo
Go
go get github.com/mlbridge/go-sdkRate Limits
Free Tier
1,000/hr
10,000/day
Pro Tier
10,000/hr
100,000/day
Best Practices
Always use HTTPS
Implement proper error handling
Cache responses when appropriate
Monitor your API usage