Skip to content
Protocol primitive

zstd compress

Compress a payload with zstd.

POSTapi.tikultra.com/v1/crypto/zstd/compressPrimitive · 2 credits
Upstreamlocal · zstd codecEvery plan

Parameters

NameTypeDescription
data_base64requiredstringThe payload, base64.
e.g. eyJoZWxsbyI6InRpa3VsdHJhIn0=

Pricing

PlanPer callPer 1,000 calls
Starter2 credits$0.23
Growth2 credits$0.16
Scale2 credits$0.12

Responses

A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining. Errors return a JSON body with a stable code and cost 0 credits. Error codes

curl -X POST https://api.tikultra.com/v1/crypto/zstd/compress \
  -H "x-api-key: $TIKULTRA_KEY" \
  -H "content-type: application/json" \
  -d '{"data_base64":"eyJoZWxsbyI6InRpa3VsdHJhIn0="}'
{
  "compressed_base64": "KLUv/QAAoQAAeyJoZWxsbyI6InRpa3VsdHJhIn0=",
  "compressed_hex": "28b52ffd0000a100007b2268656c6c6f223a2274696b756c747261227d",
  "dictionary": "tt-zstd-v0.0.2"
}
Try it in the playgroundFull reference in the docs

More in Devices, signing & primitives

Ready to build?

Start with 2,500 free credits and test every public endpoint, then pick a plan.