Runs

Download output

Stream one listed output file as an attachment.

GET/v1/runs/{id}/outputs/{path}API key

Authorization

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

Path parameters

pathstringrequired
idstringrequired

Responses

200application/octet-stream

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.

401application/json

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

UNAUTHENTICATED
404application/json

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.

RUN_NOT_FOUNDOUTPUT_NOT_FOUND
409application/json

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.

RUN_OUTPUTS_UNAVAILABLEPROVIDER_CONNECTION_REQUIRED
500application/json

Unexpected failure: INTERNAL_ERROR.

INTERNAL_ERROR
502application/json

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

AUTH_PROVIDER_REJECTED
503application/json

PROVIDER_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_UNAVAILABLE

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