{"slug":"onchaincheck-dev-ai-chat-04b09c","title":"LLM chat completion, flat $0.003 a call","host":"onchaincheck.dev","method":"POST","resource":"https://onchaincheck.dev/ai/chat","category":"market","description":"LLM chat completion, flat $0.003 a call: send a prompt (plus optional system) or an OpenAI-style messages array and get the reply text with token usage. Models: gpt-oss-20b (default), qwen3-30b, glm-4.7-flash, llama-4-scout. Up to 16,000 characters in and 1,024 tokens out; json=true for JSON output.","price_listed":0.003,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"prompt":"Write a one-sentence summary of what HTTP 402 Payment Required is for."},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"json":{"description":"true asks for a single JSON object","enum":["true","false"],"type":"string"},"max_tokens":{"description":"Most tokens to generate, up to 1024","pattern":"^\\d{1,4}$","type":"string"},"model":{"description":"Model (default gpt-oss-20b)","enum":["gpt-oss-20b","qwen3-30b","glm-4.7-flash","llama-4-scout"],"type":"string"},"prompt":{"description":"The user message (or send an OpenAI-style messages array instead)","maxLength":16000,"pattern":"^[\\s\\S]+$","type":"string"},"system":{"description":"Optional system instructions","maxLength":16000,"pattern":"^[\\s\\S]*$","type":"string"},"temperature":{"description":"0 to 2 (default 0.6)","pattern":"^\\d(\\.\\d+)?$","type":"string"}},"required":[],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"LLM chat completion, flat $0.003 a call: send a prompt (plus optional system) or an OpenAI-style messages array and get the reply text with token usage. Models: gpt-oss-20b (default), qwen3-30b, glm-4.7-flash, llama-4-scout. Up to 16,000 characters in and 1,024 tokens out; json=true for JSON output.","last_updated":"2026-11-05T22:09:32.48Z","schemes":["exact"]}