import halo
ring = halo.connect() # reads HALO_KEY from env
job = ring.infer(
model="flux-schnell",
batch=512,
deadline_ms=250,
)
print(job.latency_ms, job.cost_usd) # → 38.4 0.02
curl -s https://halo.sh/v1/infer \
-H "Authorization: Bearer $HALO_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-schnell",
"batch": 512,
"deadline_ms": 250
}'
import { Halo } from "@halo-network/sdk";
const ring = new Halo(); // reads HALO_KEY from env
const job = await ring.infer({
model: "flux-schnell",
batch: 512,
deadlineMs: 250,
});
console.log(job.latencyMs, job.costUsd); // → 38.4 0.02