Skip to content
Inferlane

17 articles in 4 sections

Three calls. Every model.

Submit, poll, fetch. Every Inferlane model speaks the same HTTP contract, so curl, fetch or requests is all you need.

API base https://inferlane.net/api/v1

The whole API in three requests
# 1. Submit
curl -X POST "https://inferlane.net/api/v1/queue/black-forest-labs/flux-2-pro" \
  -H "Authorization: Key $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Portrait of a person in a linen shirt by a window, natural light, calm expression, 85mm photo","image_size":"square_hd","num_images":1}'

# 2. Poll
curl "https://inferlane.net/api/v1/requests/$REQUEST_ID/status" \
  -H "Authorization: Key $API_KEY"

# 3. Fetch
curl "https://inferlane.net/api/v1/requests/$REQUEST_ID" \
  -H "Authorization: Key $API_KEY"