Creating and Selling Premium Prompts¶
This guide covers how to create encrypted, paid prompts using Lit Protocol for access control via the personal marketplace.
1. Author Your Premium Content¶
Create your high-quality prompt content in a local file. This is the content that will be encrypted.
2. Publish a Personal Premium Prompt¶
Personal premium prompts are published through the personal marketplace, not via DAO governance.
sage personal premium publish "my-prompt" \
--price 10 \
--file ./path/to/your/prompt.md \
--name "My Premium Prompt" \
--description "A high-quality prompt for professional use."
This command will:
1. Encrypt your prompt file with a symmetric key.
2. Use Lit Protocol to encrypt the symmetric key, gated by ownership of a personal ERC1155 receipt.
3. Upload the encrypted prompt and Lit metadata to IPFS.
4. Register the listing in the PersonalMarketplace contract with the specified SXXX price.
How it Works for Buyers¶
- A buyer calls the
purchasefunction on thePersonalMarketplacecontract. - They pay the specified SXXX price.
- The contract mints an ERC1155 receipt token (personal license) to their address.
- The buyer can now use their ownership of this token to ask the Lit Protocol nodes to decrypt the symmetric key.
- With the decrypted key, they can decrypt and access the premium prompt content.
Note: In future phases, DAOs will be able to endorse personal premium prompts on-chain (without taking custody of the content). This optional endorsement model is described in
docs/specs/premium-endorsement-model.mdand is tracked as a roadmap feature, not required for the current personal-only premium beta.