If your requirement is that prompts and reference images never leave your hardware, run an open-weight model locally with zero remote nodes. No hosted web generator, no "private gallery" toggle, and no rented cloud GPU satisfies a zero-upload boundary—inference runs on external machines in all three cases. If your practical requirement is keeping adult creative work out of public feeds, excluded from training sets, and purged on a strict retention clock without maintaining local GPU hardware, a hosted API with enforceable retention ceilings, per-request TTLs, and on-demand content destruction is the right architecture.
Define the exact threat model first by finishing one sentence: "I need to keep these prompts, references, and outputs private from ____."
| Privacy requirement | Correct architecture | Where prompts & references travel | Retention & deletion boundary | Residual exposure to manage |
|---|---|---|---|---|
| Zero external transmission of prompts, faces, or LoRAs | Local open-weight inference (e.g., local ComfyUI server on your GPU) | Never leave your machine once weights are downloaded | Controlled entirely by your local disk and OS | Cloud-synced folders (iCloud/OneDrive), PNG workflow metadata, shared OS accounts |
| Open-weight control on heavier models than your laptop can run | Self-managed rented GPU instance | Uploaded to the GPU host during the session | Ephemeral container disk vs. persistent/network volumes (must delete volumes manually) | Host infrastructure access during execution; open/unauthenticated web UI ports |
| No public gallery, no training on user data, and short bounded retention without GPU ops | Hosted API with configurable retention ceilings & on-demand purge (e.g., SpicyAPI) | Transmitted in plaintext to the platform and executing model | Configurable down to 1h / 0s header + POST /api/v1/jobs/purge; platform caps enforced at storage lifecycle | Executing model sees plaintext prompt; DB backups roll over on a 35-day cycle; billing ledger kept as long as US tax and accounting law requires |
| Keeping drafts invisible to other platform users only | Private workspace / non-public account history | Remote servers | Private by default, no public feed | Separate from operator retention or training terms—read both carefully |
"Uncensored" is a content-filtering statement, not a privacy architecture. A service can accept adult prompts while storing outputs indefinitely, exposing them in a public community feed, or routing them through third-party processors without disclosing retention windows. For tool and cost comparisons across these tiers, see the web, API, and local uncensored generator guide and hosted media API vs. self-hosted inference.
Three execution boundaries: where your image actually goes

Local hardware, rented GPU instances, and hosted APIs create three distinct data paths. A private gallery switch only hides outputs from other users.
1. Local on-device inference
Local inference loads model weights onto your own GPU (or Apple Silicon unified memory), runs the forward pass locally, and writes PNG/WebP outputs directly to a local folder. Once software and weights are downloaded, generation works with the network interface disconnected.
Two hidden traps turn a "local" install into a hybrid cloud workflow:
- Client-server UI confusion: ComfyUI separates the browser client from the Python execution server (ComfyUI architecture docs). The interface looks identical whether it points at
127.0.0.1or a remote host. Verify the server address and audit every custom node—API partner nodes, remote upscalers, or external prompt enhancers transmit inputs off-device while keeping the same local canvas. - Uninstalling does not erase outputs: Comfy Desktop's Windows and macOS docs note that removing the app does not delete stored model weights,
input/,output/, logs, or settings directories. Clean those folders manually.
Hardware requirements depend on the checkpoint, quantization, resolution, and auxiliary stages (encoders, ControlNet, upscalers), not on whether the prompt is adult. Comfy Desktop itself takes ~4.85 GB before any model weights; verify VRAM requirements for the exact checkpoint before committing.
2. Rented remote GPU instances
Renting an on-demand GPU lets you run the exact same open-weight graph you would run locally, but your prompts, reference sheets, and custom LoRAs travel to remote infrastructure.
Stopping a pod is not deletion. For example, Runpod's storage architecture separates container disks (cleared on stop/termination), volume disks (persist across stop/restart until pod termination), and network volumes (persist independently even after the pod is deleted). Before ending a rented session:
- Require authentication on every exposed web UI or file browser—never rely on an unindexed URL.
- Download approved outputs locally, then wipe input/output folders inside any persistent or network volume before terminating compute.
- Treat "disk encryption at rest" as storage protection only; the running GPU still holds active inputs in memory during inference.

Stopping a remote GPU stops billing for compute; persistent volumes and network disks keep project files until manually deleted.
3. Hosted APIs and browser workspaces
A hosted API removes GPU maintenance, weight storage, and scaling overhead. Instead of guessing what "private" means on a landing page, audit five concrete engineering facts:
- Public feed policy: Are outputs ever published to a gallery or showcase?
- Training policy: Does the platform train on prompts, uploads, or generated outputs?
- Retention ceilings & controls: Are expiry windows enforced by storage lifecycle rules, and can you shorten them per account or per request?
- Destruction granularity: Can you purge a completed task's prompt and media immediately, and what metadata remains afterward?
- Upstream processor boundary: Does the policy state plainly that executing model providers receive prompts in plaintext?
How SpicyAPI's privacy, retention, and deletion architecture actually works
SpicyAPI is a hosted platform. We state two architectural boundaries upfront in our Privacy Policy and Retention and Destruction docs:
- We do store prompts and outputs within defined ceilings, and we do not train on them or publish them in any public feed. Nor do we run automated content-classification scans over your generation prompts or outputs.
- The executing model receives your prompt and reference images in plaintext. No hosted image API offers end-to-end encrypted image inference; our retention controls govern how long SpicyAPI stores your data, not what happens inside an external executing model during generation.
Platform retention ceilings (you can only shorten, never extend)
Every retention number below is enforced by live server configuration and object-storage lifecycle rules—not manual cleanup promises. You can dial the first four clocks down, never above the platform ceiling.
| Data category | Platform ceiling (default) | User-configurable options | What happens at expiry or purge |
|---|---|---|---|
| Generated media (API / Playground / Canvas) | About 14 days (tasks/ prefix) | 1h, 6h, 24h, 7d, 14d | Deleted from object storage; signed URLs stop issuing |
| Spicy Studio short-film media (Studio projects & exported MP4s only) | About 60 days (films/ prefix) | 1d, 7d, 14d, 30d, 60d | Deleted from object storage (API/Playground calls stay on 14-day cap) |
Prompt text & task payload (tasks.input, tasks.output, callback_url) | 30 days | Same as results, 1h, 24h, 7d, 30d | Cleared in DB; task metadata row stays for billing reconciliation |
Uploaded reference files (spicy:// URIs) | 1 day usable URI lifetime (expiresAt) | Delete when the job ends, 1h, 24h | URI invalid immediately at expiresAt; object removed by sweeper (up to 24h outer storage lifecycle backstop) |
| Saved Asset Library & Studio Characters | Until you delete them (personas/ / /api/v1/assets) | Manual delete per asset, team deletion, or account closure | Hard-deleted on action; accessed only via 20-minute signed URLs |
| Task logs & webhook delivery records | At least 60 days (monthly partitions: ~2–3 months) | Not user-configurable | Partition dropped |
| Plaintext IP & User-Agent in security/audit logs | 90 days | Not user-configurable | Replaced with versioned HMAC pseudonyms (pseudonymization, not anonymization) |
| Audit logs | 2 years | Not user-configurable | Integrity-verified hash chain pruned after 2 years |
| Billing ledger, top-ups, and issued invoice snapshots | As long as US tax and accounting law requires (measured in years; task metadata row kept indefinitely) | Not user-configurable | Append-only financial records retained for statutory accounting and billing disputes |
| Database backups | 35 days | Not user-configurable | Rotated out automatically; application erasure does not scrub backups instantaneously |
"About 14 days" is deliberate. Object-storage lifecycle rules execute within 24 hours of expiry. An active worker sweeper enforces your shorter user clocks every minute (deleting storage objects before marking the task record cleared), while the storage lifecycle rule serves as an outer safety net.
Warning on shortening account clocks: in Console Data Protection, shortening Prompt text (for example, to 1h or 24h) or shortening Generated results while Prompt text is set to Same as results triggers a retroactive day-based cleanup pass that clears both prompt text and generated files on older finished tasks. Always download outputs you want to keep before lowering account retention clocks. Setting Uploaded files to Delete when the job ends removes an uploaded reference within ~1 minute after all referencing tasks hit a terminal state—which also means retrying that task will fail unless you re-upload.
Per-request tightening with X-Spicy-Retention
For sensitive jobs where you do not want to alter the whole account's clocks, send the X-Spicy-Retention header (integer seconds) on POST /api/v1/jobs/createTask. The effective window is strictly min(header, account setting, platform cap). Sending 0 is valid.
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-H "X-Spicy-Retention: 3600" \
-d '{
"model": "alibaba/qwen-image-2.1/text-to-image",
"input": {
"prompt": "Editorial studio portrait of an adult woman in dark satin, low-key window light, 85mm lens",
"resolution": "1k",
"output_format": "png"
}
}'Read the retention block in GET /api/v1/jobs/recordInfo to confirm the exact expiry timestamps and source (header, account, or platform). If you send 3600 while your account is already capped at 1800, source returns account.
On-demand destruction with POST /api/v1/jobs/purge
Once a task reaches a terminal state (succeeded, failed, canceled, or expired), you can destroy its prompt, payload, and generated media immediately without waiting for the timer—either via Destroy outputs in Console Logs or programmatically:
curl -X POST https://api.spicyapi.ai/api/v1/jobs/purge \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"taskId": "job_01k..."}'POST /api/v1/jobs/purge is idempotent by taskId (repeating it returns 200 with the original purgedAt) and returns contentState: "purged", contentRemovedBy: "user", billingRetained: true, and mediaDeletionPending: true (background object deletion completes normally within ~1 minute).
- What
purgeremoves: generated media objects in storage,tasks.output, prompt and text parameters intasks.input, and upstream response bodies. - What
purgekeeps: ledger debits/credits, task ID, model ID, terminal state, timestamps, andrequest_id(so financial reconciliation stays intact). - Legal hold override: tasks under an active dispute or forensic preservation hold stop expiring and reject
purgeuntil the hold is released.
Client-direct uploads and signed download discipline
When sending private reference images via the API instead of hosting them at a public URL, use SpicyAPI's direct upload flow (POST /api/v1/common/upload-url → PUT bytes directly to storage → POST /api/v1/files/{fileId}/commit, returning a short-lived spicy:// URI):
- No caller-chosen filenames: object keys are generated server-side, preventing path probing or overwrites.
- Strict size and MIME bounds: JPEG, PNG, WebP, and GIF up to 10 MiB; small inline Base64 data URIs up to 1 MiB decoded (max 2 MiB JSON body) are stored as 1-day account-bound uploads and replaced by
spicy://URIs intasks.inputrather than echoing raw Base64. Custom LoRA.safetensorsfiles upload viaapplication/octet-streamup to 2 GiB (2-hour upload ticket). - 20-minute signed download URLs:
GET /api/v1/common/download-urlissues short-lived signed URLs that cannot be revoked once minted. Never persist signed download URLs in your own database or share them publicly; download outputs to your own storage, then callpurgeif needed. See media upload retention and permanent storage and media retention and delivery for production storage patterns.
Two leaks that break even offline workflows: metadata and cloud sync
Generating locally protects the inference step; it does not protect what happens after the file hits disk.
Strip embedded prompts and workflow graphs before sharing
Local generators like ComfyUI embed complete JSON workflow graphs, prompts, seeds, and model filenames inside PNG textual chunks so you can drag an image back onto the canvas (ComfyUI first-generation guide). Standard OS file-info panels hide those chunks.

Keep the working master with its generation recipe inside a private folder, and export a stripped delivery copy before sharing.
Use ExifTool to inspect and strip PNG metadata into a separate sharing file while keeping color-space tags intact:
# 1. Audit all embedded chunks, including non-standard AI workflow tags
exiftool -a -G1 -s -u working.png
# 2. Write a clean copy without modifying the working master
exiftool -all= -tagsFromFile @ -ColorSpaceTags -o share.png working.png
# 3. Verify private prompt and workflow tags are gone
exiftool -a -G1 -s -u share.pngCheck share.png visually afterward (some custom ICC profiles also contain descriptive strings; convert directly to sRGB if needed). Never assume a chat app or image host strips metadata for you.
Keep local output directories outside automatic cloud sync
Saving locally generated portraits into macOS Photos (with iCloud Photos enabled, where deleted items also remain in Recently Deleted for 30 days), Desktop/Documents sync, or a synced cloud drive silently uploads files you generated offline. Point local output folders to an unsynced local directory under an OS-encrypted volume (such as FileVault or BitLocker) on a dedicated personal OS user account—not a work-managed laptop with corporate endpoint backup.
Privacy failure modes and concrete fixes
| Leak vector or symptom | Root cause | Immediate fix |
|---|---|---|
| Local workflow still uploads images to external servers | ComfyUI graph contains an active API/partner node or remote prompt enhancer | Disconnect network and run one test generation; remove remote nodes for air-gapped sessions |
| Shared PNG exposes your private prompt and LoRA filenames | Generator saved workflow JSON into PNG tEXt/iTXt chunks | Export a separate delivery copy with exiftool -all= -tagsFromFile @ -ColorSpaceTags -o share.png working.png and re-audit |
| Files reappear after deleting a rented GPU pod | Outputs were written to a persistent or independent network volume | Wipe project folders inside mounted volumes and delete unattached network volumes after compute termination |
| Shortening SpicyAPI Prompt retention deleted recent outputs | Day-based cleanup pass clears prompt text and outputs together on older finished tasks | Always archive needed outputs before shortening account retention; use X-Spicy-Retention for one-off sensitive jobs |
| Retrying a failed job returns missing-input error | Account upload retention set to "Delete when the job ends" | Re-upload the reference via POST /api/v1/common/upload-url before retrying, or keep uploads on the 1-day clock and call POST /api/v1/jobs/purge after success |
| Support ticket preserves private images after task purge | Sensitive reference files were attached directly to a support email | Share only the taskId and request_id when troubleshooting; never attach private reference sheets unless necessary |
Choosing your setup in one pass
- Zero-upload requirement (strictly offline): Run local ComfyUI with local weights only, save outside cloud-synced folders, verify with a disconnected test run, and strip PNG metadata before sharing any export.
- Need heavy open-weight pipelines without buying hardware: Rent a GPU with authenticated access, keep track of container vs. network volume lifetimes, and wipe persistent volumes before terminating.
- Need fast hosted API generation with strict, verifiable cleanup: Use SpicyAPI's direct upload flow (
spicy://URIs), setX-Spicy-Retentionper request (or lower the separate clocks in Data Protection after archiving), download outputs immediately via short-lived signed URLs, and callPOST /api/v1/jobs/purgeas soon as your pipeline confirms delivery.




