Templates / Monetize your private LLM models with x402 & Ollama

Monetize your private LLM models with x402 & Ollama

Unknown

by 1Shot API ✓ · 831 views · created 2025-07-28 · Engineering, AI Chatbot

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Ollama Model and 1shot (community).

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Check for presence of X-HEADER (If): checks a condition and branches into true / false
  2. Decode & Validate X-Payment (Code): runs custom JavaScript code
  3. Response: Missing or Invalid Payment Headers (Respond to Webhook): sends the response back to the webhook caller
  4. Ensure Well Formatted Payment Payload (If): checks a condition and branches into true / false
  5. Simulate Payment (One Shot): simulate
  6. On Successful Payment Simulation (If): checks a condition and branches into true / false
  7. 1Shot API Submit & Wait (One Shot Synch): uses One Shot Synch
  8. Response: Payment Invalid (Respond to Webhook): sends the response back to the webhook caller
  9. Private Model Inference (Basic LLM Chain): sends a prompt to an LLM, with model: Ollama Engine
  10. Response: 200 - Payment Successful (Respond to Webhook): sends the response back to the webhook caller

Services it uses

Ollama Model1shot (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-1shot is verified or supports 3.0 (used in Simulate Payment).
  • Check that n8n-nodes-1shot is verified or supports 3.0 (used in 1Shot API Submit & Wait).

Nodes used (8)

From the author

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Monetize Your Private LLM Models with x402 and Ollama Self-hosting custom LLMs is becoming more popular and easier with turn-key inferencing tools like…

Excerpt from 1Shot API's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.