Download a restored photo
pinin_download_restorationGet a signed download URL for a finished photo restoration, valid about one hour; choose the restored or original file and check expires_at before the link lapses.
Instructions
Get the signed URL for a finished photograph, valid about an hour, with expires_at so you know when it lapses. image: "restored" (default) is the repaired file; "original" is the file that was sent in. Call it only once a job is completed — a pending, processing or failed job has nothing to download, and re-reading a completed job already returns the same URLs. Read-only and free: it re-signs the link, not the credits, and does not touch the job.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "pinin_download_restoration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Restoration id of a completed job — the `id` field from pinin_restore_photo or pinin_list_restorations. | |
| image | No | Which file to link. `restored` (default) is the repaired photograph; `original` is the submitted file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Signed https URL for the image; expires within the hour. | |
| object | No | Always `download`. | |
| expires_at | No | ISO 8601 instant when the signature lapses. | |
| http_status | No | The upstream redirect status, normally 302. |