Runs
Download output
Stream one listed output file as an attachment.
Authorization
Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.
Path parameters
pathstringrequiredidstringrequiredResponses
200application/octet-streamThe 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.
401application/jsonUNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.
UNAUTHENTICATED404application/jsonRUN_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.
RUN_NOT_FOUNDOUTPUT_NOT_FOUND409application/jsonRUN_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.
RUN_OUTPUTS_UNAVAILABLEPROVIDER_CONNECTION_REQUIRED500application/jsonUnexpected failure: INTERNAL_ERROR.
INTERNAL_ERROR502application/jsonAUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).
AUTH_PROVIDER_REJECTED503application/jsonPROVIDER_UNAVAILABLE (retryable): the adapter timed out or raised while listing the volume. AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).
PROVIDER_UNAVAILABLEAUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLEMCP tool
download_output: Download one output file a run wrote, by the path list_outputs gave. Returns media_type and size_bytes with the content as text when it is UTF-8, else as content_base64. OUTPUT_NOT_FOUND for a path that is not listed. Free.