capabilities.work

Permission-Gated Version Download

A 3-step recipe with Civitai. We can help you get access.

Recipe · 3 steps

Permission-Gated Version Download

with Civitai

Check permissions on a model version and branch on download rights.

  1. Resolve the model version so the permission check has a confirmed entity id.
  2. Check the current bearer's permissions against the model version, then branch on the download decision.
  3. Reload the model version to surface the download URL once download is permitted.
What you'll need to have ready
  • apiKey: Civitai personal API token used as a Bearer credential.
  • modelVersionId: The model version id to evaluate for download.
For your developer

Arazzo workflow civitai:permission-gated-download, 3 operations: getModelVersion → checkPermissions → getModelVersion. Specs on APIs.io.