Skip to content
Inferlane

API reference, 5 of 17

Request status

Poll status, queue position and logs.

Endpoint

Request
GET https://inferlane.net/api/v1/requests/{request_id}/status
curl "https://inferlane.net/api/v1/requests/$REQUEST_ID/status" \
  -H "Authorization: Key $API_KEY"
200 OK
{
  "request_id": "YmxhY2stZm9yZXN0LWxhYnMvZmx1eC0yLXByb3xtdXF6ZDB2c3wxLjA0OXwzODg5MDFhZnw5ZDkxMjg",
  "model_id": "black-forest-labs/flux-2-pro",
  "status": "IN_PROGRESS",
  "progress": 0.51,
  "logs": [
    {
      "timestamp": "2026-10-02T13:09:55.000Z",
      "level": "info",
      "message": "Request received and queued."
    },
    {
      "timestamp": "2026-10-02T13:09:55.900Z",
      "level": "info",
      "message": "Worker assigned."
    },
    {
      "timestamp": "2026-10-02T13:09:56.100Z",
      "level": "info",
      "message": "Loading FLUX.2 [pro]."
    },
    {
      "timestamp": "2026-10-02T13:09:56.400Z",
      "level": "info",
      "message": "Running inference."
    },
    {
      "timestamp": "2026-10-02T13:09:57.200Z",
      "level": "info",
      "message": "Inference halfway."
    }
  ],
  "status_url": "https://inferlane.net/api/v1/requests/YmxhY2stZm9yZXN0LWxhYnMvZmx1eC0yLXByb3xtdXF6ZDB2c3wxLjA0OXwzODg5MDFhZnw5ZDkxMjg/status",
  "response_url": "https://inferlane.net/api/v1/requests/YmxhY2stZm9yZXN0LWxhYnMvZmx1eC0yLXByb3xtdXF6ZDB2c3wxLjA0OXwzODg5MDFhZnw5ZDkxMjg",
  "submitted_at": "2026-10-02T13:09:55.000Z",
  "metrics": {
    "elapsed_ms": 2230
  }
}

Statuses

IN_QUEUEstatus
Waiting for a worker. queue_position counts down to 0, which means next.
IN_PROGRESSstatus
Running. progress moves from 0 to 1 and new log lines appear.
COMPLETEDstatus
Done. The result endpoint now returns the output.

Response fields

statusstring
One of IN_QUEUE, IN_PROGRESS, COMPLETED.
queue_positioninteger
Only while IN_QUEUE. 0 means next.
progressnumber
From 0 to 1.
logsarray
Lines with timestamp, level and message, oldest first.
metrics.elapsed_msinteger
Milliseconds since submit.
metrics.inference_msinteger
Only once COMPLETED: time spent running the model.
status_url, response_urlstring
The same URLs the submit call returned.

Polling well

  • Poll about once a second. Faster polling does not make a request finish sooner.
  • Stop polling when the status is COMPLETED, then call the result endpoint once.
  • Set an overall timeout in your code. Video models take longer than image models.