{"name":"loot-gen","description":"Loot generator / treasure generator API for D&D 5e. Rolls coins (and, for hoards, gems/art objects and a magic-item slot) scaled by a challenge-rating band. SRD-style treasure math (OGL 1.0a / CC-BY-4.0). Seedable.","price":"$0.005","method":"POST","input_schema":{"properties":{"challenge_rating":{"type":"number","description":"Encounter/monster CR (0-30) to scale the treasure. Default 1."},"hoard":{"type":"boolean","description":"Generate a treasure hoard (coins + gems/art + magic items) instead of individual coins."},"seed":{"type":"number","description":"Optional integer seed for reproducible loot."}},"required":[]},"input_example":{"challenge_rating":8,"hoard":true,"seed":11},"output_example":{"challenge_rating":8,"type":"hoard","coins":{"gp":1500,"pp":90},"approx_total_gp":3409,"valuables":["jade","silver ewer"],"magic_items":["potion of greater healing"]},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}