Overview
Inferlane hosts image, video, audio and 3D models behind one HTTP API. You pick a model from the catalog, send its inputs as JSON, and read the output when the request completes. Every model uses the same three calls, so switching models means changing one id.
There is no client library to install. Any HTTP client works. The examples use curl, JavaScript fetch and Python requests.
How a request flows
- Submit.
POST /queue/{model_id}validates your inputs and returns arequest_idright away. - Poll.
GET /requests/{request_id}/statusreports the status:IN_QUEUE, thenIN_PROGRESS, thenCOMPLETED. - Fetch.
GET /requests/{request_id}returns the output, timings and the billed amount.
Generation can take from seconds to minutes, so the queue keeps your HTTP calls short and lets you poll at your own pace.
Base URL and conventions
All endpoints live under https://inferlane.net/api/v1.
- Requests and responses are JSON. Send
Content-Type: application/jsonwith a body. - Model ids have two parts,
vendor/model-name, for exampleblack-forest-labs/flux-2-pro. - Timestamps are ISO 8601 in UTC. Amounts are in US dollars.
- CORS is open, but keep API keys on your server. See Authentication.
Requests run through the full queue and every result carries
"sample": true.Next steps
- Quickstart: run your first model in a few minutes.
- Queue API: the submit call in detail.
- Model catalog API: list models and read their schemas.