← All tools
Create archive
Archivearchive.pack
in: anyout: archive
Pack files into zip or tar.gz.
Pricing
- Price
- 0.125 cr / request
Prices in credits (1 credit = $0.01).
Create Archive
Pack one or more files from GCS into a zip or tar.gz archive.
When to use
- Bundle multiple files for download as a single archive.
- Compress outputs from a pipeline (e.g., batch transcoded videos → zip).
- Package artefacts before long-term cold storage.
Inputs & outputs
| Input modality | List of file URLs (via entries param) |
| Output modality | Archive file (GCS URL) |
| Max entries | 1 000 files |
| Max total uncompressed size | 50 GB |
Parameters
| Param | Required | Description |
|---|---|---|
format | yes | Archive format — zip or tar.gz |
compression | no | Compression level — none, fast, best. Default: best |
entries | yes | Array of { sourceUrl, path } — GCS URL + desired path inside the archive |
Examples
ZIP two files with best compression
{
"type": "archive.pack",
"input": {},
"params": {
"format": "zip",
"compression": "best",
"entries": [
{ "sourceUrl": "gs://infery-prod-media/out/a.txt", "path": "docs/a.txt" },
{ "sourceUrl": "gs://infery-prod-media/out/b.txt", "path": "docs/b.txt" }
]
}
}
tar.gz with no compression (pre-compressed media)
{
"type": "archive.pack",
"input": {},
"params": {
"format": "tar.gz",
"compression": "none",
"entries": [
{ "sourceUrl": "gs://infery-prod-media/out/video.mp4", "path": "video.mp4" }
]
}
}
Pricing
Billed per GB of uncompressed input processed. See pricing dashboard for current rates.
Related capabilities
archive.unpack— extract files from an existing archive
Examples
ZIP of 2 files
{
"format": "zip",
"compression": "best",
"entries": [
{
"sourceUrl": "gs://b/a.txt",
"path": "a.txt"
},
{
"sourceUrl": "gs://b/b.txt",
"path": "b.txt"
}
]
}