{"info":{"title":"ThaiFi MPP","version":"1.0.0"},"openapi":"3.1.0","paths":{"/iapp/generate":{"post":{"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"offers":[{"amount":"1500000","currency":"0x20c000000000000000000000c82102FFe7064362","description":"iApp image generation — 1 image","intent":"charge","method":"tempo","recipient":"0x5266Dfa5ae013674f8FdC832b7c601B838D94eE6"}]},"summary":"Generate one image with iApp (Thai text rendering)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","maxLength":1500},"text":{"type":"string","description":"Text to render exactly (max 4 lines x 120 chars)"},"font":{"type":"string","default":"kanit-bold"},"size":{"type":"string","enum":["1024x1024","1280x768","768x1280","1536x1024","1024x1536"],"default":"1024x1024"},"style":{"type":"string"},"seed":{"type":"integer"},"text_scale":{"type":"number","minimum":0.2,"maximum":0.9}}}}}}}},"/qwen/generate":{"post":{"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"offers":[{"amount":"1000000","currency":"0x20c000000000000000000000c82102FFe7064362","description":"Qwen image generation — 1 image","intent":"charge","method":"tempo","recipient":"0x5266Dfa5ae013674f8FdC832b7c601B838D94eE6"}]},"summary":"Generate one image with Qwen-Image (DGX Spark)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","maxLength":1500},"size":{"type":"string","enum":["1024x1024","1280x768","768x1280","1536x1024","1024x1536"],"default":"1024x1024"},"seed":{"type":"integer"},"n":{"type":"integer","minimum":1,"maximum":4,"default":1}}}}}}}},"/llm/chat":{"post":{"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"offers":[{"amount":"200000","currency":"0x20c000000000000000000000c82102FFe7064362","description":"LLM chat completion — 1 request","intent":"charge","method":"tempo","recipient":"0x5266Dfa5ae013674f8FdC832b7c601B838D94eE6"}]},"summary":"Chat completion with the combo model (flat price per request)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["messages"],"properties":{"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant","tool"]},"content":{"type":"string"}}}},"temperature":{"type":"number","default":0.7},"max_tokens":{"type":"integer","default":1024,"maximum":4096}}}}}}}},"/legal/search":{"post":{"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"offers":[{"amount":"100000","currency":"0x20c000000000000000000000c82102FFe7064362","description":"Legal knowledge base search — 1 query","intent":"charge","method":"tempo","recipient":"0x5266Dfa5ae013674f8FdC832b7c601B838D94eE6"}]},"summary":"Search the Thai legal knowledge base (returns sections + citations)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Search text in Thai or English, e.g. `ผู้ให้บริการรับฝากสินทรัพย์ดิจิทัล`, `มาตรา 26`, `โฆษณา`"},"doc":{"type":"string","description":"Restrict to one document id — see GET /legal/outline"},"limit":{"type":"integer","default":8,"minimum":1,"maximum":20}}}}}}}},"/legal/ask":{"post":{"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"offers":[{"amount":"500000","currency":"0x20c000000000000000000000c82102FFe7064362","description":"Legal knowledge Q&A — 1 question","intent":"charge","method":"tempo","recipient":"0x5266Dfa5ae013674f8FdC832b7c601B838D94eE6"}]},"summary":"Ask a Thai digital-asset / payment law question (answered with citations)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["question"],"properties":{"question":{"type":"string","description":"The legal question in Thai or English, 5–2000 chars","maximum":2000},"doc":{"type":"string","description":"Restrict retrieval to one document id — see GET /legal/outline"},"limit":{"type":"integer","default":6,"minimum":3,"maximum":12}}}}}}}},"/tokens/create":{"post":{"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"offers":[{"amount":"1000000000","currency":"0x20c000000000000000000000c82102FFe7064362","description":"TIP-20 token creation (incl. initial mint)","intent":"charge","method":"tempo","recipient":"0x5266Dfa5ae013674f8FdC832b7c601B838D94eE6"}]},"summary":"Create a TIP-20 token with initial supply (admin handed to the payer)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","symbol","mint_amount"],"properties":{"name":{"type":"string","maxLength":64},"symbol":{"type":"string","pattern":"^[A-Z0-9]{2,11}$","description":"2-11 chars A-Z/0-9"},"mint_amount":{"type":"integer","minimum":1,"maximum":1000000000,"description":"Human units — 6 decimals are applied server-side (10,000 mints 10,000.000000)"},"recipient":{"type":"string","description":"optional — who receives the initial mint (default: the paying wallet)"},"logo_base64":{"type":"string","description":"optional — base64 PNG/WebP, square ≤1024x1024, ≤2MB; set on-chain as logoURI so the explorer shows it"}}}}}}}}}}