Jobs
Show job event
The job.completed or job.failed event of a finished job, the same payload a JSON webhook gets, for agents that poll.
Authorization
Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.
Path parameters
idstringrequiredResponses
200application/jsonSuccessful Response
Show response attributes
idstringrequiredStable per event: a retry or a second endpoint gets the same id.
typeenum<string>requiredAvailable options: job.completed job.failed run.completed run.failed benchmark.completed budget.reached webhook.test
created_atstring<date-time>requiredjob_idstring | nullrun_idstring | nullroute_idstring | nullbenchmark_idstring | nullstatsobject | nullrequiredShow child attributes
gpuenum<string> | nullrequiredAvailable options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300
machinestring | nullrequiredproviderstringrequiredstatusstringrequiredRun status for run events, job state for job events, completed or no_qualified_gpu for benchmarks.
verificationenum<string> | nullrequiredAvailable options: not_requested pending passed failed
runtime_secondsstring | nullrequiredpattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
cost_usdstring | nullrequiredpattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
usd_per_unitstring | nullrequiredpattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
unitstring | nullrequiredcomparedobject[]requiredVerified cost per unit of every GPU tested, cheapest first.
Show child attributes
gpuenum<string>requiredAvailable options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300
machinestringrequiredusd_per_unitstringrequiredpattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
unitstringrequiredsavingsobject | nullShow child attributes
baseline_gpuenum<string>requiredThe usual default: the fitting GPU with the cheapest hourly rate.
Available options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300
baseline_cost_usdstring | nullrequiredThe full job on the baseline at its current rate: (startup + work / measured throughput) x rate. The work is what the finished run did, or work_units before it finishes. Null when the baseline was not measured or the work is unknown.
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
job_cost_usdstring | nullrequiredThis job's GPU cost: its benchmark runs plus the full run, projected until the run finishes.
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
saved_usdstring | nullrequiredbaseline_cost_usd minus job_cost_usd; negative when benchmarking cost more than it saved.
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
percentstring | nullrequiredsaved_usd as a percent of baseline_cost_usd.
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
spend_usdstring | nullpattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
budget_usdstring | nullpattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
fallbacksobject[]default: []Job events: GPUs whose full-run launch failed to start before the job moved on.
Show child attributes
gpuenum<string>requiredAvailable options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300
run_idstringrequiredreasonstringrequiredWhy the launch on this GPU failed to start.
outputsobject[]default: []Show child attributes
pathstringrequireddownload_urlstringrequiredGET with the caller's API key as a bearer token.
simulatedbooleandefault: falseagent_promptstringrequiredWhat happened and what to do next, written for an AI agent.
401application/jsonUNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.
UNAUTHENTICATED404application/jsonJOB_NOT_FOUND: no job with this id belongs to the caller.
JOB_NOT_FOUND409application/jsonJOB_NOT_FINISHED: the job is not done or failed yet; poll GET /v1/jobs/{id}.
JOB_NOT_FINISHED500application/jsonUnexpected failure: INTERNAL_ERROR.
INTERNAL_ERROR502application/jsonAUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).
AUTH_PROVIDER_REJECTED503application/jsonAUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).
AUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLEMCP tool
get_job_event: The job.completed or job.failed event of a finished job without waiting: the same payload a webhook gets, with stats and agent_prompt. JOB_NOT_FINISHED while the job is still going; wait_for_job blocks instead. Free.