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.

GET/v1/jobs/{id}/eventAPI key

Authorization

Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.

Path parameters

idstringrequired

Responses

200application/json

Successful Response

Show response attributes
idstringrequired

Stable per event: a retry or a second endpoint gets the same id.

typeenum<string>required

Available options: job.completed job.failed run.completed run.failed benchmark.completed budget.reached webhook.test

created_atstring<date-time>required
job_idstring | null
run_idstring | null
route_idstring | null
benchmark_idstring | null
statsobject | nullrequired
Show child attributes
gpuenum<string> | nullrequired

Available options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300

machinestring | nullrequired
providerstringrequired
statusstringrequired

Run status for run events, job state for job events, completed or no_qualified_gpu for benchmarks.

verificationenum<string> | nullrequired

Available options: not_requested pending passed failed

runtime_secondsstring | nullrequired

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

cost_usdstring | nullrequired

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

usd_per_unitstring | nullrequired

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

unitstring | nullrequired
comparedobject[]required

Verified cost per unit of every GPU tested, cheapest first.

Show child attributes
gpuenum<string>required

Available options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300

machinestringrequired
usd_per_unitstringrequired

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

unitstringrequired
savingsobject | null
Show child attributes
baseline_gpuenum<string>required

The 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 | nullrequired

The 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 | nullrequired

This job's GPU cost: its benchmark runs plus the full run, projected until the run finishes.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

saved_usdstring | nullrequired

baseline_cost_usd minus job_cost_usd; negative when benchmarking cost more than it saved.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

percentstring | nullrequired

saved_usd as a percent of baseline_cost_usd.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

spend_usdstring | null

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

budget_usdstring | null

pattern: ^(?!^[-+.]*$)[+-]?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>required

Available options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300

run_idstringrequired
reasonstringrequired

Why the launch on this GPU failed to start.

outputsobject[]default: []
Show child attributes
pathstringrequired
download_urlstringrequired

GET with the caller's API key as a bearer token.

simulatedbooleandefault: false
agent_promptstringrequired

What happened and what to do next, written for an AI agent.

401application/json

UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.

UNAUTHENTICATED
404application/json

JOB_NOT_FOUND: no job with this id belongs to the caller.

JOB_NOT_FOUND
409application/json

JOB_NOT_FINISHED: the job is not done or failed yet; poll GET /v1/jobs/{id}.

JOB_NOT_FINISHED
500application/json

Unexpected failure: INTERNAL_ERROR.

INTERNAL_ERROR
502application/json

AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).

AUTH_PROVIDER_REJECTED
503application/json

AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).

AUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLE

MCP 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.