API ReferenceComplete Endpoint Documentation
Comprehensive reference for all ML Bridge API endpoints, including authentication, models, tasks, and compute resources.
Base URL
All API requests should be prefixed with this URL
https://api.mlbridge.net/v1API Reference
Complete reference for the ML Bridge API endpoints.
https://api.mlbridge.net/v1Authentication Required
All API requests require authentication using a Bearer token obtained through wallet signature verification.
# First, get a challenge
curl -X POST https://api.mlbridge.net/v1/api/auth/challenge \
-H "Content-Type: application/json" \
-d '{"address": "0x742d35Cc6634C0532925a3b8D4C9db96"}'
# Then verify with signature
curl -X POST https://api.mlbridge.net/v1/api/auth/verify \
-H "Content-Type: application/json" \
-d '{
"address": "0x742d35Cc6634C0532925a3b8D4C9db96",
"signature": "0x1234567890abcdef...",
"nonce": "1234567890"
}'
# Use the token in subsequent requests
curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
https://api.mlbridge.net/v1/api/models/api/auth/challengeRequest Authentication Challenge
Generate a challenge message for wallet-based authentication
/api/auth/verifyVerify Authentication Signature
Verify the signed challenge and receive an access token
/api/modelsList Available Models
Retrieve a list of all registered AI models in the network
/api/models/registerRegister New Model
Register a new AI model in the ML Bridge network
/api/tasks/submitSubmit ML Task
Submit a new machine learning task for execution
/api/tasks/{taskId}/statusGet Task Status
Retrieve the current status and results of a submitted task
/api/compute/registerRegister Compute Node
Register a compute node to participate in the ML Bridge network
/api/verification/{taskId}Get Verification Results
Retrieve verification results and consensus data for a completed task