{"openapi":"3.1.0","info":{"title":"GPU Router API","description":"Routes a GPU job to the cheapest fitting GPU with the evidence, then launches, benchmarks, and verifies it in your own provider account. The same capabilities are reachable three ways: this REST API under /v1 (bearer `Authorization: Bearer gr_...` from the Developer access page, or the browser session), the `gpu-router` command line (`python -m api.cli`, `--json` on every command), and the MCP server at /mcp (Streamable HTTP, same bearer key). Every error uses one envelope, `{error: {code, message, request_id, retryable, details}}`; each error response below lists its `code` values under `x-error-codes`. Launches and benchmarks take an `Idempotency-Key` header, so a retry never starts compute twice.","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["health"],"summary":"Get Health","description":"Liveness and server state: version, poll loop, market index, and assist configuration. No auth.","operationId":"get_health","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]}},"security":[{"APIKeyCookie":[]}]}},"/ready":{"get":{"tags":["health"],"summary":"Get Ready","description":"Readiness: 200 once the database accepts writes and the run poller completed a recent pass, else 503 NOT_READY.","operationId":"get_ready","responses":{"200":{"description":"The database accepts writes and the run poller completed a pass within three poll intervals.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyResponse"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"503":{"description":"NOT_READY: the database is not writable, or the run poller has not completed a pass within three poll intervals since startup. Retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["NOT_READY"]}}}},"/v1/auth/signup":{"get":{"tags":["auth"],"summary":"Signup","description":"Browser only: redirect to the sign-in page.","operationId":"signup","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}}],"responses":{"302":{"description":"Redirect to `/sign-in`, keeping an optional local `return_to` path. Kept for old links."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]}}}},"/v1/auth/login":{"get":{"tags":["auth"],"summary":"Login","description":"Browser only: redirect to the sign-in page.","operationId":"login","parameters":[{"name":"return_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}}],"responses":{"302":{"description":"Redirect to `/sign-in`, keeping an optional local `return_to` path. Kept for old links."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]}}}},"/v1/auth/email":{"post":{"tags":["auth"],"summary":"Send Code","description":"Browser sign-in step one: send a magic code to the email address and redirect to the code step.","operationId":"send_code","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_send_code"}}},"required":true},"responses":{"303":{"description":"Redirect to `/sign-in` for the next step or a fixed notice, or to the page to return to once signed in."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/auth/code":{"post":{"tags":["auth"],"summary":"Check Code","description":"Browser sign-in step two: check the code, start the session, and redirect to the remembered page or /overview.","operationId":"check_code","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_check_code"}}},"required":true},"responses":{"303":{"description":"Redirect to `/sign-in` for the next step or a fixed notice, or to the page to return to once signed in."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/auth/login/google":{"get":{"tags":["auth"],"summary":"Login With Google","description":"Browser only: redirect to WorkOS for Google sign-in.","operationId":"login_with_google","responses":{"302":{"description":"Redirect to the WorkOS authorization URL for the Google OAuth provider."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/auth/callback":{"get":{"tags":["auth"],"summary":"Callback","description":"WorkOS return URL: exchange the code, start the session, and redirect.","operationId":"callback","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"303":{"description":"Redirect to `/overview` when signed in, `/sign-in?sign_in=failed` when the sign-in was cancelled, denied, or rejected, `/sign-in?sign_in=google_off` when the provider refused to start it, `/sign-in?sign_in=unavailable` when the provider could not be reached."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED"]}}}},"/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"End the browser session, clear the cookie, and redirect to the WorkOS logout URL. Session only.","operationId":"logout","responses":{"303":{"description":"Redirect to the WorkOS logout URL for the current session, or to `/sign-in` for a demo account; the response also clears the session cookie."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]}]}},"/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","description":"The signed-in account. Session cookie only; a bearer key uses GET /v1/me.","operationId":"me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]}]}},"/v1/me":{"get":{"tags":["auth"],"summary":"Whoami","description":"The account the session cookie or bearer API key acts as: the whoami for a key.","operationId":"whoami","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/auth/demo":{"post":{"tags":["auth"],"summary":"Start Demo","description":"Browser only: start a temporary demo account with finished simulated sample jobs and sign it in.","operationId":"start_demo","responses":{"303":{"description":"A temporary demo account with one finished simulated job per sample, signed in with the session cookie, redirected to the remembered page or `/jobs`. It and all its rows are deleted 24 hours later. Redirect to `/sign-in?sign_in=demo_wait` after 5 starts from one address in an hour, `/sign-in?sign_in=demo_full` when 500 demo accounts exist."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/api-keys":{"get":{"tags":["api-keys"],"summary":"List User Keys","description":"Your keys, newest first, prefixes only. Session only.","operationId":"list_user_keys","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyList"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["api-keys"],"summary":"Create Key","description":"Mint a bearer API key for the CLI, agents, and MCP; the key is returned once. Session only, so a leaked key cannot mint keys.","operationId":"create_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequest"}}},"required":true},"responses":{"201":{"description":"The new key. The key field is shown in this response only; later listings show the prefix.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedKey"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"422":{"description":"VALIDATION_ERROR: malformed body, or name is blank or longer than 100 characters after stripping surrounding whitespace. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"DEMO_ACCOUNT_LIMITED: a demo account already has its maximum of API keys. CSRF_ORIGIN_MISMATCH as for any write.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["DEMO_ACCOUNT_LIMITED","CSRF_ORIGIN_MISMATCH"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}},"security":[{"APIKeyCookie":[]}]}},"/v1/api-keys/{id}":{"delete":{"tags":["api-keys"],"summary":"Delete Key","description":"Delete a key; it stops authenticating at once. Session only.","operationId":"delete_key","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"The key is deleted: it stops authenticating at once and no longer appears in the list. Deleting it again is 404."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"API_KEY_NOT_FOUND: no key with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["API_KEY_NOT_FOUND"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/providers":{"get":{"tags":["provider-connections"],"summary":"List Providers","description":"Every supported provider with its credential fields and your connection to it or null.","operationId":"list_providers","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProviderSummary"},"type":"array","title":"Response List Providers"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/provider-connections":{"get":{"tags":["provider-connections"],"summary":"List Connections","description":"Your connections, at most one per provider.","operationId":"list_connections","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Connection"},"type":"array","title":"Response List Connections"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]},"post":{"tags":["provider-connections"],"summary":"Connect","description":"Check and store the credentials. A demo account gets status demo: nothing is checked, stored, or launched with it.","operationId":"connect","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connection"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"PROVIDER_UNAVAILABLE (retryable): the provider timed out or failed, nothing was stored or replaced. AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_UNAVAILABLE","AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"409":{"description":"PROVIDER_CONNECTION_EXISTS: the user already has a connection to this provider; replace or delete it instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_CONNECTION_EXISTS"]},"422":{"description":"VALIDATION_ERROR: malformed body or credentials that do not match the provider's fields. PROVIDER_CREDENTIALS_INVALID: the provider rejected the credentials; nothing was stored or replaced (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR","PROVIDER_CREDENTIALS_INVALID"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/provider-connections/{id}":{"get":{"tags":["provider-connections"],"summary":"Show","description":"One of your connections with its status.","operationId":"show","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connection"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"PROVIDER_CONNECTION_NOT_FOUND: no connection with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_CONNECTION_NOT_FOUND"]}}},"patch":{"tags":["provider-connections"],"summary":"Replace","description":"Check and store new credentials for the connection; the old ones stay until the check passes.","operationId":"replace","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connection"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"PROVIDER_UNAVAILABLE (retryable): the provider timed out or failed, nothing was stored or replaced. AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_UNAVAILABLE","AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"PROVIDER_CONNECTION_NOT_FOUND: no connection with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_CONNECTION_NOT_FOUND"]},"422":{"description":"VALIDATION_ERROR: malformed body or credentials that do not match the provider's fields. PROVIDER_CREDENTIALS_INVALID: the provider rejected the credentials; nothing was stored or replaced (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR","PROVIDER_CREDENTIALS_INVALID"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}},"delete":{"tags":["provider-connections"],"summary":"Disconnect","description":"Delete the connection. Refused with 409 PROVIDER_CONNECTION_IN_USE while a run is active.","operationId":"disconnect","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"Successful Response"},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"PROVIDER_CONNECTION_NOT_FOUND: no connection with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_CONNECTION_NOT_FOUND"]},"409":{"description":"PROVIDER_CONNECTION_IN_USE: the user has a run in status accepted, launching, running, or cancel_requested; cancel it and wait until the poll confirms a terminal status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_CONNECTION_IN_USE"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/provider-connections/{id}/verify":{"post":{"tags":["provider-connections"],"summary":"Recheck","description":"Recheck the stored credentials with the provider and store the new status (Recheck in the UI). A run's verification report is GET /v1/runs/{id}/verification.","operationId":"recheck","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Metadata after the recheck; status is connected, invalid, or unavailable. A demo connection stays demo and is not checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connection"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"PROVIDER_CONNECTION_NOT_FOUND: no connection with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_CONNECTION_NOT_FOUND"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/gpus/live":{"get":{"tags":["gpus"],"summary":"List Live Prices","description":"Public. RunPod and Vast.ai prices read from their public endpoints without a key, at most five minutes old and never stored. A provider that cannot be read is listed in failures. 401 only for an unknown or revoked API key.","operationId":"list_live_prices","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivePrices"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/gpus":{"get":{"tags":["gpus"],"summary":"List Gpus","description":"Public; signed out you see what any non-owner account sees. 401 only for an unknown or revoked API key.","operationId":"list_gpus","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/RateTier"},{"type":"null"}],"description":"Only prices and history of this tier; omit for every tier.","title":"Tier"},"description":"Only prices and history of this tier; omit for every tier."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GpuListing"},"title":"Response List Gpus"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"422":{"description":"VALIDATION_ERROR: tier is not a known capacity tier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/gpus/market-index":{"get":{"tags":["gpus"],"summary":"List Market Index","description":"Matched market index observations. Empty unless the caller is the owner account.","operationId":"list_market_index","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":366,"minimum":1,"description":"Window ending now, in days.","default":30,"title":"Days"},"description":"Window ending now, in days."},{"name":"series","in":"query","required":false,"schema":{"$ref":"#/components/schemas/IndexSeries","description":"Index series: ornn, or the Silicon Data NeoCloud or HyperScaler index, which is market reference only.","default":"ornn"},"description":"Index series: ornn, or the Silicon Data NeoCloud or HyperScaler index, which is market reference only."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MarketIndexPoint"},"title":"Response List Market Index"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"422":{"description":"VALIDATION_ERROR: days is 1 to 366.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/gpus/market-index/latest":{"get":{"tags":["gpus"],"summary":"List Latest Market Index","description":"Latest and previous settlement per GPU. Empty unless the caller is the owner account.","operationId":"list_latest_market_index","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"series","in":"query","required":false,"schema":{"$ref":"#/components/schemas/IndexSeries","description":"Index series: ornn, or the Silicon Data NeoCloud or HyperScaler index, which is market reference only.","default":"ornn"},"description":"Index series: ornn, or the Silicon Data NeoCloud or HyperScaler index, which is market reference only."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IndexQuote"},"title":"Response List Latest Market Index"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/gpus/{gpu}/history":{"get":{"tags":["gpus"],"summary":"Get Gpu History","description":"Public; signed out you see what any non-owner account sees: the rate series and a null index. 401 only for an unknown or revoked API key.","operationId":"get_gpu_history","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"gpu","in":"path","required":true,"schema":{"$ref":"#/components/schemas/GpuType"}},{"name":"range","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HistoryRange","description":"Window ending now; all returns every stored observation.","default":"3m"},"description":"Window ending now; all returns every stored observation."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GpuHistory"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"422":{"description":"VALIDATION_ERROR: gpu is not in the catalog or range is not 1w, 1m, 3m, 1y, or all.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/routes":{"post":{"tags":["routes"],"summary":"Create Route","description":"Route a job spec: compatible candidates, the selected GPU, the explanation, the estimate, the evidence, and prices. Stores the route and never launches; POST /v1/routes/{id}/runs does.","operationId":"create_route","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL. DEMO_ACCOUNT_LIMITED: a demo account sent a job that is not a gpu-router sample.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH","DEMO_ACCOUNT_LIMITED"]},"422":{"description":"VALIDATION_ERROR: malformed body. NO_COMPATIBLE_GPU: no catalog GPU satisfies the spec. GPU_INCOMPATIBLE: the requested gpu does not satisfy the spec. Nothing is stored in any of these cases.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR","NO_COMPATIBLE_GPU","GPU_INCOMPATIBLE"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}},"get":{"tags":["routes"],"summary":"List Routes","description":"The caller's routes, newest first.","operationId":"list_routes","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutePage"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"422":{"description":"VALIDATION_ERROR: limit is 1 to 100, offset is 0 or more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]}}}},"/v1/routes/preview":{"post":{"tags":["routes"],"summary":"Preview Route","description":"Route a job without an account. Nothing is stored and nothing can run from it; sign in and create a route to run it.","operationId":"preview_route","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"422":{"description":"VALIDATION_ERROR: malformed body. NO_COMPATIBLE_GPU: no catalog GPU satisfies the spec. GPU_INCOMPATIBLE: the requested gpu does not satisfy the spec. Nothing is stored in any of these cases.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR","NO_COMPATIBLE_GPU","GPU_INCOMPATIBLE"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/routes/{id}":{"get":{"tags":["routes"],"summary":"Show Route","description":"One stored route with its candidates, selection, explanation, estimate, and evidence.","operationId":"show_route","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"ROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["ROUTE_NOT_FOUND"]}}}},"/v1/routes/{id}/evidence":{"get":{"tags":["routes"],"summary":"Show Evidence","description":"The measured runs named by the route's measurement evidence entries.","operationId":"show_evidence","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Measurement"},"title":"Response Show Evidence"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"ROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["ROUTE_NOT_FOUND"]}}}},"/v1/routes/{id}/prices":{"get":{"tags":["routes"],"summary":"Show Prices","description":"Stored rates for the route's spec, plus RunPod and Vast.ai prices fetched live without a key and never stored.","operationId":"show_prices","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceComparison"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"ROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["ROUTE_NOT_FOUND"]}}}},"/v1/estimates/tokens":{"get":{"tags":["estimates"],"summary":"Estimate Token Cost","description":"Cost per million output tokens of serving on a catalog GPU at the given throughput, utilization, and headroom, beside a hosted price.","operationId":"estimate_token_cost","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"gpu","in":"query","required":true,"schema":{"type":"string","title":"Gpu"}},{"name":"throughput_tokens_per_second","in":"query","required":true,"schema":{"anyOf":[{"type":"number","maximum":30000.0,"minimum":0.01},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"description":"Output tokens per second one GPU serves.","title":"Throughput Tokens Per Second"},"description":"Output tokens per second one GPU serves."},{"name":"utilization","in":"query","required":true,"schema":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.001},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"description":"Share of the hour the GPU is serving tokens.","title":"Utilization"},"description":"Share of the hour the GPU is serving tokens."},{"name":"headroom","in":"query","required":true,"schema":{"anyOf":[{"type":"number","maximum":100.0,"minimum":1.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"description":"Multiplier on compute cost for reserved capacity.","title":"Headroom"},"description":"Multiplier on compute cost for reserved capacity."},{"name":"hosted_price_per_million_tokens","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":100.0,"minimum":1e-06},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"description":"Hosted API price per million output tokens to break even against.","title":"Hosted Price Per Million Tokens"},"description":"Hosted API price per million output tokens to break even against."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCostEstimate"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"GPU_NOT_FOUND: unknown catalog GPU type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["GPU_NOT_FOUND"]},"422":{"description":"VALIDATION_ERROR: throughput_tokens_per_second is 0.01 to 30000, utilization is 0.001 to 1, headroom is 1 to 100, hosted_price_per_million_tokens is 0.000001 to 100 when given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]}}}},"/v1/gpus/{gpu}/prices":{"get":{"tags":["gpus"],"summary":"Show Gpu Prices","description":"Stored rates and keyless live prices of single-GPU instances of one catalog GPU across providers and tiers, with your launch counts. Without a job spec there is no runtime, estimated cost, or ceiling.","operationId":"show_gpu_prices","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"gpu","in":"path","required":true,"schema":{"$ref":"#/components/schemas/GpuType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceComparison"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/routes/{id}/runs":{"post":{"tags":["runs"],"summary":"Start Run","description":"Paid: launch the route's selected GPU, or the candidate named by gpu, in your Modal account. Needs an Idempotency-Key; a repeated key returns the first run without launching again.","operationId":"start_run","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED","title":"Idempotency-Key"},"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"202":{"description":"The stored run. Status is launching when the provider returned a reference, failed when the launch call raised, or lost when it timed out; a repeated Idempotency-Key for the same route returns the first run without launching again, in status accepted while that launch is still in flight.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"400":{"description":"IDEMPOTENCY_KEY_REQUIRED: the Idempotency-Key header is missing or empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["IDEMPOTENCY_KEY_REQUIRED"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"PLATFORM_RUN_LIMIT_REACHED (retryable): all users together already have GPU_ROUTER_MAX_PLATFORM_ACTIVE_RUNS runs in a non-terminal status. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PLATFORM_RUN_LIMIT_REACHED"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"ROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["ROUTE_NOT_FOUND"]},"409":{"description":"LAUNCH_NOT_SUPPORTED: the body names a candidate provider other than modal. ROUTE_NOT_SELECTED: the route selected no GPU. ROUTE_EXPIRED: the route's rate assumption has expired. PROVIDER_CONNECTION_REQUIRED: no Modal connection in status connected. RUN_LIMIT_REACHED: the user already has GPU_ROUTER_MAX_ACTIVE_RUNS runs in a non-terminal status. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["LAUNCH_NOT_SUPPORTED","ROUTE_NOT_SELECTED","ROUTE_EXPIRED","PROVIDER_CONNECTION_REQUIRED","RUN_LIMIT_REACHED"]},"422":{"description":"VALIDATION_ERROR: the route's job_spec.timeout_seconds is above this server's GPU_ROUTER_MAX_TIMEOUT_SECONDS. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/runs":{"get":{"tags":["runs"],"summary":"List User Runs","description":"The caller's runs, newest first.","operationId":"list_user_runs","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPage"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"422":{"description":"VALIDATION_ERROR: limit is 1 to 100, offset is 0 or more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]}}}},"/v1/measurements":{"get":{"tags":["runs"],"summary":"List User Measurements","description":"The caller's measured runs, newest first: duration and cost beside the route's estimate.","operationId":"list_user_measurements","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MeasuredRun"},"title":"Response List User Measurements"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"422":{"description":"VALIDATION_ERROR: limit is 1 to 100, offset is 0 or more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]}}}},"/v1/runs/{id}":{"get":{"tags":["runs"],"summary":"Show Run","description":"One run, refreshed from the provider while active, with its log tail and provider reference.","operationId":"show_run","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"RUN_NOT_FOUND: no run with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RUN_NOT_FOUND"]}}}},"/v1/runs/{id}/cancel":{"post":{"tags":["runs"],"summary":"Cancel Run","description":"Ask the provider to stop a launching or running run; a later poll records cancelled.","operationId":"cancel_run","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"202":{"description":"The run in status cancel_requested. Only a later status poll moves it to cancelled, or to succeeded when the run completed first; a run already in cancel_requested is returned unchanged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"RUN_NOT_FOUND: no run with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RUN_NOT_FOUND"]},"409":{"description":"RUN_NOT_CANCELLABLE: the run is already succeeded, failed, cancelled, or lost, or has no provider reference yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RUN_NOT_CANCELLABLE"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/runs/{id}/outputs":{"get":{"tags":["runs"],"summary":"Show Outputs","description":"The files the run wrote to its output volume; download each at GET /v1/runs/{id}/outputs/{path}.","operationId":"show_outputs","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOutputs"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"PROVIDER_UNAVAILABLE (retryable): the adapter timed out or raised while listing the volume. AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_UNAVAILABLE","AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"RUN_NOT_FOUND: no run with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RUN_NOT_FOUND"]},"409":{"description":"RUN_OUTPUTS_UNAVAILABLE: the run has no provider reference, so no output volume, or the run's output volume no longer exists (deleted in Modal). PROVIDER_CONNECTION_REQUIRED: no Modal connection in status connected; connect or recheck it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RUN_OUTPUTS_UNAVAILABLE","PROVIDER_CONNECTION_REQUIRED"]}}}},"/v1/runs/{id}/outputs/{path}":{"get":{"tags":["runs"],"summary":"Download Output","description":"Stream one listed output file as an attachment.","operationId":"download_output","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"The file streamed from the run's Modal Volume as an attachment named after its base file name; application/json, text/markdown, or application/octet-stream (such as safetensors) by extension.","content":{"application/octet-stream":{}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"PROVIDER_UNAVAILABLE (retryable): the adapter timed out or raised while listing the volume. AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["PROVIDER_UNAVAILABLE","AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"RUN_NOT_FOUND: no run with this id belongs to the signed-in user. OUTPUT_NOT_FOUND: the path is not exactly one of the files GET /v1/runs/{id}/outputs lists for the run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RUN_NOT_FOUND","OUTPUT_NOT_FOUND"]},"409":{"description":"RUN_OUTPUTS_UNAVAILABLE: the run has no provider reference, so no output volume, or the run's output volume no longer exists (deleted in Modal). PROVIDER_CONNECTION_REQUIRED: no Modal connection in status connected; connect or recheck it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RUN_OUTPUTS_UNAVAILABLE","PROVIDER_CONNECTION_REQUIRED"]}}}},"/v1/runs/{id}/verification":{"get":{"tags":["runs"],"summary":"Show Verification","description":"The per-check verification report of a succeeded run whose spec has a verifier.","operationId":"show_verification","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationReport"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"RUN_NOT_FOUND: no run with this id belongs to the signed-in user. VERIFICATION_NOT_FOUND: the run has no report because verification was not requested (no verifier in the spec) or is still pending (the run has not succeeded).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RUN_NOT_FOUND","VERIFICATION_NOT_FOUND"]}}}},"/v1/routes/{id}/benchmark/quote":{"get":{"tags":["benchmark"],"summary":"Show Quote","description":"The hard cap before confirming a benchmark: worst-case cost per GPU and in total for the chosen GPUs, time limit, and repeats. Free.","operationId":"show_quote","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"gpus","in":"query","required":true,"schema":{"type":"array","items":{"$ref":"#/components/schemas/GpuType"},"minItems":2,"maxItems":3,"title":"Gpus"}},{"name":"max_seconds","in":"query","required":true,"schema":{"type":"integer","maximum":3600,"minimum":30,"title":"Max Seconds"}},{"name":"runs_per_gpu","in":"query","required":false,"schema":{"type":"integer","maximum":5,"minimum":1,"default":3,"title":"Runs Per Gpu"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkQuote"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"ROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["ROUTE_NOT_FOUND"]}}}},"/v1/routes/{id}/benchmark":{"get":{"tags":["benchmark"],"summary":"Show Benchmark","description":"The route's benchmark: per-run results, exclusions, summary, and ranking, refreshed from the provider.","operationId":"show_benchmark","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Benchmark"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"ROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["ROUTE_NOT_FOUND"]}}},"post":{"tags":["benchmark"],"summary":"Start Benchmark","description":"Paid: launch probes on the chosen GPUs in your account, capped at max_cost_usd. Needs confirm true and an Idempotency-Key; read GET /v1/routes/{id}/benchmark/quote first.","operationId":"start_benchmark","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED","title":"Idempotency-Key"},"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkRequest"}}}},"responses":{"202":{"description":"The benchmark: the first run on each chosen GPU is launched, repeats follow as each finishes; a repeated Idempotency-Key returns it without launching again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Benchmark"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"400":{"description":"IDEMPOTENCY_KEY_REQUIRED: the header is missing. CONFIRMATION_REQUIRED: confirm is not true. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["IDEMPOTENCY_KEY_REQUIRED","CONFIRMATION_REQUIRED"]},"409":{"description":"BENCHMARK_OVER_CAP: the hard cap of all runs exceeds max_cost_usd. ROUTE_EXPIRED, PROVIDER_CONNECTION_REQUIRED, or RUN_LIMIT_REACHED (the first run on each GPU must fit) as for a run. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["BENCHMARK_OVER_CAP","ROUTE_EXPIRED","PROVIDER_CONNECTION_REQUIRED","RUN_LIMIT_REACHED"]},"422":{"description":"VALIDATION_ERROR: malformed body, runs_per_gpu outside 1 to 5, or max_seconds above the server's timeout limit. GPU_INCOMPATIBLE: a GPU is not a candidate of the route or has no listed rate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR","GPU_INCOMPATIBLE"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"ROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["ROUTE_NOT_FOUND"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/samples":{"get":{"tags":["samples"],"summary":"Every sample job with its specification","description":"Every sample job with its JobSpec, in a fixed order. No auth.","operationId":"list_samples","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SampleListing"},"type":"array","title":"Response List Samples"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/samples/lora":{"get":{"tags":["samples"],"summary":"Sample LoRA fine-tune job specification","description":"The LoRA fine-tune sample JobSpec. No auth.","operationId":"show_sample_spec","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSpec"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/samples/{id}":{"get":{"tags":["samples"],"summary":"One sample job specification","description":"One sample JobSpec by id, ready for POST /v1/routes or POST /v1/jobs. No auth.","operationId":"show_sample","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSpec"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"404":{"description":"SAMPLE_NOT_FOUND: no sample has this id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["SAMPLE_NOT_FOUND"]}}}},"/v1/assist/jobspec":{"post":{"tags":["assist"],"summary":"Propose Job Spec","description":"Propose a JobSpec from a plain-text job description. Needs ANTHROPIC_API_KEY on the server.","operationId":"propose_job_spec","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSpecProposal"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"422":{"description":"VALIDATION_ERROR: text is blank or longer than 4000 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"502":{"description":"AUTH_PROVIDER_REJECTED (not retryable), or ASSIST_FAILED: the Claude API failed, gave no proposal, or proposed fields that break the job spec rules (retryable for timeouts, rate limits, and server errors).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED","ASSIST_FAILED"]},"503":{"description":"AUTH_NOT_CONFIGURED, AUTH_PROVIDER_UNAVAILABLE (retryable), or ASSIST_NOT_CONFIGURED: ANTHROPIC_API_KEY is not set (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE","ASSIST_NOT_CONFIGURED"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/aggregates/gpus":{"get":{"tags":["aggregates"],"summary":"List Gpu Aggregates","description":"Public; signed out you see what any non-owner account sees. Per GPU identity: current stored rate per provider SKU and tier with provenance, the cheapest per-GPU rate per tier, public benchmark coverage, and market index statistics for the owner account only. Sources whose terms restrict prices, or that are unverified, are included for the owner account only.","operationId":"list_gpu_aggregates","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/GpuAggregate"},"type":"array","title":"Response List Gpu Aggregates"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/aggregates/spread":{"get":{"tags":["aggregates"],"summary":"List Spreads","description":"Owner account only: per GPU with both a Modal rate and a market index, the daily Modal rate in force minus the index, with mean, min, max, and latest over the window.","operationId":"list_spreads","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"range","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HistoryRange","description":"Window ending now; all returns every stored settlement.","default":"3m"},"description":"Window ending now; all returns every stored settlement."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GpuSpread"},"title":"Response List Spreads"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"404":{"description":"NOT_FOUND: the caller is not the owner account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["NOT_FOUND"]},"422":{"description":"VALIDATION_ERROR: gpu is not in the catalog or range is not 1w, 1m, 3m, 1y, or all.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/aggregates/spread/{gpu}":{"get":{"tags":["aggregates"],"summary":"Get Provider Spreads","description":"Owner account only: per provider with a stored rate for this GPU, its cheapest offer in force each settlement day minus the reference index, with mean, min, max, and latest over the window. Market reference only, never used for cost or ranking.","operationId":"get_provider_spreads","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"gpu","in":"path","required":true,"schema":{"$ref":"#/components/schemas/GpuType"}},{"name":"range","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HistoryRange","description":"Window ending now; all returns every stored settlement.","default":"3m"},"description":"Window ending now; all returns every stored settlement."},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/RateTier"},{"type":"null"}],"description":"Only offers of this tier; omit for each provider's cheapest offer of any tier.","title":"Tier"},"description":"Only offers of this tier; omit for each provider's cheapest offer of any tier."},{"name":"reference","in":"query","required":false,"schema":{"$ref":"#/components/schemas/IndexSeries","description":"Index series: ornn, or the Silicon Data NeoCloud or HyperScaler index, which is market reference only.","default":"ornn"},"description":"Index series: ornn, or the Silicon Data NeoCloud or HyperScaler index, which is market reference only."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderSpreads"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"404":{"description":"NOT_FOUND: the caller is not the owner account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["NOT_FOUND"]},"422":{"description":"VALIDATION_ERROR: gpu is not in the catalog or range is not 1w, 1m, 3m, 1y, or all.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/aggregates/daily/{gpu}":{"get":{"tags":["aggregates"],"summary":"Get Daily Cheapest","description":"Public; signed out you see what any non-owner account sees. Per provider with a stored rate for this GPU, its cheapest offer in force on every day from its first stored price to its last read or successful fetch. Sources whose terms restrict prices, or that are unverified, are included for the owner account only.","operationId":"get_daily_cheapest","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"gpu","in":"path","required":true,"schema":{"$ref":"#/components/schemas/GpuType"}},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/RateTier"},{"type":"null"}],"description":"Only offers of this tier; omit for each provider's cheapest offer of any tier.","title":"Tier"},"description":"Only offers of this tier; omit for each provider's cheapest offer of any tier."},{"name":"range","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HistoryRange","description":"Window ending now, led by the offer in force on its first day; all returns every day.","default":"all"},"description":"Window ending now, led by the offer in force on its first day; all returns every day."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderDaily"},"title":"Response Get Daily Cheapest"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"422":{"description":"VALIDATION_ERROR: gpu is not in the catalog or range is not 1w, 1m, 3m, 1y, or all.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/aggregates/measurements":{"get":{"tags":["aggregates"],"summary":"List Measurement Aggregates","description":"The caller's succeeded runs grouped by matching key, most recently finished first.","operationId":"list_measurement_aggregates","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MeasurementAggregate"},"type":"array","title":"Response List Measurement Aggregates"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/quotes":{"get":{"tags":["quotes"],"summary":"List Quotes","description":"Your private quotes, expired ones included, oldest first. Only the caller's quotes.","operationId":"list_quotes","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Quote"},"type":"array","title":"Response List Quotes"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]},"post":{"tags":["quotes"],"summary":"Create Quote","description":"Add a private quote. Until valid_until it is a candidate in your route prices and your GPU comparisons.","operationId":"create_quote","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"422":{"description":"VALIDATION_ERROR: unknown GPU or tier, a price not above zero, a naive or past valid_until, or a term missing for reserved and committed or given for another tier. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/quotes/{id}":{"delete":{"tags":["quotes"],"summary":"Delete Quote","description":"Delete one of your quotes.","operationId":"delete_quote","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"Successful Response"},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"QUOTE_NOT_FOUND: no quote with this id belongs to the signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["QUOTE_NOT_FOUND"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/auction-prices":{"get":{"tags":["auction"],"summary":"List Auction Prices","description":"Your National Compute auction clearing price with its 30 minute band, read with your own org token. Only the connected caller ever sees it; it is empty without a connection or a cleared tick.","operationId":"list_auction_prices","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AuctionPrice"},"type":"array","title":"Response List Auction Prices"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}},"/v1/jobs":{"post":{"tags":["jobs"],"summary":"Create Job","description":"Run a job in one call: route it, benchmark 2 to 3 GPUs when needed, pick the cheapest verified cost per unit, and run it there, keeping GPU spend under budget_usd. GET /v1/jobs/{id} follows it.","operationId":"create_job","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED","title":"Idempotency-Key"},"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequest"}}}},"responses":{"202":{"description":"The job, already benchmarking or running: routed, then 2 to 3 GPUs benchmarked unless this job's fingerprint has recent verified measurements, then the cheapest verified cost per unit runs. If that launch fails to start, the job falls back to the next cheapest verified GPU that fits the budget left, up to 2 times. A repeated Idempotency-Key returns the first job without launching again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobView"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"400":{"description":"IDEMPOTENCY_KEY_REQUIRED: the header is missing or empty. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["IDEMPOTENCY_KEY_REQUIRED"]},"409":{"description":"JOB_OVER_BUDGET: the benchmark cap is above half of budget_usd, or the full run cannot fit what is left. PROVIDER_CONNECTION_REQUIRED, ROUTE_EXPIRED, or RUN_LIMIT_REACHED (fewer than 2 free run slots to benchmark) as for a run. No job is stored and nothing is launched.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["JOB_OVER_BUDGET","PROVIDER_CONNECTION_REQUIRED","ROUTE_EXPIRED","RUN_LIMIT_REACHED"]},"422":{"description":"VALIDATION_ERROR: malformed body, budget_usd missing or not positive, max_benchmark_gpus outside 2 to 3, or the timeout above the server limit. NO_COMPATIBLE_GPU: no GPU fits. GPU_INCOMPATIBLE: a gpus entry does not fit the job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR","NO_COMPATIBLE_GPU","GPU_INCOMPATIBLE"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL. DEMO_ACCOUNT_LIMITED: a demo account sent a job that is not a gpu-router sample.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH","DEMO_ACCOUNT_LIMITED"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}},"get":{"tags":["jobs"],"summary":"List Jobs","description":"The caller's jobs, newest first.","operationId":"list_jobs","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobPage"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"422":{"description":"VALIDATION_ERROR: limit is 1 to 100, offset is 0 or more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]}}}},"/v1/jobs/{id}":{"get":{"tags":["jobs"],"summary":"Show Job","description":"The job: state, route, probe runs, chosen GPU, and the final run, refreshed from the provider.","operationId":"show_job","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobView"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"JOB_NOT_FOUND: no job with this id belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["JOB_NOT_FOUND"]}}}},"/v1/webhooks":{"post":{"tags":["webhooks"],"summary":"Create Endpoint","description":"Register an endpoint for job, run, benchmark, and budget events, signed with the returned secret.","operationId":"create_endpoint","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED","title":"Idempotency-Key"},"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointRequest"}}}},"responses":{"201":{"description":"The endpoint. secret is shown in this response only (and to a retry with the same Idempotency-Key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedEndpoint"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"400":{"description":"IDEMPOTENCY_KEY_REQUIRED: the Idempotency-Key header is missing or empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["IDEMPOTENCY_KEY_REQUIRED"]},"409":{"description":"WEBHOOK_LIMIT_REACHED: the caller already has 5 endpoints. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_LIMIT_REACHED"]},"422":{"description":"VALIDATION_ERROR: malformed body, url not https to a public host (a hosted server refuses localhost and hosts that are or resolve to private, loopback, or link-local addresses, or do not resolve; plain http only to localhost on a local server), or events empty or naming an unknown event. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}},"get":{"tags":["webhooks"],"summary":"List Endpoints","description":"The caller's endpoints, oldest first, without secrets.","operationId":"list_endpoints","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointList"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}}}},"/v1/webhooks/{id}":{"get":{"tags":["webhooks"],"summary":"Show Endpoint","description":"One of your endpoints, without its secret.","operationId":"show_endpoint","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Endpoint"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"WEBHOOK_NOT_FOUND: no endpoint with this id belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_NOT_FOUND"]}}},"patch":{"tags":["webhooks"],"summary":"Update Endpoint","description":"Change url, format, events, or enabled; enabling again clears the disabled reason.","operationId":"update_endpoint","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Endpoint"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"WEBHOOK_NOT_FOUND: no endpoint with this id belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_NOT_FOUND"]},"409":{"description":"WEBHOOK_LIMIT_REACHED: the caller already has 5 endpoints. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_LIMIT_REACHED"]},"422":{"description":"VALIDATION_ERROR: malformed body, url not https to a public host (a hosted server refuses localhost and hosts that are or resolve to private, loopback, or link-local addresses, or do not resolve; plain http only to localhost on a local server), or events empty or naming an unknown event. Nothing is stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["VALIDATION_ERROR"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}},"delete":{"tags":["webhooks"],"summary":"Delete Endpoint","description":"Delete the endpoint and its delivery log.","operationId":"delete_endpoint","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"The endpoint and its delivery log are deleted; pending deliveries are dropped. Deleting it again is 404."},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"WEBHOOK_NOT_FOUND: no endpoint with this id belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_NOT_FOUND"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/webhooks/{id}/test":{"post":{"tags":["webhooks"],"summary":"Send Test Event","description":"Queue a webhook.test event to the endpoint and return its delivery; needs an Idempotency-Key.","operationId":"send_test_event","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED","title":"Idempotency-Key"},"description":"Required and non-empty; missing or empty answers 400 IDEMPOTENCY_KEY_REQUIRED"}],"responses":{"202":{"description":"The queued webhook.test delivery; it is sent in the background right after this response, so poll GET /v1/webhooks/{id}/deliveries for its status. A failed attempt retries like any event; a repeated Idempotency-Key returns the same delivery without sending again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Delivery"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"400":{"description":"IDEMPOTENCY_KEY_REQUIRED: the Idempotency-Key header is missing or empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["IDEMPOTENCY_KEY_REQUIRED"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"404":{"description":"WEBHOOK_NOT_FOUND: no endpoint with this id belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_NOT_FOUND"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/webhooks/{id}/deliveries":{"get":{"tags":["webhooks"],"summary":"List Deliveries","description":"The endpoint's delivery log, newest first.","operationId":"list_deliveries","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryList"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"WEBHOOK_NOT_FOUND: no endpoint with this id belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_NOT_FOUND"]}}}},"/v1/webhooks/{id}/deliveries/{delivery_id}/retry":{"post":{"tags":["webhooks"],"summary":"Retry Delivery","description":"Queue a failed delivery again and send it in the background.","operationId":"retry_delivery","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"202":{"description":"The delivery, pending again with its attempts so far; it is sent in the background right after this response. A failure then retries as usual while the delivery is inside its 24 h window, counted from when it was first queued; past that window the one retry decides.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Delivery"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"404":{"description":"WEBHOOK_NOT_FOUND or WEBHOOK_DELIVERY_NOT_FOUND: no such endpoint or delivery of the caller's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_NOT_FOUND","WEBHOOK_DELIVERY_NOT_FOUND"]},"409":{"description":"WEBHOOK_DELIVERY_NOT_FAILED: only a failed delivery can be retried; a pending one is already queued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["WEBHOOK_DELIVERY_NOT_FAILED"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"403":{"description":"CSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["CSRF_ORIGIN_MISMATCH"]},"429":{"description":"RATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.","headers":{"Retry-After":{"description":"Whole seconds until the next request is accepted.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["RATE_LIMITED"]}}}},"/v1/jobs/{id}/event":{"get":{"tags":["jobs"],"summary":"Show Job Event","description":"The job.completed or job.failed event of a finished job, the same payload a JSON webhook gets, for agents that poll.","operationId":"show_job_event","security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]},"404":{"description":"JOB_NOT_FOUND: no job with this id belongs to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["JOB_NOT_FOUND"]},"409":{"description":"JOB_NOT_FINISHED: the job is not done or failed yet; poll GET /v1/jobs/{id}.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["JOB_NOT_FINISHED"]}}}},"/v1/evals/report":{"get":{"tags":["evals"],"summary":"Show Report","description":"Owner account only: router evals over every user's stored job runs, simulated sample runs excluded. Regret, estimate error, savings vs always H100 and always the lowest hourly rate, coverage of routes by measurements, benchmark tie calibration, and the latest replay baseline.","operationId":"show_report","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouterReport"}}}},"500":{"description":"Unexpected failure: INTERNAL_ERROR.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["INTERNAL_ERROR"]},"401":{"description":"UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["UNAUTHENTICATED"]},"404":{"description":"NOT_FOUND: the caller is not the owner account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["NOT_FOUND"]},"502":{"description":"AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_PROVIDER_REJECTED"]},"503":{"description":"AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}},"x-error-codes":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE"]}},"security":[{"APIKeyCookie":[]},{"HTTPBearer":[]}]}}},"components":{"schemas":{"AboveMarketEvidence":{"properties":{"kind":{"type":"string","const":"above_market","title":"Kind","default":"above_market"},"gpu":{"$ref":"#/components/schemas/GpuType","description":"Selected catalog GPU."},"above_market":{"type":"boolean","title":"Above Market","description":"True when the rate is more than 15 percent above the latest market index for the same GPU model."}},"type":"object","required":["gpu","above_market"],"title":"AboveMarketEvidence"},"ApiKey":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix","description":"First characters of the key, enough to tell keys apart."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","name","prefix","created_at","last_used_at","revoked_at"],"title":"ApiKey"},"AuctionPrice":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType","description":"Catalog GPU the auction market sells."},"gpus_per_node":{"type":"integer","title":"Gpus Per Node","description":"GPUs in one node, the auction's unit of supply."},"usd_per_node_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Node Hour","description":"Latest volume-weighted clearing price in USD per node-hour."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"usd_per_node_hour divided by gpus_per_node."},"band_min_usd_per_gpu_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Band Min Usd Per Gpu Hour","description":"Lowest assessed price per GPU-hour over the last 30 minutes of ticks."},"band_max_usd_per_gpu_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Band Max Usd Per Gpu Hour","description":"Highest assessed price per GPU-hour over the last 30 minutes of ticks."},"cleared_at":{"type":"string","format":"date-time","title":"Cleared At","description":"When the latest clearing price was assessed."},"band_since":{"type":"string","format":"date-time","title":"Band Since","description":"Start of the 30 minute band window, ending at the newest tick."},"stale":{"type":"boolean","title":"Stale","description":"True when the latest clearing price is more than 30 minutes old."},"label":{"type":"string","title":"Label","description":"What this price is, in words."}},"type":"object","required":["gpu","gpus_per_node","usd_per_node_hour","usd_per_gpu_hour","band_min_usd_per_gpu_hour","band_max_usd_per_gpu_hour","cleared_at","band_since","stale","label"],"title":"AuctionPrice"},"Baseline":{"properties":{"decisions":{"type":"integer","title":"Decisions"},"regret_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Regret Pct"},"estimate_error_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimate Error Pct","description":"Median absolute cost estimate error of the replayed selections."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"policy_version":{"type":"integer","title":"Policy Version"}},"type":"object","required":["decisions","regret_pct","estimate_error_pct","created_at","policy_version"],"title":"Baseline"},"Benchmark":{"properties":{"route_id":{"type":"string","title":"Route Id"},"probes":{"items":{"$ref":"#/components/schemas/Run"},"type":"array","title":"Probes","description":"The runs of the latest benchmark, in launch order."},"ranking":{"items":{"$ref":"#/components/schemas/RankedCandidate"},"type":"array","title":"Ranking","description":"Every candidate: qualified GPUs first by median cost per unit, then running and failed ones, then the rest by the route's estimate or rate."},"fingerprint":{"type":"string","title":"Fingerprint","description":"sha256 of the job; only runs with the same fingerprint are compared."},"plan":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkPlan"},{"type":"null"}],"description":"Settings of the latest benchmark; null without one."},"results":{"items":{"$ref":"#/components/schemas/GpuResult"},"type":"array","title":"Results","description":"Qualified GPUs by median cost per unit.","default":[]},"excluded":{"items":{"$ref":"#/components/schemas/ExcludedRun"},"type":"array","title":"Excluded","description":"Runs that failed, were not verified, or failed the loss check.","default":[]},"summary":{"type":"string","title":"Summary","description":"Why this GPU, in one sentence."}},"type":"object","required":["route_id","probes","ranking","fingerprint","summary"],"title":"Benchmark"},"BenchmarkCoverage":{"properties":{"kind":{"type":"string","title":"Kind","description":"Public benchmark kind, such as inferencex or mlperf."},"records":{"type":"integer","title":"Records","description":"Stored benchmark records for this GPU and GPU count."},"models":{"type":"integer","title":"Models","description":"Distinct models among those records."}},"type":"object","required":["kind","records","models"],"title":"BenchmarkCoverage"},"BenchmarkEvidence":{"properties":{"kind":{"type":"string","const":"benchmark","title":"Kind","default":"benchmark"},"source":{"type":"string","title":"Source","description":"Public benchmark source behind the runtime estimate."},"revision":{"type":"string","title":"Revision","description":"Dataset revision or content hash of the imported row."},"source_url":{"type":"string","title":"Source Url","description":"Where the benchmark result is published."},"assumptions":{"items":{"type":"string"},"type":"array","title":"Assumptions","description":"Matching assumptions that make the result comparable to this job."}},"type":"object","required":["source","revision","source_url","assumptions"],"title":"BenchmarkEvidence"},"BenchmarkPlan":{"properties":{"benchmark_id":{"type":"string","title":"Benchmark Id","description":"Groups the runs of one Benchmark my job request."},"repeat":{"type":"integer","title":"Repeat","description":"1-based repeat of this run on its GPU."},"runs_per_gpu":{"type":"integer","title":"Runs Per Gpu"},"work_steps":{"type":"integer","title":"Work Steps","description":"Steps (training) or requests (inference) every run performs, sent as GPU_ROUTER_MAX_STEPS or GPU_ROUTER_MAX_REQUESTS."},"seed":{"type":"integer","title":"Seed","description":"Sent to every run as GPU_ROUTER_SEED."},"max_seconds":{"type":"integer","title":"Max Seconds","description":"Sandbox timeout of every run."},"loss_tolerance_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Loss Tolerance Pct","description":"Allowed final-loss distance from the median across GPUs, in percent; null disables the check."},"cap_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Cap Usd","description":"Hard cap of the whole benchmark: rate x GPUs x max_seconds x runs_per_gpu, summed over GPUs."}},"type":"object","required":["benchmark_id","repeat","runs_per_gpu","work_steps","seed","max_seconds","loss_tolerance_pct","cap_usd"],"title":"BenchmarkPlan"},"BenchmarkQuote":{"properties":{"max_seconds":{"type":"integer","title":"Max Seconds"},"runs_per_gpu":{"type":"integer","title":"Runs Per Gpu"},"probes":{"items":{"$ref":"#/components/schemas/ProbeCap"},"type":"array","title":"Probes"},"cap_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Cap Usd","description":"Hard cap: the most the whole benchmark can bill for GPU time, the sum of each GPU's total_cap_usd."},"simulated":{"type":"boolean","title":"Simulated","description":"True for a simulated sample or demo route: the benchmark is simulated and nothing is launched or billed."}},"type":"object","required":["max_seconds","runs_per_gpu","probes","cap_usd","simulated"],"title":"BenchmarkQuote"},"BenchmarkRequest":{"properties":{"gpus":{"items":{"$ref":"#/components/schemas/GpuType"},"type":"array","maxItems":3,"minItems":2,"title":"Gpus","description":"2 or 3 candidate GPUs of the route."},"max_seconds":{"type":"integer","maximum":3600.0,"minimum":30.0,"title":"Max Seconds","description":"Each run's sandbox timeout: it is stopped after this many seconds."},"max_steps":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Steps","description":"Work every run performs: steps for training, sent as GPU_ROUTER_MAX_STEPS, or requests for inference, sent as GPU_ROUTER_MAX_REQUESTS. Defaults to 50."},"runs_per_gpu":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Runs Per Gpu","description":"Repeats on each GPU, 1 to 5.","default":3},"seed":{"type":"integer","maximum":4294967295.0,"minimum":0.0,"title":"Seed","description":"Sent to every run as GPU_ROUTER_SEED.","default":0},"loss_tolerance_pct":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Loss Tolerance Pct","description":"Exclude runs whose final loss is further than this from the median across GPUs."},"max_cost_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Max Cost Usd","description":"The hard cap the user saw; the computed cap must not exceed it."},"confirm":{"type":"boolean","title":"Confirm","description":"Must be true: the user accepts that Modal bills up to the cap.","default":false}},"additionalProperties":false,"type":"object","required":["gpus","max_seconds","max_cost_usd"],"title":"BenchmarkRequest"},"Body_check_code":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"Body_check_code"},"Body_send_code":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_send_code"},"Calibration":{"properties":{"ties":{"type":"integer","title":"Ties","description":"GPU pairs whose benchmark cost per unit ranges overlapped."},"tested":{"type":"integer","title":"Tested","description":"Ties with later verified runs on both GPUs."},"held":{"type":"integer","title":"Held","description":"Tested ties whose later medians both stayed inside the pair's benchmark range."},"held_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Held Pct"}},"type":"object","required":["ties","tested","held","held_pct"],"title":"Calibration"},"Candidate":{"properties":{"provider":{"type":"string","title":"Provider","description":"modal for a catalog GPU the route can launch; quote or nationalcompute for one of your private quotes or your auction market, compared but never selected or launched."},"gpu":{"$ref":"#/components/schemas/GpuType","description":"Catalog GPU type."},"vram_gb":{"type":"integer","title":"Vram Gb","description":"VRAM of one GPU, compared against the spec's min_vram_gb."},"variant":{"type":"string","title":"Variant","description":"Exact hardware variant the provider runs for this GPU type."},"rate":{"anyOf":[{"$ref":"#/components/schemas/RateRecord"},{"type":"null"}],"description":"Current listed provider rate record, or null when none is recorded."},"market_benchmark":{"anyOf":[{"$ref":"#/components/schemas/MarketIndexObservation"},{"type":"null"}],"description":"Latest market index observation for this GPU: a transaction-derived index, not a provider price. Null unless the caller is the owner account."},"ceiling_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Ceiling Cost Usd","description":"Ceiling GPU cost: rate times the spec timeout, the most one run can bill for GPU time. Null without a rate."},"estimated_runtime_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimated Runtime Seconds","description":"Median duration of the user's own comparable runs on this provider and GPU: succeeded, verifier passed, the same workload_class, task_type, model_id, precision, gpu_count and framework_version, and the same input size bucket (isl/osl 1k/1k, 8k/1k or 1k/8k for inference, the exact seq_len for training). Zero-duration runs are excluded. Without such runs, an inference job's work_units x (isl + osl) / (tput_per_gpu x gpu_count) from the public benchmark named by benchmark_key. Null without either."},"estimated_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimated Cost Usd","description":"Estimated GPU cost: rate times estimated_runtime_seconds, which comes from the user's comparable runs or, without them, the matched public benchmark; CPU, memory and startup charges are not included. Null without a rate or without a runtime estimate."},"measurement_count":{"type":"integer","title":"Measurement Count","description":"Number of comparable verified runs behind the estimate."},"measurement_run_ids":{"items":{"type":"string"},"type":"array","title":"Measurement Run Ids","description":"Run ids of the measured runs behind the estimate."},"benchmark_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benchmark Key","description":"Natural key of the public benchmark row behind the estimate when no comparable run of the user's matched: the same GPU, GPU count, task type, model, precision, framework image and input size bucket, single turn, at a concurrency at or below the job's. Null otherwise."},"above_market":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Above Market","description":"True when the rate is more than 15 percent above the latest market index for the same GPU model, false otherwise; null without a rate or an index for that model."},"over_budget":{"type":"boolean","title":"Over Budget","description":"True when the route has a budget and the estimated cost, or the ceiling cost without an estimate, exceeds it.","default":false},"offer":{"anyOf":[{"$ref":"#/components/schemas/ComparedRate"},{"type":"null"}],"description":"Your quote or auction price behind a candidate that cannot launch yet; null for a Modal candidate."},"reference_run":{"type":"boolean","title":"Reference Run","description":"True when the runtime is the median of gpu-router's own verified runs of this sample, named by measurement_run_ids.","default":false},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"Where the rate was read; null without a rate.","readOnly":true},"checked_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Checked On","description":"When the rate was read; null without a rate.","readOnly":true},"evidence_source":{"$ref":"#/components/schemas/EvidenceSource","description":"Where the runtime estimate comes from: user_runs for the user's comparable runs, public_benchmark for the row named by benchmark_key, reference_run for gpu-router's verified runs of the sample, none without evidence.","readOnly":true},"evidence_label":{"type":"string","title":"Evidence Label","description":"Display label of evidence_source.","readOnly":true},"initial_observation":{"type":"boolean","title":"Initial Observation","description":"True when exactly one run backs the estimate: an initial observation, not a settled runtime.","readOnly":true}},"type":"object","required":["provider","gpu","vram_gb","variant","rate","market_benchmark","ceiling_cost_usd","estimated_runtime_seconds","estimated_cost_usd","measurement_count","measurement_run_ids","source_url","checked_on","evidence_source","evidence_label","initial_observation"],"title":"Candidate"},"Choice":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType"},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour"},"usd_per_unit":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd Per Unit","description":"Median verified USD per unit of work; null when the only fitting GPU was not measured."},"reason":{"type":"string","title":"Reason","description":"Why this GPU, in one sentence."}},"type":"object","required":["gpu","usd_per_gpu_hour","usd_per_unit","reason"],"title":"Choice"},"Compared":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType"},"machine":{"type":"string","title":"Machine"},"usd_per_unit":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Unit"},"unit":{"type":"string","title":"Unit"}},"type":"object","required":["gpu","machine","usd_per_unit","unit"],"title":"Compared"},"ComparedRate":{"properties":{"origin":{"$ref":"#/components/schemas/RateOrigin","description":"stored: read from rate_records with its source revision. live: fetched without a key from the provider's public price endpoint, at most five minutes old, and never saved. quote: one of your own unexpired private quotes. auction: the latest clearing price of your own National Compute market, read with your org token and shown only to you."},"provider":{"type":"string","title":"Provider","description":"Provider key listing the price: modal, lambda, runpod, vast, a sweep provider slug, or quote."},"provider_name":{"type":"string","title":"Provider Name","description":"Display name of the provider."},"sku":{"type":"string","title":"Sku","description":"Provider SKU or instance type."},"gpu_model":{"$ref":"#/components/schemas/GpuModel","description":"GPU model of the SKU."},"form_factor":{"anyOf":[{"$ref":"#/components/schemas/FormFactor"},{"type":"null"}],"description":"GPU form factor; null when the provider does not establish it."},"memory_gb":{"type":"integer","title":"Memory Gb","description":"Memory per GPU in GB, at least the spec's min_vram_gb."},"gpu_count":{"type":"integer","title":"Gpu Count","description":"GPUs in one instance, equal to the spec's gpu_count."},"tier":{"$ref":"#/components/schemas/RateTier","description":"Capacity tier."},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Region a stored price applies to; null when the source does not say and for a live price."},"commitment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commitment","description":"Commitment a stored price requires, as the provider states it; null when the source does not say."},"usd_per_instance_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Instance Hour","description":"Listed USD per instance-hour."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"usd_per_instance_hour divided by gpu_count."},"estimated_runtime_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimated Runtime Seconds","description":"Runtime estimate for this GPU identity: the median of your comparable verified runs for a Modal price, otherwise the matched public benchmark. Null without either."},"estimated_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimated Cost Usd","description":"usd_per_instance_hour times estimated_runtime_seconds; null without a runtime."},"ceiling_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Ceiling Cost Usd","description":"usd_per_instance_hour times the spec's timeout, the most one run can bill; null when no job spec is compared."},"launched_runs":{"type":"integer","title":"Launched Runs","description":"Your stored runs launched on this provider and catalog GPU."},"succeeded_runs":{"type":"integer","title":"Succeeded Runs","description":"Of launched_runs, those that succeeded."},"tier_rank":{"type":"integer","title":"Tier Rank","description":"1 plus the number of rates of the same tier in this list ahead of this one: rates with an estimated_cost_usd come first by that cost, the rest by usd_per_gpu_hour. Rates of different tiers are never ranked against each other."},"billing_increment_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billing Increment Seconds","description":"Billing granularity; null when unverified."},"available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available","description":"Whether the provider reports capacity now; null for stored rates, which carry none."},"source":{"type":"string","title":"Source","description":"Source id of a stored rate, or live."},"source_revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Revision","description":"Source revision of a stored rate; null for a live price."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"Where a stored rate was read; null for a live price."},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At","description":"When the revision was read for a stored rate, or when the live price was fetched."},"stale":{"type":"boolean","title":"Stale","description":"True when a stored rate is past its shelf life; always false for a live price or a quote."},"quote_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Id","description":"Id of your quote behind a quote rate; null otherwise."},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until","description":"When your quote expires for a quote rate; null otherwise."},"band_min_usd_per_gpu_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Band Min Usd Per Gpu Hour","description":"Lowest assessed auction price per GPU-hour over the last 30 minutes; null otherwise."},"band_max_usd_per_gpu_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Band Max Usd Per Gpu Hour","description":"Highest assessed auction price per GPU-hour over the last 30 minutes; null otherwise."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"What an auction rate is, in words; null otherwise."},"pricing_url":{"type":"string","title":"Pricing Url","description":"Human pricing page of the provider, for click-through, or the Connections page for a quote.","readOnly":true},"launch_supported":{"type":"boolean","title":"Launch Supported","description":"True when this candidate can be launched from the route; only Modal launches are supported.","readOnly":true},"launch_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch Note","description":"launch not supported yet for a provider that cannot be launched yet; null otherwise.","readOnly":true}},"type":"object","required":["origin","provider","provider_name","sku","gpu_model","form_factor","memory_gb","gpu_count","tier","region","commitment","usd_per_instance_hour","usd_per_gpu_hour","estimated_runtime_seconds","estimated_cost_usd","ceiling_cost_usd","launched_runs","succeeded_runs","tier_rank","billing_increment_seconds","available","source","source_revision","source_url","fetched_at","stale","pricing_url","launch_supported","launch_note"],"title":"ComparedRate"},"Comparison":{"properties":{"usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd","description":"Total dollars; null without evidence."},"pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Pct","description":"Dollars as a percent of the reference total; null without evidence."},"runs":{"type":"integer","title":"Runs","description":"Job runs with evidence for both sides."}},"type":"object","required":["usd","pct","runs"],"title":"Comparison"},"ConnectRequest":{"properties":{"provider":{"$ref":"#/components/schemas/ProviderId"},"credentials":{"additionalProperties":{"type":"string","format":"password","writeOnly":true},"type":"object","title":"Credentials"}},"type":"object","required":["provider","credentials"],"title":"ConnectRequest"},"Connection":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"provider":{"$ref":"#/components/schemas/ProviderId"},"status":{"type":"string","enum":["connected","invalid","unavailable","demo"],"title":"Status"},"last_checked_at":{"type":"string","format":"date-time","title":"Last Checked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","provider","status","last_checked_at","created_at"],"title":"Connection"},"Coverage":{"properties":{"routes":{"type":"integer","title":"Routes","description":"Stored routes, simulated sample routes excluded."},"measured":{"type":"integer","title":"Measured","description":"Selections backed by the user's measured runs."},"benchmark":{"type":"integer","title":"Benchmark","description":"Selections backed by a public benchmark."},"rate_only":{"type":"integer","title":"Rate Only","description":"Selections made on the hourly rate alone."},"unrouted":{"type":"integer","title":"Unrouted","description":"Routes with no selection."},"measured_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Measured Pct"},"rate_only_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Rate Only Pct"}},"type":"object","required":["routes","measured","benchmark","rate_only","unrouted","measured_pct","rate_only_pct"],"title":"Coverage"},"CreatedEndpoint":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"events":{"items":{"$ref":"#/components/schemas/EventType"},"type":"array","title":"Events"},"format":{"$ref":"#/components/schemas/EndpointFormat"},"enabled":{"type":"boolean","title":"Enabled"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason","description":"Why sending stopped on its own (a 410 Gone answer); cleared when enabled again."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"secret":{"type":"string","title":"Secret","description":"HMAC-SHA256 signing secret, shown once. See README Webhooks for verification."}},"type":"object","required":["id","url","events","format","enabled","created_at","secret"],"title":"CreatedEndpoint"},"CreatedKey":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"key":{"type":"string","title":"Key","description":"The full key, returned once. Send it as Authorization: Bearer <key>."},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","prefix","key","created_at"],"title":"CreatedKey"},"CredentialField":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"secret":{"type":"boolean","title":"Secret"}},"type":"object","required":["name","label","secret"],"title":"CredentialField"},"Decision":{"properties":{"run_id":{"type":"string","title":"Run Id"},"fingerprint":{"type":"string","title":"Fingerprint"},"gpu":{"$ref":"#/components/schemas/GpuType","description":"GPU the job run used."},"cost_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Cost Usd","description":"Measured GPU cost of the run."},"cheapest_verified_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cheapest Verified Usd","description":"The run's cost scaled to the cheapest verified GPU for the fingerprint; null without medians."},"always_h100_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Always H100 Usd","description":"The run's cost scaled to H100; null without medians."},"always_cheapest_hourly_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Always Cheapest Hourly Usd","description":"The run's cost scaled to the route's lowest hourly rate GPU; null without medians."},"cost_error_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Error Pct","description":"(actual - predicted) / predicted cost of the GPU run, in percent."},"runtime_error_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runtime Error Pct","description":"(actual - predicted) / predicted runtime of the GPU run, in percent."}},"type":"object","required":["run_id","fingerprint","gpu","cost_usd","cheapest_verified_usd","always_h100_usd","always_cheapest_hourly_usd","cost_error_pct","runtime_error_pct"],"title":"Decision"},"Delivery":{"properties":{"id":{"type":"string","title":"Id"},"event_id":{"type":"string","title":"Event Id"},"event_type":{"$ref":"#/components/schemas/EventType"},"status":{"$ref":"#/components/schemas/DeliveryStatus"},"attempts":{"type":"integer","title":"Attempts"},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Status Code"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"next_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Attempt At","description":"When the next attempt is due; null once delivered or given up."},"created_at":{"type":"string","format":"date-time","title":"Created At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Set for a demo account: its deliveries are simulated and never sent."}},"type":"object","required":["id","event_id","event_type","status","attempts","last_status_code","last_error","next_attempt_at","created_at","delivered_at"],"title":"Delivery"},"DeliveryList":{"properties":{"deliveries":{"items":{"$ref":"#/components/schemas/Delivery"},"type":"array","title":"Deliveries"}},"type":"object","required":["deliveries"],"title":"DeliveryList"},"DeliveryStatus":{"type":"string","enum":["pending","delivered","failed"],"title":"DeliveryStatus"},"DescribeRequest":{"properties":{"text":{"type":"string","maxLength":4000,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["text"],"title":"DescribeRequest"},"Endpoint":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"events":{"items":{"$ref":"#/components/schemas/EventType"},"type":"array","title":"Events"},"format":{"$ref":"#/components/schemas/EndpointFormat"},"enabled":{"type":"boolean","title":"Enabled"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason","description":"Why sending stopped on its own (a 410 Gone answer); cleared when enabled again."},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","url","events","format","enabled","created_at"],"title":"Endpoint"},"EndpointFormat":{"type":"string","enum":["json","slack","discord"],"title":"EndpointFormat"},"EndpointList":{"properties":{"endpoints":{"items":{"$ref":"#/components/schemas/Endpoint"},"type":"array","title":"Endpoints"}},"type":"object","required":["endpoints"],"title":"EndpointList"},"EndpointRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"Where events are POSTed: https, or http to localhost on a local server."},"events":{"items":{"$ref":"#/components/schemas/EventType"},"type":"array","minItems":1,"title":"Events","description":"Event types to send; all by default.","default":["job.completed","job.failed","run.completed","run.failed","benchmark.completed","budget.reached"]},"format":{"$ref":"#/components/schemas/EndpointFormat","description":"json: the signed event; slack or discord: a chat message.","default":"json"}},"additionalProperties":false,"type":"object","required":["url"],"title":"EndpointRequest"},"EndpointUpdate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"events":{"anyOf":[{"items":{"$ref":"#/components/schemas/EventType"},"type":"array","minItems":1},{"type":"null"}],"title":"Events"},"format":{"anyOf":[{"$ref":"#/components/schemas/EndpointFormat"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"additionalProperties":false,"type":"object","title":"EndpointUpdate"},"ErrorBody":{"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","title":"Request Id"},"retryable":{"type":"boolean","title":"Retryable"},"details":{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array","title":"Details","default":[]}},"type":"object","required":["code","message","request_id","retryable"],"title":"ErrorBody"},"ErrorCode":{"type":"string","enum":["AUTH_NOT_CONFIGURED","AUTH_PROVIDER_UNAVAILABLE","AUTH_PROVIDER_REJECTED","UNAUTHENTICATED","CSRF_ORIGIN_MISMATCH","PROVIDER_CREDENTIALS_INVALID","PROVIDER_UNAVAILABLE","PROVIDER_CONNECTION_EXISTS","PROVIDER_CONNECTION_NOT_FOUND","ROUTE_NOT_FOUND","SAMPLE_NOT_FOUND","GPU_NOT_FOUND","NO_COMPATIBLE_GPU","GPU_INCOMPATIBLE","ROUTE_NOT_SELECTED","ROUTE_EXPIRED","PROVIDER_CONNECTION_REQUIRED","LAUNCH_NOT_SUPPORTED","IDEMPOTENCY_KEY_REQUIRED","CONFIRMATION_REQUIRED","BENCHMARK_OVER_CAP","RUN_NOT_FOUND","RUN_NOT_CANCELLABLE","RUN_LIMIT_REACHED","PLATFORM_RUN_LIMIT_REACHED","RATE_LIMITED","RUN_OUTPUTS_UNAVAILABLE","OUTPUT_NOT_FOUND","VERIFICATION_NOT_FOUND","PROVIDER_CONNECTION_IN_USE","API_KEY_NOT_FOUND","QUOTE_NOT_FOUND","JOB_NOT_FOUND","JOB_NOT_FINISHED","JOB_OVER_BUDGET","DEMO_ACCOUNT_LIMITED","WEBHOOK_NOT_FOUND","WEBHOOK_LIMIT_REACHED","WEBHOOK_DELIVERY_NOT_FOUND","WEBHOOK_DELIVERY_NOT_FAILED","ASSIST_NOT_CONFIGURED","ASSIST_FAILED","NOT_READY","VALIDATION_ERROR","NOT_FOUND","METHOD_NOT_ALLOWED","HTTP_ERROR","INTERNAL_ERROR"],"title":"ErrorCode"},"ErrorDetail":{"properties":{"field":{"type":"string","title":"Field"},"message":{"type":"string","title":"Message"}},"type":"object","required":["field","message"],"title":"ErrorDetail"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"ErrorStats":{"properties":{"median_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Median Pct"},"p90_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"P90 Pct","description":"Nearest-rank 90th percentile of the absolute errors."},"runs":{"type":"integer","title":"Runs"}},"type":"object","required":["median_pct","p90_pct","runs"],"title":"ErrorStats"},"Estimate":{"properties":{"cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Usd","description":"Estimated GPU cost of the selected candidate: its rate times runtime_seconds. Distinct from the provider rate, the ceiling cost and the market benchmark. None means unknown."},"runtime_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runtime Seconds","description":"Median duration of the measured runs behind the estimate, or the public benchmark estimate when no comparable run matched. None means no supported prediction."}},"type":"object","title":"Estimate"},"Event":{"properties":{"id":{"type":"string","title":"Id","description":"Stable per event: a retry or a second endpoint gets the same id."},"type":{"$ref":"#/components/schemas/EventType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"route_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route Id"},"benchmark_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benchmark Id"},"stats":{"anyOf":[{"$ref":"#/components/schemas/Stats"},{"type":"null"}]},"agent_prompt":{"type":"string","title":"Agent Prompt","description":"What happened and what to do next, written for an AI agent."}},"type":"object","required":["id","type","created_at","stats","agent_prompt"],"title":"Event"},"EventType":{"type":"string","enum":["job.completed","job.failed","run.completed","run.failed","benchmark.completed","budget.reached","webhook.test"],"title":"EventType"},"EvidenceSource":{"type":"string","enum":["user_runs","reference_run","public_benchmark","none"],"title":"EvidenceSource"},"ExcludedRun":{"properties":{"run_id":{"type":"string","title":"Run Id"},"gpu":{"$ref":"#/components/schemas/GpuType"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["run_id","gpu","reason"],"title":"ExcludedRun"},"ExecutionMode":{"type":"string","enum":["sandbox"],"title":"ExecutionMode"},"FailureReason":{"type":"string","enum":["unavailable","malformed_response"],"title":"FailureReason"},"Fallback":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType"},"run_id":{"type":"string","title":"Run Id"},"reason":{"type":"string","title":"Reason","description":"Why the launch on this GPU failed to start."}},"type":"object","required":["gpu","run_id","reason"],"title":"Fallback"},"FormFactor":{"type":"string","enum":["SXM","PCIe","OAM"],"title":"FormFactor"},"GpuAggregate":{"properties":{"gpu":{"anyOf":[{"$ref":"#/components/schemas/GpuType"},{"type":"null"}],"description":"Catalog GPU with the same model, form factor, and memory; null if none."},"gpu_model":{"type":"string","title":"Gpu Model","description":"GPU model of the identity."},"form_factor":{"anyOf":[{"$ref":"#/components/schemas/FormFactor"},{"type":"null"}],"description":"Form factor of the identity; null when the provider does not say."},"memory_gb":{"type":"integer","title":"Memory Gb","description":"Memory per GPU in GB."},"gpu_count":{"type":"integer","title":"Gpu Count","description":"GPUs per instance; identities with different counts are never merged."},"rates":{"items":{"$ref":"#/components/schemas/ProviderRate"},"type":"array","title":"Rates","description":"Current rate per provider SKU, region, and tier, by tier then per-GPU rate."},"cheapest_on_demand":{"anyOf":[{"$ref":"#/components/schemas/ProviderRate"},{"type":"null"}],"description":"Lowest per-GPU on-demand rate. Null without one."},"cheapest_preemptible":{"anyOf":[{"$ref":"#/components/schemas/ProviderRate"},{"type":"null"}],"description":"Lowest per-GPU preemptible rate. Null without one."},"index":{"anyOf":[{"$ref":"#/components/schemas/IndexStats"},{"type":"null"}],"description":"Market index statistics; null unless the caller is the owner account."},"benchmarks":{"items":{"$ref":"#/components/schemas/BenchmarkCoverage"},"type":"array","title":"Benchmarks","description":"Stored public benchmark coverage for this GPU and GPU count."}},"type":"object","required":["gpu","gpu_model","form_factor","memory_gb","gpu_count","rates","cheapest_on_demand","cheapest_preemptible","index","benchmarks"],"title":"GpuAggregate"},"GpuHistory":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType"},"index":{"anyOf":[{"items":{"$ref":"#/components/schemas/SeriesPoint"},"type":"array"},{"type":"null"}],"title":"Index","description":"Market index series; null unless the caller is the owner account."},"rate":{"items":{"$ref":"#/components/schemas/RatePoint"},"type":"array","title":"Rate"},"index_methodology_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Index Methodology Url","description":"Market index methodology page; null unless the caller is the owner account."},"rate_pricing_url":{"type":"string","title":"Rate Pricing Url","description":"Modal pricing page the rate series is listed on, for click-through; each point's source_url keeps its raw source."},"reference":{"anyOf":[{"items":{"$ref":"#/components/schemas/ReferenceSeries"},"type":"array"},{"type":"null"}],"title":"Reference","description":"Silicon Data index series, market reference only and never used for cost or ranking; null unless the caller is the owner account."}},"type":"object","required":["gpu","index","rate","index_methodology_url","rate_pricing_url"],"title":"GpuHistory"},"GpuListing":{"properties":{"gpu":{"anyOf":[{"$ref":"#/components/schemas/GpuType"},{"type":"null"}],"description":"Catalog GPU with this model, form factor, and memory; null when routing does not offer it."},"gpu_model":{"$ref":"#/components/schemas/GpuModel","description":"GPU model."},"form_factor":{"anyOf":[{"$ref":"#/components/schemas/FormFactor"},{"type":"null"}],"description":"GPU form factor; null when the source does not establish it."},"vram_gb":{"type":"integer","title":"Vram Gb","description":"Memory per GPU in GB."},"variant":{"type":"string","title":"Variant","description":"Display name."},"rate":{"anyOf":[{"$ref":"#/components/schemas/RateRecord"},{"type":"null"}],"description":"Modal rate routing uses; null outside the catalog."},"prices":{"items":{"$ref":"#/components/schemas/ListedPrice"},"type":"array","title":"Prices","description":"Current price of every source visible to the caller for this GPU, any GPU count, cheapest per GPU-hour first. Sources whose terms restrict prices, or that are unverified, are listed for the owner account only."},"cheapest_on_demand":{"anyOf":[{"$ref":"#/components/schemas/ListedPrice"},{"type":"null"}],"description":"Lowest visible on-demand price whatever the tier filter; null without one."},"history":{"items":{"$ref":"#/components/schemas/ProviderSeries"},"type":"array","title":"History","description":"Price history per provider and tier with more than one stored revision."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"Modal GPU guide; null outside the catalog."},"checked_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Checked On","description":"When the Modal GPU guide was checked; null outside the catalog."}},"type":"object","required":["gpu","gpu_model","form_factor","vram_gb","variant","rate","prices","cheapest_on_demand","history","source_url","checked_on"],"title":"GpuListing"},"GpuModel":{"type":"string","enum":["T4","L4","A10","L40S","A100","RTX PRO 6000","H100","H200","B200","B300","A10G","A40","L40","P4","P100","V100","GH200","GB200","GB300","MI300X","MI355X","Quadro RTX 6000","RTX 3090","RTX 4090","RTX 5090","RTX A5000","RTX A6000","RTX 6000 Ada","RTX PRO 4500"],"title":"GpuModel"},"GpuResult":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType"},"usd_per_gpu_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd Per Gpu Hour","description":"The current rate the figures are priced at, not the rate when the runs were measured."},"runs":{"type":"integer","title":"Runs","description":"Qualified runs behind the figures."},"unit":{"type":"string","title":"Unit","description":"1k steps for training, 1M tokens for inference."},"usd_per_unit":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Unit","description":"Median cost per unit of work: current hourly rate x GPUs / measured throughput."},"usd_per_unit_min":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Unit Min"},"usd_per_unit_max":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Unit Max"},"throughput":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Throughput","description":"Median steady-state steps/s or tokens/s, or wall-clock work/duration without metric lines."},"startup_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Startup Seconds","description":"Median process start to first metric line; null without metric lines."},"projected_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Projected Cost Usd","description":"Full job at the current rate: usd_per_unit x the work from work_units, plus startup_seconds x the rate; null without work_units."},"wall_clock_only":{"type":"boolean","title":"Wall Clock Only","description":"True when a run printed no usable metric lines: lower confidence."},"tied_with":{"items":{"$ref":"#/components/schemas/GpuType"},"type":"array","title":"Tied With","description":"GPUs whose min to max cost per unit overlaps this one's."}},"type":"object","required":["gpu","usd_per_gpu_hour","runs","unit","usd_per_unit","usd_per_unit_min","usd_per_unit_max","throughput","startup_seconds","projected_cost_usd","wall_clock_only","tied_with"],"title":"GpuResult"},"GpuSpread":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType","description":"Catalog GPU with both a Modal rate and a market index."},"points":{"items":{"$ref":"#/components/schemas/SpreadPoint"},"type":"array","title":"Points","description":"One point per day with a settlement and a Modal rate in force, oldest first."},"mean":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Mean","description":"Mean daily spread, rounded to 4 decimals."},"min":{"$ref":"#/components/schemas/SpreadExtreme","description":"Lowest daily spread."},"max":{"$ref":"#/components/schemas/SpreadExtreme","description":"Highest daily spread."},"latest":{"$ref":"#/components/schemas/SpreadPoint","description":"Most recent point."},"source_url":{"type":"string","title":"Source Url","description":"Ornn's public index page.","readOnly":true},"methodology_url":{"type":"string","title":"Methodology Url","description":"Ornn's index methodology page.","readOnly":true}},"type":"object","required":["gpu","points","mean","min","max","latest","source_url","methodology_url"],"title":"GpuSpread"},"GpuType":{"type":"string","enum":["T4","L4","A10","L40S","A100-40GB","A100-80GB","RTX-PRO-6000","H100","H200","B200","B300"],"title":"GpuType"},"HealthResponse":{"properties":{"status":{"type":"string","const":"ok","title":"Status"},"version":{"type":"string","title":"Version"},"poll_seconds":{"type":"number","title":"Poll Seconds","description":"Interval of the run status poller."},"poll_last_tick":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Poll Last Tick","description":"When the run status poller last completed a pass. Null until the first pass after startup."},"market_index_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Market Index Enabled","description":"Whether the daily Ornn market index refresh is scheduled. Null unless the caller is signed in as the owner account."},"market_index_fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Market Index Fetched At","description":"Fetch time of the newest stored market index observation. Null when nothing has been fetched or the caller is not signed in as the owner account."},"assist":{"type":"boolean","title":"Assist","description":"Whether POST /v1/assist/jobspec is configured: true only when ANTHROPIC_API_KEY is set."},"sources":{"items":{"$ref":"#/components/schemas/SourceHealth"},"type":"array","title":"Sources","description":"Every data source with its last successful fetch time, ordered by source id. No index values. Ornn sources appear only when the caller is signed in as the owner account."}},"type":"object","required":["status","version","poll_seconds","poll_last_tick","market_index_enabled","market_index_fetched_at","assist","sources"],"title":"HealthResponse"},"HistoryRange":{"type":"string","enum":["1w","1m","3m","1y","all"],"title":"HistoryRange"},"IndexDay":{"properties":{"day":{"type":"string","format":"date","title":"Day","description":"UTC day of the settlement."},"value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Value","description":"Last settlement of that day in USD per GPU-hour."}},"type":"object","required":["day","value"],"title":"IndexDay"},"IndexQuote":{"properties":{"source":{"$ref":"#/components/schemas/IndexSeries"},"gpu":{"$ref":"#/components/schemas/GpuType"},"value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Value"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"previous_value":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Previous Value"},"previous_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Observed At"},"checked_on":{"type":"string","format":"date","title":"Checked On"},"source_name":{"type":"string","title":"Source Name","description":"Display name of the index series.","readOnly":true},"source_url":{"type":"string","title":"Source Url","description":"Public page of the index publisher.","readOnly":true},"methodology_url":{"type":"string","title":"Methodology Url","description":"Index methodology or documentation page.","readOnly":true}},"type":"object","required":["source","gpu","value","observed_at","previous_value","previous_observed_at","checked_on","source_name","source_url","methodology_url"],"title":"IndexQuote"},"IndexSeries":{"type":"string","enum":["ornn","silicondata-neo","silicondata-hs"],"title":"IndexSeries"},"IndexStats":{"properties":{"latest":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Latest","description":"Latest daily settlement in USD per GPU-hour."},"latest_at":{"type":"string","format":"date-time","title":"Latest At","description":"When the latest settlement was observed."},"day_change":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Day Change","description":"Latest settlement minus the previous daily settlement. Null with one settlement."},"mean_7d":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Mean 7D","description":"Mean daily settlement over the 7 days ending at the latest settlement."},"mean_30d":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Mean 30D","description":"Mean daily settlement over the 30 days ending at the latest settlement."},"min_30d":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Min 30D","description":"Lowest daily settlement over the same 30 days."},"max_30d":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Max 30D","description":"Highest daily settlement over the same 30 days."},"volatility_30d":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Volatility 30D","description":"Sample standard deviation of the changes between consecutive daily settlements over the same 30 days. Null with fewer than two changes."},"source_url":{"type":"string","title":"Source Url","description":"Ornn's public index page.","readOnly":true},"methodology_url":{"type":"string","title":"Methodology Url","description":"Ornn's index methodology page.","readOnly":true}},"type":"object","required":["latest","latest_at","day_change","mean_7d","mean_30d","min_30d","max_30d","volatility_30d","source_url","methodology_url"],"title":"IndexStats"},"Job":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"idempotency_key":{"type":"string","title":"Idempotency Key"},"state":{"$ref":"#/components/schemas/JobState"},"job_spec":{"$ref":"#/components/schemas/JobSpec","description":"The submitted job; env values are masked."},"budget_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Budget Usd"},"gpus":{"anyOf":[{"items":{"$ref":"#/components/schemas/GpuType"},"type":"array"},{"type":"null"}],"title":"Gpus"},"max_benchmark_gpus":{"type":"integer","title":"Max Benchmark Gpus"},"route_id":{"type":"string","title":"Route Id"},"benchmarked":{"items":{"$ref":"#/components/schemas/GpuType"},"type":"array","title":"Benchmarked","description":"GPUs this job benchmarked; empty when it reused measurements.","default":[]},"results":{"items":{"$ref":"#/components/schemas/GpuResult"},"type":"array","title":"Results","description":"Verified cost per unit by GPU, cheapest first.","default":[]},"choice":{"anyOf":[{"$ref":"#/components/schemas/Choice"},{"type":"null"}]},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"fallbacks":{"items":{"$ref":"#/components/schemas/Fallback"},"type":"array","title":"Fallbacks","description":"Full-run launches that failed to start (launch error, or lost before it ever ran), in order; after each the job moved to the next cheapest verified GPU that fits the budget left, up to 2 times. run_id is then the GPU that actually ran.","default":[]},"steps":{"items":{"$ref":"#/components/schemas/JobStep"},"type":"array","title":"Steps"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"budget_reached":{"type":"boolean","title":"Budget Reached","description":"True when the job stopped because its budget could not cover the next step.","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","idempotency_key","state","job_spec","budget_usd","gpus","max_benchmark_gpus","route_id","steps","created_at"],"title":"Job"},"JobInput":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"mount_path":{"type":"string","title":"Mount Path"}},"additionalProperties":false,"type":"object","required":["url","mount_path"],"title":"JobInput"},"JobPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Job"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"JobPage"},"JobRequest":{"properties":{"job_spec":{"$ref":"#/components/schemas/JobSpec"},"budget_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Budget Usd","description":"Hard cap on GPU spend for the whole job: benchmark runs plus the full run, in USD."},"gpus":{"anyOf":[{"items":{"$ref":"#/components/schemas/GpuType"},"type":"array","minItems":1},{"type":"null"}],"title":"Gpus","description":"Optional shortlist: only these GPUs are benchmarked or run."},"max_benchmark_gpus":{"type":"integer","maximum":3.0,"minimum":2.0,"title":"Max Benchmark Gpus","default":3}},"additionalProperties":false,"type":"object","required":["job_spec","budget_usd"],"title":"JobRequest"},"JobSpec":{"properties":{"task_type":{"anyOf":[{"$ref":"#/components/schemas/TaskType"},{"type":"null"}],"description":"Needed for runtime matching; unset never matches."},"model_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Model Id","description":"Model the job trains or serves, such as Qwen/Qwen3-0.6B."},"precision":{"anyOf":[{"$ref":"#/components/schemas/Precision"},{"type":"null"}],"description":"Numerical precision of the compute."},"framework_version":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Framework Version","description":"Framework and version string, matched exactly."},"isl":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Isl","description":"Inference input tokens per request."},"osl":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Osl","description":"Inference output tokens per request."},"seq_len":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Seq Len","description":"Training sequence length in tokens."},"concurrency":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Concurrency","description":"Inference requests in flight."},"global_batch":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Global Batch","description":"Training examples per optimizer step across all GPUs."},"lora_rank":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Lora Rank","description":"LoRA rank when the job fine-tunes an adapter."},"work_units":{"anyOf":[{"type":"integer","maximum":1000000000000.0,"minimum":1.0},{"type":"null"}],"title":"Work Units","description":"Units of work the job processes, such as requests or examples."},"image":{"type":"string","minLength":1,"pattern":"^(?:[A-Za-z0-9]+(?:[._-][A-Za-z0-9]+)*(?::[0-9]{1,5})?/)?[a-z0-9]+(?:[._-]+[a-z0-9]+)*(?:/[a-z0-9]+(?:[._-]+[a-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9._-]{0,127})?(?:@sha256:[a-f0-9]{64})?$","title":"Image","description":"Immutable container image reference."},"command":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Command"},"env":{"additionalProperties":{"type":"string","format":"password","writeOnly":true},"type":"object","title":"Env","description":"Keys match ^[A-Za-z_][A-Za-z0-9_]*$; values are masked in every response and never logged.","default":{}},"inputs":{"items":{"$ref":"#/components/schemas/JobInput"},"type":"array","title":"Inputs","default":[]},"output_dir":{"type":"string","title":"Output Dir"},"min_vram_gb":{"type":"integer","minimum":1.0,"title":"Min Vram Gb"},"gpu_count":{"type":"integer","const":1,"title":"Gpu Count","default":1},"cpu_cores":{"type":"number","maximum":32.0,"exclusiveMinimum":0.0,"title":"Cpu Cores"},"memory_gb":{"type":"number","maximum":256.0,"exclusiveMinimum":0.0,"title":"Memory Gb"},"timeout_seconds":{"type":"integer","maximum":21600.0,"minimum":1.0,"title":"Timeout Seconds","description":"At most 21600 (6 hours)."},"workload_class":{"type":"string","minLength":1,"title":"Workload Class"},"verifier":{"anyOf":[{"$ref":"#/components/schemas/VerifierSpec"},{"type":"null"}]},"allow_interruptible":{"type":"boolean","title":"Allow Interruptible","description":"Lets an inference job use spot and preemptible capacity; training jobs always may.","default":false}},"additionalProperties":false,"type":"object","required":["image","command","output_dir","min_vram_gb","cpu_cores","memory_gb","timeout_seconds","workload_class"],"title":"JobSpec"},"JobSpecProposal":{"properties":{"image":{"type":"string","minLength":1,"pattern":"^(?:[A-Za-z0-9]+(?:[._-][A-Za-z0-9]+)*(?::[0-9]{1,5})?/)?[a-z0-9]+(?:[._-]+[a-z0-9]+)*(?:/[a-z0-9]+(?:[._-]+[a-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9._-]{0,127})?(?:@sha256:[a-f0-9]{64})?$","title":"Image"},"command":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Command"},"env":{"items":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"type":"array","title":"Env","description":"Names only; values stay empty."},"min_vram_gb":{"type":"integer","minimum":1.0,"title":"Min Vram Gb"},"timeout_seconds":{"type":"integer","maximum":21600.0,"minimum":1.0,"title":"Timeout Seconds"},"workload_class":{"type":"string","minLength":1,"title":"Workload Class"}},"additionalProperties":false,"type":"object","required":["image","command","env","min_vram_gb","timeout_seconds","workload_class"],"title":"JobSpecProposal"},"JobState":{"type":"string","enum":["routing","benchmarking","choosing","running","done","failed"],"title":"JobState"},"JobStep":{"properties":{"state":{"$ref":"#/components/schemas/JobState"},"at":{"type":"string","format":"date-time","title":"At"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["state","at","detail"],"title":"JobStep"},"JobView":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"idempotency_key":{"type":"string","title":"Idempotency Key"},"state":{"$ref":"#/components/schemas/JobState"},"job_spec":{"$ref":"#/components/schemas/JobSpec","description":"The submitted job; env values are masked."},"budget_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Budget Usd"},"gpus":{"anyOf":[{"items":{"$ref":"#/components/schemas/GpuType"},"type":"array"},{"type":"null"}],"title":"Gpus"},"max_benchmark_gpus":{"type":"integer","title":"Max Benchmark Gpus"},"route_id":{"type":"string","title":"Route Id"},"benchmarked":{"items":{"$ref":"#/components/schemas/GpuType"},"type":"array","title":"Benchmarked","description":"GPUs this job benchmarked; empty when it reused measurements.","default":[]},"results":{"items":{"$ref":"#/components/schemas/GpuResult"},"type":"array","title":"Results","description":"Verified cost per unit by GPU, cheapest first.","default":[]},"choice":{"anyOf":[{"$ref":"#/components/schemas/Choice"},{"type":"null"}]},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"fallbacks":{"items":{"$ref":"#/components/schemas/Fallback"},"type":"array","title":"Fallbacks","description":"Full-run launches that failed to start (launch error, or lost before it ever ran), in order; after each the job moved to the next cheapest verified GPU that fits the budget left, up to 2 times. run_id is then the GPU that actually ran.","default":[]},"steps":{"items":{"$ref":"#/components/schemas/JobStep"},"type":"array","title":"Steps"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"budget_reached":{"type":"boolean","title":"Budget Reached","description":"True when the job stopped because its budget could not cover the next step.","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"probes":{"items":{"$ref":"#/components/schemas/Run"},"type":"array","title":"Probes","description":"The job's benchmark runs, in launch order."},"run":{"anyOf":[{"$ref":"#/components/schemas/Run"},{"type":"null"}],"description":"The full run on the chosen GPU."},"spend_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Spend Usd","description":"GPU cost of the job's finished runs so far."},"savings":{"anyOf":[{"$ref":"#/components/schemas/Savings"},{"type":"null"}],"description":"Full-job cost, benchmarks included, against the cheapest hourly GPU; null until a GPU is chosen."},"outputs_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outputs Url","description":"Lists the run's output files once it succeeded."}},"type":"object","required":["id","user_id","idempotency_key","state","job_spec","budget_usd","gpus","max_benchmark_gpus","route_id","steps","created_at","probes","run","spend_usd","savings","outputs_url"],"title":"JobView"},"KeyList":{"properties":{"keys":{"items":{"$ref":"#/components/schemas/ApiKey"},"type":"array","title":"Keys"}},"type":"object","required":["keys"],"title":"KeyList"},"KeyRequest":{"properties":{"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"KeyRequest"},"ListedPrice":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name."},"source":{"type":"string","title":"Source","description":"Source id from the sources table."},"sku":{"type":"string","title":"Sku","description":"Provider instance type or SKU."},"tier":{"$ref":"#/components/schemas/RateTier","description":"Capacity tier as the provider lists it; prices of different tiers are never comparable."},"commitment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commitment","description":"Commitment the price requires, as the provider states it; null when the source does not say."},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Region the price applies to, as the provider states it; null when the source does not say."},"gpu_count":{"type":"integer","title":"Gpu Count","description":"GPUs in one instance."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"Listed USD per instance-hour divided by gpu_count."},"billing_increment_seconds":{"type":"integer","title":"Billing Increment Seconds","description":"Billing granularity of the provider in seconds."},"source_url":{"type":"string","title":"Source Url","description":"Page or API the price was read from, kept for provenance."},"pricing_url":{"type":"string","title":"Pricing Url","description":"Human pricing page of the provider, for click-through."},"checked_on":{"type":"string","format":"date","title":"Checked On","description":"UTC day the price was read, or of the last successful fetch of a fetched source."},"stale":{"type":"boolean","title":"Stale","description":"True more than 30 days after a manual or sweep price was read, or more than 24 hours after the last successful fetch of a fetched source."}},"type":"object","required":["provider","source","sku","tier","commitment","region","gpu_count","usd_per_gpu_hour","billing_increment_seconds","source_url","pricing_url","checked_on","stale"],"title":"ListedPrice"},"LiveCandidate":{"properties":{"provider":{"$ref":"#/components/schemas/LiveProvider","description":"Provider whose public price endpoint listed this price."},"sku":{"type":"string","title":"Sku","description":"Provider GPU type, or GPU count, model, form factor, and memory for a marketplace offer."},"gpu_model":{"$ref":"#/components/schemas/GpuModel","description":"GPU model."},"form_factor":{"anyOf":[{"$ref":"#/components/schemas/FormFactor"},{"type":"null"}],"description":"GPU form factor."},"memory_gb":{"type":"integer","title":"Memory Gb","description":"Memory per GPU in GB."},"gpu_count":{"type":"integer","title":"Gpu Count","description":"GPUs in one instance."},"tier":{"$ref":"#/components/schemas/RateTier","description":"on_demand or spot; prices of different tiers are never compared."},"usd_per_instance_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Instance Hour","description":"Lowest listed USD per instance-hour at fetched_at."},"available":{"type":"boolean","title":"Available","description":"Whether the provider reports capacity now."},"stock_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stock Status","description":"RunPod stock level as reported; null for Vast.ai or without stock."},"billing_increment_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billing Increment Seconds","description":"Billing granularity; null when unverified."},"source":{"type":"string","const":"live","title":"Source","description":"Always live: fetched on request, never stored.","default":"live"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At","description":"When the provider returned this price."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"usd_per_instance_hour divided by gpu_count.","readOnly":true},"pricing_url":{"type":"string","title":"Pricing Url","description":"Human pricing page of the provider, for click-through.","readOnly":true}},"type":"object","required":["provider","sku","gpu_model","form_factor","memory_gb","gpu_count","tier","usd_per_instance_hour","available","stock_status","billing_increment_seconds","fetched_at","usd_per_gpu_hour","pricing_url"],"title":"LiveCandidate"},"LiveFailure":{"properties":{"provider":{"$ref":"#/components/schemas/LiveProvider","description":"Provider whose live prices could not be read."},"reason":{"$ref":"#/components/schemas/FailureReason","description":"unavailable after a timeout or error status, or malformed_response."}},"type":"object","required":["provider","reason"],"title":"LiveFailure"},"LivePrices":{"properties":{"candidates":{"items":{"$ref":"#/components/schemas/LiveCandidate"},"type":"array","title":"Candidates","description":"Live prices of every provider that answered."},"failures":{"items":{"$ref":"#/components/schemas/LiveFailure"},"type":"array","title":"Failures","description":"Providers whose live prices could not be read for this request."}},"type":"object","required":["candidates","failures"],"title":"LivePrices"},"LiveProvider":{"type":"string","enum":["runpod","vast"],"title":"LiveProvider"},"MarketIndexEvidence":{"properties":{"kind":{"type":"string","const":"market_index","title":"Kind","default":"market_index"},"gpu":{"$ref":"#/components/schemas/GpuModel","description":"Canonical GPU model the index covers."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"Latest market index per GPU-hour: a transaction-derived benchmark, not a provider price."},"as_of":{"type":"string","format":"date","title":"As Of","description":"Settlement date of the index value."},"source_url":{"type":"string","title":"Source Url","description":"Public page of the market index."}},"type":"object","required":["gpu","usd_per_gpu_hour","as_of","source_url"],"title":"MarketIndexEvidence"},"MarketIndexObservation":{"properties":{"source":{"type":"string","title":"Source"},"gpu":{"type":"string","title":"Gpu"},"modal_gpu":{"anyOf":[{"$ref":"#/components/schemas/GpuType"},{"type":"null"}]},"region":{"type":"string","title":"Region"},"value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Value"},"currency":{"type":"string","title":"Currency"},"unit":{"type":"string","title":"Unit"},"settlement_time":{"type":"string","format":"date-time","title":"Settlement Time"},"fetch_time":{"type":"string","format":"date-time","title":"Fetch Time"},"source_url":{"type":"string","title":"Source Url","description":"Ornn's public index page.","readOnly":true},"methodology_url":{"type":"string","title":"Methodology Url","description":"Ornn's index methodology page.","readOnly":true},"checked_on":{"type":"string","format":"date","title":"Checked On","description":"UTC date this observation was fetched from Ornn.","readOnly":true}},"type":"object","required":["source","gpu","modal_gpu","region","value","currency","unit","settlement_time","fetch_time","source_url","methodology_url","checked_on"],"title":"MarketIndexObservation"},"MarketIndexPoint":{"properties":{"source":{"$ref":"#/components/schemas/IndexSeries"},"gpu":{"$ref":"#/components/schemas/GpuType"},"index_gpu":{"type":"string","title":"Index Gpu"},"price":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Price"},"currency":{"type":"string","title":"Currency"},"unit":{"type":"string","title":"Unit"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"checked_on":{"type":"string","format":"date","title":"Checked On"},"source_name":{"type":"string","title":"Source Name","description":"Display name of the index series.","readOnly":true},"source_url":{"type":"string","title":"Source Url","description":"Public page of the index publisher.","readOnly":true},"methodology_url":{"type":"string","title":"Methodology Url","description":"Index methodology or documentation page.","readOnly":true}},"type":"object","required":["source","gpu","index_gpu","price","currency","unit","observed_at","checked_on","source_name","source_url","methodology_url"],"title":"MarketIndexPoint"},"MeasuredRun":{"properties":{"run_id":{"type":"string","title":"Run Id"},"gpu":{"$ref":"#/components/schemas/GpuType"},"workload_class":{"type":"string","title":"Workload Class"},"execution_status":{"$ref":"#/components/schemas/RunStatus"},"launched_at":{"type":"string","format":"date-time","title":"Launched At"},"duration_seconds":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Duration Seconds"},"source_revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Revision"},"rate_fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rate Fetched At"},"rate_stale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rate Stale"},"cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Usd"},"estimated_runtime_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimated Runtime Seconds"},"estimated_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimated Cost Usd"}},"type":"object","required":["run_id","gpu","workload_class","execution_status","launched_at","duration_seconds","source_revision","rate_fetched_at","rate_stale","cost_usd","estimated_runtime_seconds","estimated_cost_usd"],"title":"MeasuredRun"},"Measurement":{"properties":{"task_type":{"anyOf":[{"$ref":"#/components/schemas/TaskType"},{"type":"null"}],"description":"Needed for runtime matching; unset never matches."},"model_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Model Id","description":"Model the job trains or serves, such as Qwen/Qwen3-0.6B."},"precision":{"anyOf":[{"$ref":"#/components/schemas/Precision"},{"type":"null"}],"description":"Numerical precision of the compute."},"framework_version":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Framework Version","description":"Framework and version string, matched exactly."},"isl":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Isl","description":"Inference input tokens per request."},"osl":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Osl","description":"Inference output tokens per request."},"seq_len":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Seq Len","description":"Training sequence length in tokens."},"concurrency":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Concurrency","description":"Inference requests in flight."},"global_batch":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Global Batch","description":"Training examples per optimizer step across all GPUs."},"lora_rank":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Lora Rank","description":"LoRA rank when the job fine-tunes an adapter."},"work_units":{"anyOf":[{"type":"integer","maximum":1000000000000.0,"minimum":1.0},{"type":"null"}],"title":"Work Units","description":"Units of work the job processes, such as requests or examples."},"run_id":{"type":"string","title":"Run Id"},"user_id":{"type":"string","title":"User Id"},"workload_class":{"type":"string","title":"Workload Class"},"provider":{"$ref":"#/components/schemas/Provider"},"gpu":{"$ref":"#/components/schemas/GpuType"},"image":{"type":"string","title":"Image"},"duration_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Duration Seconds"},"source_revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Revision"},"rate_fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rate Fetched At"},"rate_stale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rate Stale"},"usd_per_gpu_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd Per Gpu Hour"},"cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Usd"},"execution_status":{"$ref":"#/components/schemas/RunStatus"},"verification_status":{"$ref":"#/components/schemas/VerificationStatus"},"gpu_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gpu Count"},"provider_sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Sku"},"kind":{"$ref":"#/components/schemas/RunKind","default":"job"},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint"},"image_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Digest"},"phases":{"anyOf":[{"$ref":"#/components/schemas/Phases"},{"type":"null"}]},"work_unit":{"anyOf":[{"$ref":"#/components/schemas/WorkUnit"},{"type":"null"}]},"throughput":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Throughput"},"throughput_basis":{"anyOf":[{"$ref":"#/components/schemas/ThroughputBasis"},{"type":"null"}]},"usd_per_unit":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd Per Unit","description":"USD per 1k steps or per 1M tokens: hourly rate x GPUs / throughput, leaving out excluded_seconds; null unless the run succeeded."},"excluded_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Excluded Seconds","description":"Billed seconds outside the steady-state span (launch, model load, warmup, teardown); 0 for a wall-clock throughput."}},"type":"object","required":["run_id","user_id","workload_class","provider","gpu","image","duration_seconds","source_revision","rate_fetched_at","rate_stale","usd_per_gpu_hour","cost_usd","execution_status","verification_status"],"title":"Measurement"},"MeasurementAggregate":{"properties":{"workload_class":{"type":"string","title":"Workload Class","description":"Workload class of the runs."},"provider":{"$ref":"#/components/schemas/Provider","description":"Provider the runs ran on."},"gpu":{"$ref":"#/components/schemas/GpuType","description":"GPU the runs ran on."},"gpu_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gpu Count","description":"GPU count of the runs."},"task_type":{"anyOf":[{"$ref":"#/components/schemas/TaskType"},{"type":"null"}],"description":"Task type of the runs."},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id","description":"Model of the runs."},"precision":{"anyOf":[{"$ref":"#/components/schemas/Precision"},{"type":"null"}],"description":"Precision of the runs."},"framework_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Framework Version","description":"Framework version of the runs."},"input_bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Bucket","description":"Input-size bucket of the runs; null when the shape has no bucket."},"runs":{"type":"integer","title":"Runs","description":"Succeeded runs with this matching key."},"verified_runs":{"type":"integer","title":"Verified Runs","description":"Of those, runs whose verification passed."},"median_seconds":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Median Seconds","description":"Median duration in seconds."},"p10_seconds":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"P10 Seconds","description":"10th percentile duration in seconds, linearly interpolated."},"p90_seconds":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"P90 Seconds","description":"90th percentile duration in seconds, linearly interpolated."},"median_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Median Cost Usd","description":"Median cost in USD of the runs that have a cost. Null if none."},"last_run_id":{"type":"string","title":"Last Run Id","description":"Most recently finished run."},"last_run_at":{"type":"string","format":"date-time","title":"Last Run At","description":"When the most recently finished run finished."}},"type":"object","required":["workload_class","provider","gpu","gpu_count","task_type","model_id","precision","framework_version","input_bucket","runs","verified_runs","median_seconds","p10_seconds","p90_seconds","median_cost_usd","last_run_id","last_run_at"],"title":"MeasurementAggregate"},"MeasurementEvidence":{"properties":{"kind":{"type":"string","const":"measurement","title":"Kind","default":"measurement"},"run_id":{"type":"string","title":"Run Id","description":"A comparable verified run of the user's behind the runtime estimate."},"matched_on":{"additionalProperties":{"type":"string"},"type":"object","title":"Matched On","description":"Job fields the run matched exactly, by name."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"initial observation when this is the only comparable run, null otherwise."}},"type":"object","required":["run_id","matched_on","label"],"title":"MeasurementEvidence"},"OutputFile":{"properties":{"path":{"type":"string","title":"Path"},"download_url":{"type":"string","title":"Download Url","description":"GET with the caller's API key as a bearer token."}},"type":"object","required":["path","download_url"],"title":"OutputFile"},"Phases":{"properties":{"startup_seconds":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Startup Seconds","description":"Process start to the first metric line, the t of that line."},"warmup_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Warmup Seconds","description":"First metric line to the end of warmup; excluded from throughput."},"steady_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Steady Seconds","description":"Span of the steady-state metric lines behind throughput."},"steady_units":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Steady Units","description":"Steps or tokens done in that span."},"throughput":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Throughput","description":"steady_units / steady_seconds: steps/s for training, tokens/s for inference."},"final_loss":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Final Loss","description":"loss of the last metric line that has one."}},"type":"object","required":["startup_seconds","warmup_seconds","steady_seconds","steady_units","throughput","final_loss"],"title":"Phases"},"PolicyEvidence":{"properties":{"kind":{"type":"string","const":"policy","title":"Kind","default":"policy"},"name":{"$ref":"#/components/schemas/RoutingPolicy","description":"Selection policy that made the decision."},"version":{"type":"integer","title":"Version","description":"Version of the policy rules."}},"type":"object","required":["name","version"],"title":"PolicyEvidence"},"Precision":{"type":"string","enum":["fp32","bf16","fp16","fp8","fp4","int8","int4"],"title":"Precision"},"PriceComparison":{"properties":{"rates":{"items":{"$ref":"#/components/schemas/ComparedRate"},"type":"array","title":"Rates","description":"Stored and live rates for SKUs with at least min_vram_gb per GPU and the spec's gpu_count, by tier then tier_rank."},"failures":{"items":{"$ref":"#/components/schemas/LiveFailure"},"type":"array","title":"Failures","description":"Providers whose keyless live prices could not be read for this request."}},"type":"object","required":["rates","failures"],"title":"PriceComparison"},"PricePoint":{"properties":{"time":{"type":"string","format":"date-time","title":"Time","description":"When this price revision was read."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"Lowest per-GPU-hour price of the provider and tier in that revision."}},"type":"object","required":["time","usd_per_gpu_hour"],"title":"PricePoint"},"ProbeCap":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType"},"provider":{"$ref":"#/components/schemas/Provider"},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour"},"gpu_count":{"type":"integer","title":"Gpu Count"},"cap_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Cap Usd","description":"One run: usd_per_gpu_hour x gpu_count x max_seconds / 3600, rounded up to a microdollar."},"runs":{"type":"integer","title":"Runs","description":"Runs on this GPU."},"total_cap_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Total Cap Usd","description":"cap_usd x runs."}},"type":"object","required":["gpu","provider","usd_per_gpu_hour","gpu_count","cap_usd","runs","total_cap_usd"],"title":"ProbeCap"},"Provider":{"type":"string","enum":["modal","lambda"],"title":"Provider"},"ProviderDaily":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name."},"pricing_url":{"type":"string","title":"Pricing Url","description":"Human pricing page of the provider, for click-through."},"points":{"items":{"$ref":"#/components/schemas/ProviderDay"},"type":"array","title":"Points","description":"One point per day a price of this provider was read, oldest first."}},"type":"object","required":["provider","pricing_url","points"],"title":"ProviderDaily"},"ProviderDay":{"properties":{"day":{"type":"string","format":"date","title":"Day","description":"UTC day; every day from the provider's first stored price to its last read or successful fetch."},"rate":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Rate","description":"Cheapest offer in force that day in USD per GPU-hour, exact to 4 decimals."},"tier":{"$ref":"#/components/schemas/RateTier","description":"Tier of that offer."}},"type":"object","required":["day","rate","tier"],"title":"ProviderDay"},"ProviderId":{"type":"string","enum":["modal","runpod","lambda","vast","nebius","nationalcompute","ghcr"],"title":"ProviderId"},"ProviderRate":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider that lists the rate."},"sku":{"type":"string","title":"Sku","description":"Provider SKU, mapped to this GPU identity in gpu_skus."},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","description":"Region of the rate; null when the source does not give capacity by region."},"tier":{"$ref":"#/components/schemas/RateTier","description":"Capacity tier; on-demand and preemptible rates are never ranked together."},"usd_per_instance_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Instance Hour","description":"Stored price in USD per instance-hour."},"gpu_count":{"type":"integer","title":"Gpu Count","description":"GPUs in one instance of this SKU."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"usd_per_instance_hour divided by gpu_count."},"source":{"type":"string","title":"Source","description":"Source id from the sources table."},"source_revision":{"type":"string","title":"Source Revision","description":"Source revision the rate was read from; for a fetched source, its latest successful revision."},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At","description":"When a manual revision was checked, or the start of the last successful fetch of a fetched source."},"stale":{"type":"boolean","title":"Stale","description":"True more than 30 days after a manual rate was checked, or more than 24 hours after the last successful fetch of a fetched source."},"above_market":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Above Market","description":"True when the per-GPU rate is more than 15 percent above the latest market index for the same model, form factor, and memory. Null without an index for that identity."}},"type":"object","required":["provider","sku","region","tier","usd_per_instance_hour","gpu_count","usd_per_gpu_hour","source","source_revision","fetched_at","stale","above_market"],"title":"ProviderRate"},"ProviderReference":{"properties":{"sandbox_id":{"type":"string","title":"Sandbox Id"},"app_name":{"type":"string","title":"App Name"},"dashboard_url":{"type":"string","title":"Dashboard Url"},"volume_name":{"type":"string","title":"Volume Name"},"storage_url":{"type":"string","title":"Storage Url"}},"type":"object","required":["sandbox_id","app_name","dashboard_url","volume_name","storage_url"],"title":"ProviderReference"},"ProviderSeries":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name."},"tier":{"$ref":"#/components/schemas/RateTier","description":"Capacity tier of every point."},"points":{"items":{"$ref":"#/components/schemas/PricePoint"},"type":"array","title":"Points","description":"One point per stored revision, oldest first."},"pricing_url":{"type":"string","title":"Pricing Url","description":"Human pricing page of the provider, for click-through."}},"type":"object","required":["provider","tier","points","pricing_url"],"title":"ProviderSeries"},"ProviderSpread":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider name."},"pricing_url":{"type":"string","title":"Pricing Url","description":"Human pricing page of the provider, for click-through."},"points":{"items":{"$ref":"#/components/schemas/ProviderSpreadPoint"},"type":"array","title":"Points","description":"One point per day with a settlement and a stored rate in force, oldest first."},"mean":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Mean","description":"Mean daily spread, rounded to 4 decimals."},"min":{"$ref":"#/components/schemas/SpreadExtreme","description":"Lowest daily spread."},"max":{"$ref":"#/components/schemas/SpreadExtreme","description":"Highest daily spread."},"latest":{"$ref":"#/components/schemas/ProviderSpreadPoint","description":"Most recent point."}},"type":"object","required":["provider","pricing_url","points","mean","min","max","latest"],"title":"ProviderSpread"},"ProviderSpreadPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day","description":"UTC day of the index settlement."},"rate":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Rate","description":"Rate in force on this day in USD per GPU-hour: the latest revision dated on or before it."},"index":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Index","description":"Last market index settlement of this day in USD per GPU-hour."},"spread":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Spread","description":"rate minus index in USD per GPU-hour, exact to 4 decimals."},"tier":{"$ref":"#/components/schemas/RateTier","description":"Tier of the provider's cheapest offer in force that day."}},"type":"object","required":["day","rate","index","spread","tier"],"title":"ProviderSpreadPoint"},"ProviderSpreads":{"properties":{"source":{"$ref":"#/components/schemas/IndexSeries"},"gpu":{"$ref":"#/components/schemas/GpuType","description":"Catalog GPU."},"tier":{"anyOf":[{"$ref":"#/components/schemas/RateTier"},{"type":"null"}],"description":"Tier the offers were limited to; null takes each provider's cheapest offer of any tier."},"latest_index":{"anyOf":[{"$ref":"#/components/schemas/IndexDay"},{"type":"null"}],"description":"Latest settlement of the reference index in the window; null without one."},"providers":{"items":{"$ref":"#/components/schemas/ProviderSpread"},"type":"array","title":"Providers","description":"Providers with a stored rate in force on at least one settlement day, by name."},"source_name":{"type":"string","title":"Source Name","description":"Display name of the index series.","readOnly":true},"source_url":{"type":"string","title":"Source Url","description":"Public page of the index publisher.","readOnly":true},"methodology_url":{"type":"string","title":"Methodology Url","description":"Index methodology or documentation page.","readOnly":true}},"type":"object","required":["source","gpu","tier","latest_index","providers","source_name","source_url","methodology_url"],"title":"ProviderSpreads"},"ProviderSummary":{"properties":{"id":{"$ref":"#/components/schemas/ProviderId"},"name":{"type":"string","title":"Name"},"fields":{"items":{"$ref":"#/components/schemas/CredentialField"},"type":"array","title":"Fields"},"docs_url":{"type":"string","title":"Docs Url"},"launch_supported":{"type":"boolean","title":"Launch Supported"},"connection":{"anyOf":[{"$ref":"#/components/schemas/Connection"},{"type":"null"}]}},"type":"object","required":["id","name","fields","docs_url","launch_supported","connection"],"title":"ProviderSummary"},"Quote":{"properties":{"id":{"type":"string","title":"Id","description":"Quote id."},"provider_name":{"type":"string","title":"Provider Name","description":"Who quoted the price."},"gpu":{"$ref":"#/components/schemas/GpuType","description":"Catalog GPU the price is for."},"tier":{"$ref":"#/components/schemas/QuoteTier","description":"Capacity tier of the offer."},"term_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Term Months","description":"Contract length in months for reserved and committed; null otherwise."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"Quoted USD per GPU-hour."},"valid_until":{"type":"string","format":"date-time","title":"Valid Until","description":"When the quote expires."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Optional note."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the quote was added."}},"type":"object","required":["id","provider_name","gpu","tier","term_months","usd_per_gpu_hour","valid_until","note","created_at"],"title":"Quote"},"QuoteRequest":{"properties":{"provider_name":{"type":"string","maxLength":80,"minLength":1,"title":"Provider Name","description":"Who quoted the price, as you want it shown."},"gpu":{"$ref":"#/components/schemas/GpuType","description":"Catalog GPU the price is for."},"tier":{"$ref":"#/components/schemas/QuoteTier","description":"Capacity tier of the offer."},"term_months":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Term Months","description":"Contract length in months; required for reserved and committed, null otherwise."},"usd_per_gpu_hour":{"anyOf":[{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Usd Per Gpu Hour","description":"Quoted USD per GPU-hour."},"valid_until":{"type":"string","format":"date-time","title":"Valid Until","description":"When the quote expires; must be in the future. Expired quotes are never used."},"note":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Note","description":"Optional note."}},"additionalProperties":false,"type":"object","required":["provider_name","gpu","tier","usd_per_gpu_hour","valid_until"],"title":"QuoteRequest"},"QuoteTier":{"type":"string","enum":["on_demand","spot","serverless","reserved","committed"],"title":"QuoteTier"},"RankBasis":{"type":"string","enum":["measured (probe)","probe running","probe did not finish","estimated","rate only","no listed rate"],"title":"RankBasis"},"RankedCandidate":{"properties":{"rank":{"type":"integer","title":"Rank"},"gpu":{"$ref":"#/components/schemas/GpuType"},"provider":{"type":"string","title":"Provider","description":"modal for a GPU that can be probed; quote or nationalcompute for an offer ranked by its rate only."},"provider_name":{"type":"string","title":"Provider Name"},"basis":{"$ref":"#/components/schemas/RankBasis"},"usd_per_gpu_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd Per Gpu Hour"},"cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Usd","description":"Median measured GPU cost of the qualified benchmark runs; null without them."},"duration_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Duration Seconds","description":"Median measured run duration of the qualified benchmark runs; null without them."},"estimated_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Estimated Cost Usd","description":"The route's full-job estimate for this candidate, for reference."},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id","description":"The latest benchmark run on this GPU; null when it was not probed."},"usd_per_unit":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd Per Unit","description":"Median USD per 1k steps or per 1M tokens; the measured rows rank on it."}},"type":"object","required":["rank","gpu","provider","provider_name","basis","usd_per_gpu_hour","cost_usd","duration_seconds","estimated_cost_usd","run_id"],"title":"RankedCandidate"},"RateEvidence":{"properties":{"kind":{"type":"string","const":"rate","title":"Kind","default":"rate"},"provider":{"$ref":"#/components/schemas/Provider","description":"Provider whose listed rate was used."},"gpu":{"$ref":"#/components/schemas/GpuType","description":"Catalog GPU the rate is for."},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour","description":"Listed rate per GPU-hour."},"revision":{"type":"string","title":"Revision","description":"Revision of the rate source."},"source":{"type":"string","title":"Source","description":"Name of the rate source."},"source_url":{"type":"string","title":"Source Url","description":"Where the rate was read."},"observed_at":{"type":"string","format":"date-time","title":"Observed At","description":"When the rate was fetched."}},"type":"object","required":["provider","gpu","usd_per_gpu_hour","revision","source","source_url","observed_at"],"title":"RateEvidence"},"RateOrigin":{"type":"string","enum":["stored","live","quote","auction"],"title":"RateOrigin"},"RatePoint":{"properties":{"time":{"type":"string","format":"date-time","title":"Time"},"value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Value"},"source_url":{"type":"string","title":"Source Url"},"checked_on":{"type":"string","format":"date","title":"Checked On"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At"},"stale":{"type":"boolean","title":"Stale"}},"type":"object","required":["time","value","source_url","checked_on","fetched_at","stale"],"title":"RatePoint"},"RateRecord":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType"},"version":{"type":"integer","title":"Version"},"usd_per_gpu_second":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Second"},"usd_per_gpu_hour":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Usd Per Gpu Hour"},"source_url":{"type":"string","title":"Source Url"},"checked_on":{"type":"string","format":"date","title":"Checked On"},"execution_mode":{"$ref":"#/components/schemas/ExecutionMode"},"units":{"type":"string","title":"Units"},"tier":{"$ref":"#/components/schemas/RateTier"},"gpu_model":{"$ref":"#/components/schemas/GpuModel"},"form_factor":{"anyOf":[{"$ref":"#/components/schemas/FormFactor"},{"type":"null"}]},"memory_gb":{"type":"integer","title":"Memory Gb"},"gpu_count":{"type":"integer","title":"Gpu Count"},"billing_increment_seconds":{"type":"integer","title":"Billing Increment Seconds"},"broad_region_multiplier":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Broad Region Multiplier"},"narrow_region_multiplier":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Narrow Region Multiplier"},"source_revision":{"type":"string","title":"Source Revision"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At"},"stale":{"type":"boolean","title":"Stale"}},"type":"object","required":["gpu","version","usd_per_gpu_second","usd_per_gpu_hour","source_url","checked_on","execution_mode","units","tier","gpu_model","form_factor","memory_gb","gpu_count","billing_increment_seconds","broad_region_multiplier","narrow_region_multiplier","source_revision","fetched_at","stale"],"title":"RateRecord"},"RateTier":{"type":"string","enum":["on_demand","preemptible","spot","reserved","serverless","committed","auction"],"title":"RateTier"},"ReadyResponse":{"properties":{"status":{"type":"string","const":"ready","title":"Status"}},"type":"object","required":["status"],"title":"ReadyResponse"},"ReferenceSeries":{"properties":{"source":{"$ref":"#/components/schemas/IndexSeries"},"points":{"items":{"$ref":"#/components/schemas/SeriesPoint"},"type":"array","title":"Points"},"source_name":{"type":"string","title":"Source Name","description":"Display name of the index series.","readOnly":true},"source_url":{"type":"string","title":"Source Url","description":"Public page of the index publisher.","readOnly":true},"methodology_url":{"type":"string","title":"Methodology Url","description":"Index methodology or documentation page.","readOnly":true}},"type":"object","required":["source","points","source_name","source_url","methodology_url"],"title":"ReferenceSeries"},"ReplaceRequest":{"properties":{"credentials":{"additionalProperties":{"type":"string","format":"password","writeOnly":true},"type":"object","title":"Credentials"}},"type":"object","required":["credentials"],"title":"ReplaceRequest"},"Route":{"properties":{"id":{"type":"string","title":"Id","description":"Route id."},"user_id":{"type":"string","title":"User Id","description":"Owner."},"job_spec":{"$ref":"#/components/schemas/JobSpec","description":"Snapshot of the requested workload; env values are masked."},"requested_gpu":{"anyOf":[{"$ref":"#/components/schemas/GpuType"},{"type":"null"}],"description":"GPU named in the request, which overrides the policy."},"max_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Max Cost Usd","description":"Budget per job in USD from the request; null without one."},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint","description":"sha256 of the job, env values only as a hash, taken before they are masked; null on routes saved before it was kept."},"candidates":{"items":{"$ref":"#/components/schemas/Candidate"},"type":"array","title":"Candidates","description":"Compatible Modal GPUs in catalog order, which need no connection to route, then your quotes and auction prices that fit the spec, which are compared but never selected."},"selected":{"anyOf":[{"$ref":"#/components/schemas/Candidate"},{"type":"null"}],"description":"The candidate the policy or the request chose; null when none qualifies."},"policy":{"$ref":"#/components/schemas/RoutingPolicy","description":"Selection policy name."},"policy_version":{"type":"integer","title":"Policy Version","description":"Version of the policy rules that produced this selection."},"explanation":{"type":"string","title":"Explanation","description":"Why the selection was made and what remains unknown."},"estimate":{"$ref":"#/components/schemas/Estimate","description":"The selected candidate's estimate; unknown without a selection or measurements."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the route was built."},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"30 days after the selected rate was checked."},"evidence":{"items":{"oneOf":[{"$ref":"#/components/schemas/PolicyEvidence"},{"$ref":"#/components/schemas/RateEvidence"},{"$ref":"#/components/schemas/MeasurementEvidence"},{"$ref":"#/components/schemas/BenchmarkEvidence"},{"$ref":"#/components/schemas/MarketIndexEvidence"},{"$ref":"#/components/schemas/AboveMarketEvidence"}],"discriminator":{"propertyName":"kind","mapping":{"above_market":"#/components/schemas/AboveMarketEvidence","benchmark":"#/components/schemas/BenchmarkEvidence","market_index":"#/components/schemas/MarketIndexEvidence","measurement":"#/components/schemas/MeasurementEvidence","policy":"#/components/schemas/PolicyEvidence","rate":"#/components/schemas/RateEvidence"}}},"type":"array","title":"Evidence","description":"Typed evidence behind the selection, saved with the route: the policy, the selected rate, the user's comparable runs or the public benchmark, and whether the rate is above market. market_index entries appear only for the owner account."},"prices":{"anyOf":[{"$ref":"#/components/schemas/PriceComparison"},{"type":"null"}],"description":"Stored and live rates for comparison, returned when the route is built and never saved, so null when a route is read; GET /v1/routes/{id}/prices fetches them again. Selection uses only the Modal candidates."},"evidence_source":{"$ref":"#/components/schemas/EvidenceSource","description":"Where the selected runtime estimate comes from; none without a selection.","readOnly":true},"evidence_label":{"type":"string","title":"Evidence Label","description":"Display label of evidence_source.","readOnly":true}},"type":"object","required":["id","user_id","job_spec","requested_gpu","candidates","selected","policy","policy_version","explanation","estimate","created_at","expires_at","evidence","evidence_source","evidence_label"],"title":"Route"},"RoutePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Route"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"RoutePage"},"RouteRequest":{"properties":{"job_spec":{"$ref":"#/components/schemas/JobSpec"},"gpu":{"anyOf":[{"$ref":"#/components/schemas/GpuType"},{"type":"null"}]},"max_cost_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Max Cost Usd","description":"Budget per job in USD. Candidates whose estimated cost, or ceiling cost without an estimate, exceeds it are never selected by the policy; a gpu named in the request is still selected."}},"additionalProperties":false,"type":"object","required":["job_spec"],"title":"RouteRequest"},"RouterReport":{"properties":{"decisions":{"items":{"$ref":"#/components/schemas/Decision"},"type":"array","title":"Decisions"},"regret":{"$ref":"#/components/schemas/Comparison","description":"Chosen vs cheapest verified GPU for the same fingerprint."},"cost_error":{"$ref":"#/components/schemas/ErrorStats"},"runtime_error":{"$ref":"#/components/schemas/ErrorStats"},"savings_vs_h100":{"$ref":"#/components/schemas/Comparison"},"savings_vs_cheapest_hourly":{"$ref":"#/components/schemas/Comparison"},"coverage":{"$ref":"#/components/schemas/Coverage"},"calibration":{"$ref":"#/components/schemas/Calibration"},"baseline":{"anyOf":[{"$ref":"#/components/schemas/Baseline"},{"type":"null"}],"description":"Latest stored replay baseline; null before the first replay."}},"type":"object","required":["decisions","regret","cost_error","runtime_error","savings_vs_h100","savings_vs_cheapest_hourly","coverage","calibration","baseline"],"title":"RouterReport"},"RoutingPolicy":{"type":"string","enum":["lowest-cost","lowest-estimated-cost"],"title":"RoutingPolicy"},"Run":{"properties":{"id":{"type":"string","title":"Id"},"route_id":{"type":"string","title":"Route Id"},"user_id":{"type":"string","title":"User Id"},"idempotency_key":{"type":"string","title":"Idempotency Key"},"provider":{"$ref":"#/components/schemas/Provider"},"gpu":{"$ref":"#/components/schemas/GpuType"},"provider_run_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Run Ref"},"status":{"$ref":"#/components/schemas/RunStatus"},"provider_confirmed":{"type":"boolean","title":"Provider Confirmed","description":"Whether the provider observed the current status."},"verification_status":{"$ref":"#/components/schemas/VerificationStatus"},"exit_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exit Code"},"log_tail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log Tail"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"launched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Launched At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"When the provider first reported the run running or finished; null if it never started."},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"status_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Status Checked At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"poll_failures":{"type":"integer","title":"Poll Failures","description":"Consecutive failed status polls; reset by a successful poll.","default":0},"kind":{"$ref":"#/components/schemas/RunKind","description":"job for a run of the route's job, probe for a capped benchmark run on one candidate GPU.","default":"job"},"benchmark":{"anyOf":[{"$ref":"#/components/schemas/BenchmarkPlan"},{"type":"null"}],"description":"The benchmark protocol settings of a probe run; null for a job run."},"simulation":{"anyOf":[{"$ref":"#/components/schemas/Simulation"},{"type":"null"}],"description":"Set only on a simulated run of a sample job or a demo account's job: nothing was launched or billed, and it never counts as a measurement."},"stale":{"type":"boolean","title":"Stale","description":"True when the run is not terminal and its status was last checked (or, before any check, it launched or was accepted) more than 5 poll intervals ago."},"provider_reference":{"anyOf":[{"$ref":"#/components/schemas/ProviderReference"},{"type":"null"}],"description":"The Modal sandbox and app behind the run and its dashboard link; null when the run never launched.","readOnly":true}},"type":"object","required":["id","route_id","user_id","idempotency_key","provider","gpu","provider_run_ref","status","provider_confirmed","verification_status","exit_code","log_tail","created_at","launched_at","finished_at","status_checked_at","last_error","stale","provider_reference"],"title":"Run"},"RunKind":{"type":"string","enum":["job","probe"],"title":"RunKind"},"RunOutputs":{"properties":{"run_id":{"type":"string","title":"Run Id"},"files":{"items":{"type":"string"},"type":"array","title":"Files"}},"type":"object","required":["run_id","files"],"title":"RunOutputs"},"RunPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Run"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"RunPage"},"RunRequest":{"properties":{"provider":{"type":"string","title":"Provider","description":"Provider of the route candidate to launch. Only modal is supported, and it launches the route's selected GPU."},"gpu":{"anyOf":[{"$ref":"#/components/schemas/GpuType"},{"type":"null"}],"description":"Launch this candidate GPU of the route instead of the selected one, such as the best measured probe; 422 GPU_INCOMPATIBLE when it is not a candidate."}},"additionalProperties":false,"type":"object","required":["provider"],"title":"RunRequest"},"RunStatus":{"type":"string","enum":["accepted","launching","running","succeeded","failed","cancel_requested","cancelled","lost"],"title":"RunStatus"},"SampleListing":{"properties":{"id":{"type":"string","title":"Id","description":"Sample id used by GET /v1/samples/{id}, /jobs?sample=<id>, and the CLI and MCP tools."},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","description":"One line on what the sample does and what it reports."},"job_spec":{"$ref":"#/components/schemas/JobSpec"}},"type":"object","required":["id","name","description","job_spec"],"title":"SampleListing"},"Savings":{"properties":{"baseline_gpu":{"$ref":"#/components/schemas/GpuType","description":"The usual default: the fitting GPU with the cheapest hourly rate."},"baseline_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Baseline Cost Usd","description":"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."},"job_cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Job Cost Usd","description":"This job's GPU cost: its benchmark runs plus the full run, projected until the run finishes."},"saved_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Saved Usd","description":"baseline_cost_usd minus job_cost_usd; negative when benchmarking cost more than it saved."},"percent":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Percent","description":"saved_usd as a percent of baseline_cost_usd."}},"type":"object","required":["baseline_gpu","baseline_cost_usd","job_cost_usd","saved_usd","percent"],"title":"Savings"},"SeriesPoint":{"properties":{"time":{"type":"string","format":"date-time","title":"Time"},"value":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Value"},"source_url":{"type":"string","title":"Source Url"},"checked_on":{"type":"string","format":"date","title":"Checked On"}},"type":"object","required":["time","value","source_url","checked_on"],"title":"SeriesPoint"},"Simulation":{"properties":{"duration_seconds":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Duration Seconds","description":"Measured duration shown for the run, not its wall time."},"cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Usd","description":"Simulated cost: duration_seconds at usd_per_gpu_hour of provider_name; nothing is billed."},"basis":{"type":"string","title":"Basis","description":"Where the duration comes from: the one verified sample run on this GPU the run replays, named by run id."},"provider_name":{"type":"string","title":"Provider Name","description":"Provider whose listed rate prices the simulated cost.","default":"Modal"},"usd_per_gpu_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd Per Gpu Hour","description":"That provider's listed rate per GPU-hour; null without one."},"served_run":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Served Run","description":"Id of the verified sample run whose duration, metrics, outputs and log the run replays."},"sample":{"type":"string","title":"Sample","description":"Id of the gpu-router sample whose outputs the run serves.","default":"lora"}},"type":"object","required":["duration_seconds","cost_usd","basis"],"title":"Simulation"},"SourceHealth":{"properties":{"source":{"type":"string","title":"Source","description":"Source id from the sources table."},"last_success_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Success At","description":"When the last successful fetch of this source finished. Null if never."}},"type":"object","required":["source","last_success_at"],"title":"SourceHealth"},"SpreadExtreme":{"properties":{"day":{"type":"string","format":"date","title":"Day","description":"Earliest day with this spread."},"spread":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Spread","description":"Spread in USD per GPU-hour."}},"type":"object","required":["day","spread"],"title":"SpreadExtreme"},"SpreadPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day","description":"UTC day of the index settlement."},"rate":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Rate","description":"Rate in force on this day in USD per GPU-hour: the latest revision dated on or before it."},"index":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Index","description":"Last market index settlement of this day in USD per GPU-hour."},"spread":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Spread","description":"rate minus index in USD per GPU-hour, exact to 4 decimals."},"rate_revision":{"type":"string","title":"Rate Revision","description":"Source revision of that Modal rate."}},"type":"object","required":["day","rate","index","spread","rate_revision"],"title":"SpreadPoint"},"Stats":{"properties":{"gpu":{"anyOf":[{"$ref":"#/components/schemas/GpuType"},{"type":"null"}]},"machine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Machine"},"provider":{"type":"string","title":"Provider"},"status":{"type":"string","title":"Status","description":"Run status for run events, job state for job events, completed or no_qualified_gpu for benchmarks."},"verification":{"anyOf":[{"$ref":"#/components/schemas/VerificationStatus"},{"type":"null"}]},"runtime_seconds":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runtime Seconds"},"cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Usd"},"usd_per_unit":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Usd Per Unit"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"compared":{"items":{"$ref":"#/components/schemas/Compared"},"type":"array","title":"Compared","description":"Verified cost per unit of every GPU tested, cheapest first."},"savings":{"anyOf":[{"$ref":"#/components/schemas/Savings"},{"type":"null"}]},"spend_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Spend Usd"},"budget_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Budget Usd"},"fallbacks":{"items":{"$ref":"#/components/schemas/Fallback"},"type":"array","title":"Fallbacks","description":"Job events: GPUs whose full-run launch failed to start before the job moved on.","default":[]},"outputs":{"items":{"$ref":"#/components/schemas/OutputFile"},"type":"array","title":"Outputs","default":[]},"simulated":{"type":"boolean","title":"Simulated","default":false}},"type":"object","required":["gpu","machine","provider","status","verification","runtime_seconds","cost_usd","usd_per_unit","unit","compared"],"title":"Stats"},"TaskType":{"type":"string","enum":["training","inference"],"title":"TaskType"},"ThroughputBasis":{"type":"string","enum":["steady state","wall-clock only, lower confidence"],"title":"ThroughputBasis"},"TokenCostEstimate":{"properties":{"gpu":{"$ref":"#/components/schemas/GpuType","description":"Catalog GPU type the estimate is for."},"provider_rate_usd_per_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Provider Rate Usd Per Hour","description":"Listed provider rate per GPU-hour from the catalog. Null when no rate is recorded."},"provider_rate_source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Rate Source Url","description":"Where the provider rate was read. Null without a rate."},"provider_rate_checked_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Provider Rate Checked On","description":"When the provider rate was read. Null without a rate."},"provider_rate_fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Provider Rate Fetched At","description":"When the provider rate was fetched. Null without a rate."},"provider_rate_stale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Provider Rate Stale","description":"True when a manual rate was fetched more than 30 days ago. Null without a rate."},"market_index_usd_per_hour":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Market Index Usd Per Hour","description":"Latest market index per GPU-hour for this GPU: a transaction-derived benchmark, not a provider price. Null when the catalog has no index for this GPU or the caller is not the owner account."},"market_index_source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Index Source Url","description":"Public page of the market index. Null without a visible index."},"market_index_checked_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Market Index Checked On","description":"UTC date the index observation was fetched. Null without a visible index."},"cost_per_million_tokens_at_provider_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Per Million Tokens At Provider Rate","description":"USD per million output tokens at the provider rate: rate x headroom / (throughput x utilization x 3600) x 1,000,000. Null without a provider rate."},"cost_per_million_tokens_at_market_index":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Per Million Tokens At Market Index","description":"The same arithmetic at the market index instead of the provider rate. Null without a visible index."},"break_even_utilization":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Break Even Utilization","description":"Utilization at which the provider-rate cost per million tokens equals the hosted price: rate x headroom x 1,000,000 / (throughput x 3600 x hosted price). Above 1 means the hosted price is not reached at full utilization. Null without a hosted price or a provider rate."}},"type":"object","required":["gpu","provider_rate_usd_per_hour","provider_rate_source_url","provider_rate_checked_on","provider_rate_fetched_at","provider_rate_stale","market_index_usd_per_hour","market_index_source_url","market_index_checked_on","cost_per_million_tokens_at_provider_rate","cost_per_million_tokens_at_market_index","break_even_utilization"],"title":"TokenCostEstimate"},"User":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"email_verified":{"type":"boolean","title":"Email Verified"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"demo":{"type":"boolean","title":"Demo","default":false}},"type":"object","required":["id","email","email_verified","created_at"],"title":"User"},"VerificationCheck":{"properties":{"name":{"$ref":"#/components/schemas/VerifierCheck"},"passed":{"type":"boolean","title":"Passed"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["name","passed","reason"],"title":"VerificationCheck"},"VerificationReport":{"properties":{"run_id":{"type":"string","title":"Run Id"},"verifier_version":{"type":"string","title":"Verifier Version"},"status":{"$ref":"#/components/schemas/VerificationStatus"},"checks":{"items":{"$ref":"#/components/schemas/VerificationCheck"},"type":"array","title":"Checks"},"outputs":{"items":{"type":"string"},"type":"array","title":"Outputs"},"metrics_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metrics Sha256"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"}},"type":"object","required":["run_id","verifier_version","status","checks","outputs","metrics_sha256","checked_at"],"title":"VerificationReport"},"VerificationStatus":{"type":"string","enum":["not_requested","pending","passed","failed"],"title":"VerificationStatus"},"VerifierCheck":{"type":"string","enum":["expected_output_files","metrics_file","metric_must_decrease"],"title":"VerifierCheck"},"VerifierSpec":{"properties":{"expected_output_files":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Expected Output Files"},"metrics_file":{"type":"string","title":"Metrics File"},"metric_must_decrease":{"type":"string","minLength":1,"title":"Metric Must Decrease"}},"additionalProperties":false,"type":"object","required":["expected_output_files","metrics_file","metric_must_decrease"],"title":"VerifierSpec"},"WorkUnit":{"type":"string","enum":["step","token"],"title":"WorkUnit"}},"securitySchemes":{"APIKeyCookie":{"type":"apiKey","in":"cookie","name":"gpu_router_session"},"HTTPBearer":{"type":"http","scheme":"bearer"}}},"tags":[{"name":"health","description":"Liveness and readiness, no auth."},{"name":"auth","description":"Browser sign-in, session, and whoami."},{"name":"api-keys","description":"User-scoped bearer keys for the CLI, agents, and MCP. Session only."},{"name":"provider-connections","description":"Your Modal and other provider credentials: connect, show, recheck, replace, disconnect."},{"name":"gpus","description":"Catalog, stored and live prices, history, and market index. Public reads."},{"name":"samples","description":"Ready-made job specifications to route or run. Public."},{"name":"routes","description":"The routing decision for a job spec: candidates, selection, evidence, and prices. Never launches."},{"name":"benchmark","description":"Quote, confirm, and read a capped benchmark of a route on chosen GPUs. Launches paid probes."},{"name":"jobs","description":"One call that routes, benchmarks, chooses, and runs under a budget, plus its finished event."},{"name":"runs","description":"Launch a route, status, cancel, outputs, verification, and measurements."},{"name":"estimates","description":"Token cost estimate for serving on a catalog GPU."},{"name":"quotes","description":"Your private price quotes, compared beside public rates."},{"name":"auction","description":"National Compute auction prices from your connection."},{"name":"webhooks","description":"Signed endpoints for job, run, benchmark, and budget events, with a delivery log and retry."},{"name":"aggregates","description":"Summaries over stored prices, benchmarks, and your measurements."},{"name":"assist","description":"Job description to JobSpec proposal, when configured."},{"name":"evals","description":"Routing policy evaluation report, owner only."}]}