API ReferenceBuild with ML Bridge
Comprehensive API documentation for integrating decentralized machine learning capabilities into your applications.
Development Preview
The REST API and SDKs described below are planned for future release. Currently, ML Bridge operates through on-chain smart contracts on Base Sepolia. You can interact with contracts directly using viem/wagmi or ethers.js. See the Smart Contracts documentation for current integration methods.
API Base URL
Planned API endpoint (not yet available)
https://api.mlbridge.net/v1Quick Start
Get up and running with the ML Bridge API in three simple steps.
Authenticate
Connect wallet and get API credentials
POST /api/auth/challenge
{ "address": "0x..." }Make Request
Use your token to access endpoints
GET /api/models Authorization: Bearer <token>
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.
JavaScript (Planned)
npm install @mlbridge/sdkPython (Planned)
pip install mlbridge-pythonGo (Planned)
go get github.com/mlbridge/go-sdk