Upload artifacts
Artifacts are uploaded directly to object storage using presigned URLs issued by the portal. This avoids proxying large files through the portal and keeps uploads fast and cost-effective.Before you upload
- Sign in to the portal at least once so a default organization and storage namespace exist.
- Have an active subscription or default plan with enough storage quota.
- Install
kvcdnand configure an API key.
The upload flow
- Create artifact metadata in the portal (status
pending). - Request a presigned upload URL from
/api/v1/artifacts/upload-url. - PUT the file to the returned URL with the required headers.
- The CLI calls
POST /api/v1/artifacts/{id}/confirm-uploadto finalize the upload. - The portal confirms the upload and updates your storage usage.
CLI upload
The easiest way iskvcdn upload:
model_name, dtype, and num_tokens. You can override the inferred name with --name.
Share or consume a public artifact
Public artifacts are served from the CDN at:public. Consumers can download it with a plain GET:
num_tokens value in the sidecar tells you how many context tokens are already encoded.
Storage quota
Free accounts are limited to 20 artifacts. The portal rejects uploads that would exceed this limit with403 Forbidden. Upgrade in the dashboard to raise the limit.
Presigned URL expiration
Presigned URLs expire after 15 minutes. If your upload fails with403 Forbidden or 400 Bad Request, request a fresh URL and retry.
Resuming or retrying
If a PUT to the presigned URL fails halfway through, you must restart the upload from the beginning. The presigned URL is single-use and time-bound.Large files
For files larger than 5 GB, split the artifact into smaller shards at the source. KV Cache Store does not support multipart uploads through presigned URLs.Checksum verification
The portal records the SHA-256 checksum you provide when requesting the upload URL. If the checksum does not match the object in storage, the artifact remains inpending status and the upload must be retried.
Example with curl
Next steps
- Manage artifacts after upload.
- Learn how visibility works.
- Read the CLI upload reference.