Infery.ai
← All tools

Create archive

Archive

archive.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 modalityList of file URLs (via entries param)
Output modalityArchive file (GCS URL)
Max entries1 000 files
Max total uncompressed size50 GB

Parameters

ParamRequiredDescription
formatyesArchive format — zip or tar.gz
compressionnoCompression level — none, fast, best. Default: best
entriesyesArray 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"
    }
  ]
}