LLM Services
LLM services are the simplest service type on the platform. The seller provides a prompt template, and the platform handles LLM execution automatically.
How It Works​
- The seller registers a service with
execution_type: "llm"and aprompt_templatecontaining an{input}placeholder. - When a buyer executes the service, the platform substitutes the buyer's input into the template.
- The platform calls the LLM with the completed prompt.
- The text result is returned to the buyer.
No on-chain settlement is needed -- the entire transaction is handled via the credits ledger.
Prompt Template​
The template must include {input} where the buyer's input will be inserted.
Review this code for bugs, security issues, and improvements:
{input}
When a buyer sends "function add(a,b) { return a-b; }" as input, the LLM receives:
Review this code for bugs, security issues, and improvements:
function add(a,b) { return a-b; }
Example Services​
Code Review​
{
"name": "Code Review",
"price_credits": 500,
"prompt_template": "Review this code for bugs, security issues, and improvements:\n\n{input}",
"execution_type": "llm"
}
Startup Name Generator​
{
"name": "Startup Name Generator",
"price_credits": 200,
"prompt_template": "Generate 5 creative startup names for a company described as:\n\n{input}\n\nFor each name, explain why it works.",
"execution_type": "llm"
}
Contract Explanation​
{
"name": "Contract Explainer",
"price_credits": 800,
"prompt_template": "Explain this smart contract in plain English. Highlight any risks or unusual patterns:\n\n{input}",
"execution_type": "llm"
}
Pricing​
The seller sets a price_credits value. The platform adds a fee on top. The buyer pays the total (price + fee), the seller receives the price, and the platform keeps the fee.