Scheduling
Level tasks across workers API
Assigns independent tasks to N identical parallel workers to minimize makespan using the LPT greedy heuristic, returning per-worker assignment, makespan, lower bound, and utilization. Answers 'How do I balance these tasks across my team to finish soonest?', 'What's the makespan with N workers?'.
Price$0.03per request
MethodPOST
Route/v1/scheduling/resource-leveling
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
schedulingresource-levelingmakespanlptload-balancingbin-packingplanningagents
API URL
Integration docshttps://x402.hexl.dev/v1/scheduling/resource-levelingExample request
{
"tasks": [
{
"id": "t1",
"durationHours": 4
},
{
"id": "t2",
"durationHours": 3
},
{
"id": "t3",
"durationHours": 2
},
{
"id": "t4",
"durationHours": 1
}
],
"workers": 2
}Example response
{
"workers": 2,
"makespanHours": 5,
"lowerBoundHours": 5,
"totalWorkHours": 10,
"averageLoadHours": 5,
"utilization": 1,
"assignment": [
{
"worker": 1,
"load": 5,
"tasks": [
{
"id": "t1",
"durationHours": 4
},
{
"id": "t4",
"durationHours": 1
}
]
},
{
"worker": 2,
"load": 5,
"tasks": [
{
"id": "t2",
"durationHours": 3
},
{
"id": "t3",
"durationHours": 2
}
]
}
],
"interpretation": "Makespan 5h across 2 workers (lower bound 5h, 100% utilized)."
}Input schema
{
"type": "object",
"required": [
"tasks",
"workers"
],
"properties": {
"tasks": {
"type": "array",
"items": {
"type": "object"
}
},
"workers": {
"type": "number",
"examples": [
2
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}