peaktime

ispeaktime.dev · JSON API cookbook

API recipes

Copy-paste curl + jq one-liners for the public JSON API — no auth, responses cached for 60 seconds, every timestamp UTC. Each recipe works as-is against https://ispeaktime.dev (the BASE you see in the raw source fills itself in here).

Which providers are in peak right now?

The site’s own question as a plain list — provider ids, one per line.

bash
curl -s /api/v1/providers | jq -r '.providers[] | select(.peak == true) | .provider'

Is waiting worth it?

What peak costs vs off-peak, per provider — “run now” = off-peak; the number is what you’d pay extra in peak.

bash
curl -s /api/v1/providers | jq -r '
  .providers[]
  | select(.info.peak_cost != null)
  | "\(.provider): peak = \(.info.peak_cost.peak_to_off_peak)× \(.info.peak_cost.basis) " +
    "(off-peak saves \((1 - 1 / .info.peak_cost.peak_to_off_peak) * 100 | floor)%) — " +
    (if .peak then "peak now, \(.minutes_left) min left" else "off-peak now" end)'

Staleness check

Flag schedules verified more than 30 days ago — re-check the vendor’s page before relying on them.

bash
curl -s /api/v1/providers | jq -r '
  .providers[]
  | select((now - (.info.verified_at | strptime("%Y-%m-%d") | mktime)) > 30 * 86400)
  | "stale (\(.info.verified_at)): \(.provider)"'

Seconds until the regime flips

Sleep until it, alert on it — the countdown of one provider as a single number.

bash
curl -s /api/v1/providers/volcengine-ark-deepseek | jq '.seconds_left'

Which providers serve a model you care about?

Model names are not routes on purpose (they are not unique) — search the list instead.

bash
curl -s /api/v1/providers | jq -r '.providers[] | select(.info.models | index("glm-5.3")) | .provider'

The same tested engine powers the site and the API, so these answers can’t drift from the page — see the full API reference for every field, error shape and the optional ?tz= rendering.