This is overkill. Better and simpler solutions came out in the meantime, that let one use LN (or even ecash) to pay for LLM queries.