Connections
Connect a provider
Check and store the credentials. A demo account gets status demo: nothing is checked, stored, or launched with it.
Authorization
Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.
Body
providerenum<string>requiredAvailable options: modal runpod lambda vast nebius nationalcompute ghcr
credentialsobjectrequiredResponses
201application/jsonSuccessful Response
Show response attributes
idstringrequireduser_idstringrequiredproviderenum<string>requiredAvailable options: modal runpod lambda vast nebius nationalcompute ghcr
statusenum<string>requiredAvailable options: connected invalid unavailable demo
last_checked_atstring<date-time>requiredcreated_atstring<date-time>required401application/jsonUNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.
UNAUTHENTICATED403application/jsonCSRF_ORIGIN_MISMATCH: the Origin header does not match the public URL.
CSRF_ORIGIN_MISMATCH409application/jsonPROVIDER_CONNECTION_EXISTS: the user already has a connection to this provider; replace or delete it instead.
PROVIDER_CONNECTION_EXISTS422application/jsonVALIDATION_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).
VALIDATION_ERRORPROVIDER_CREDENTIALS_INVALID429application/jsonRATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.
RATE_LIMITED500application/jsonUnexpected failure: INTERNAL_ERROR.
INTERNAL_ERROR502application/jsonAUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).
AUTH_PROVIDER_REJECTED503application/jsonPROVIDER_UNAVAILABLE (retryable): the provider timed out or failed, nothing was stored or replaced. AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).
PROVIDER_UNAVAILABLEAUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLEMCP tool
connect_provider: Connect a provider account so runs can launch in it: credentials is a mapping of the fields list_providers names (Modal: token_id and token_secret). They are checked with the provider and stored encrypted, never echoed. PROVIDER_CREDENTIALS_INVALID when rejected, PROVIDER_CONNECTION_EXISTS when the provider is already connected (use replace_connection). This is the remedy for PROVIDER_CONNECTION_REQUIRED. Free.