Download a creation
download_creationDownload a creation's full-resolution media to a specified path, or receive a downscaled preview for inspection. Use savePath to write the file; without it, a preview is returned inline.
Instructions
Fetch a creation's media. With savePath the FULL-RESOLUTION asset is written to disk (the right extension is appended automatically) and the path is returned. Without savePath a downscaled preview image is returned inline so the model can look at it — full bytes never go through the context window. Write paths must stay inside the working directory unless TWODAI_ALLOW_ANY_PATH=1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cdnId | No | Direct CDN asset id — alternative when no creationId is at hand. | |
| savePath | No | Where to write the file, relative to the working directory. Extension is added for you. | |
| creationId | No | The creation to download (preferred). |