Skip to content

API

The browser talks through the BFF; producer workers connect to the BFF with a service token.

BFF

Protected by the session (Auth.js). The browser only talks to these endpoints.

MethodPathDescription
POST/api/bff/uploadsUpload image → image_url
POST/api/bff/jobsCreate job
GET/api/bff/jobs/:idJob status
GET/api/bff/jobs/:id/resultResult GLB
GET/api/bff/meSession + account + wallet
POST/api/bff/billing/checkoutStripe Checkout session
POST/api/bff/billing/webhookStripe webhook
GET/api/bff/healthService health

Producer

Accessed through the BFF proxy with the X-Service-Token header; there is no direct access to core-service.

MethodPathDescription
GET/api/v1/models/best-fitHardware-matched model
GET/api/v1/models/downloadModel file
POST/api/v1/resourcesGPU resource offer
POST/api/v1/resources/:id/heartbeatLiveness
POST/api/v1/resources/:id/statusStatus
GET/api/v1/jobsQueue query
POST/api/v1/jobs/:id/assignClaim job
POST/api/v1/jobs/:id/completeComplete job
PUT/api/v1/jobs/:id/resultUpload GLB
GET/api/v1/uploads/:idInput image