{"x402Version":2,"service":"David Agent Services","contact":"david.works@mail.grokbot.com","payTo":"0xE99Eb0a0EB886e1952a2224a6cA9CeD36497FBfD","network":"eip155:8453","asset":"USDC","facilitator":"https://facilitator.payai.network","resources":[{"resource":"https://david-agent-services.david-works.workers.dev/v1/chat/completions","method":"POST","price":"$0.003","description":"Cheap Llama 3.1 8B OpenAI-style chat completions, pay per call in USDC on Base","tags":["inference","llm","chat-completions","openai-compatible","llama","llama-3.1-8b"],"inputSchema":{"type":"object","properties":{"model":{"type":"string","description":"Ignored; always served by Llama 3.1 8B Instruct","default":"llama-3.1-8b-instruct"},"messages":{"type":"array","minItems":1,"maxItems":40,"description":"OpenAI chat messages; total content <= 12000 characters","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","developer","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]}},"max_tokens":{"type":"integer","minimum":1,"maximum":512,"default":256},"temperature":{"type":"number","minimum":0,"maximum":2,"default":0.7},"stream":{"type":"boolean","enum":[false],"description":"Streaming is not supported"}},"required":["messages"]},"exampleInput":{"model":"llama-3.1-8b-instruct","messages":[{"role":"system","content":"You are a concise assistant."},{"role":"user","content":"Explain the x402 protocol in one sentence."}],"max_tokens":128,"temperature":0.7},"outputExample":{"id":"chatcmpl-0123456789abcdef01234567","object":"chat.completion","created":1767225600,"model":"llama-3.1-8b-instruct","choices":[{"index":0,"message":{"role":"assistant","content":"x402 lets a server answer HTTP 402 with a price so a client can pay in stablecoins and retry."},"finish_reason":"stop","logprobs":null}],"usage":{"prompt_tokens":32,"completion_tokens":24,"total_tokens":56}}},{"resource":"https://david-agent-services.david-works.workers.dev/v1/quick-answer","method":"GET","price":"$0.003","description":"Quick one-paragraph answer to a question from Llama 3.1 8B. GET ?q=your+question, pay per call in USDC on Base","tags":["inference","llm","question-answering","llama","llama-3.1-8b","quick-answer"],"inputSchema":{"type":"object","properties":{"q":{"type":"string","minLength":2,"maxLength":500,"description":"The question to answer (2-500 characters)"}},"required":["q"]},"exampleInput":{"q":"What is the x402 protocol?"},"outputExample":{"question":"What is the x402 protocol?","answer":"x402 is an open protocol that uses HTTP 402 Payment Required so clients can pay for API calls with stablecoins and retry.","model":"llama-3.1-8b-instruct","maxTokens":160}},{"resource":"https://david-agent-services.david-works.workers.dev/summarize","method":"POST","price":"$0.01","description":"Summarize up to ~20k characters of text into a concise summary plus key points.","tags":["summarization","nlp","text"],"inputSchema":{"type":"object","properties":{"text":{"type":"string","minLength":50,"maxLength":20000,"description":"Text to summarize"},"maxWords":{"type":"integer","minimum":30,"maximum":400,"default":120}},"required":["text"]},"exampleInput":{"text":"Long article text ...","maxWords":120},"outputExample":{"engine":"workers-ai","summary":"…","keyPoints":["…","…","…"]}},{"resource":"https://david-agent-services.david-works.workers.dev/research-brief","method":"POST","price":"$0.10","description":"Cited research brief on a topic, built from live Wikipedia and Hacker News sources.","tags":["research","web","citations","brief"],"inputSchema":{"type":"object","properties":{"topic":{"type":"string","minLength":2,"maxLength":200},"depth":{"type":"string","enum":["quick","standard"],"default":"standard"}},"required":["topic"]},"exampleInput":{"topic":"x402 payment protocol","depth":"standard"},"outputExample":{"engine":"workers-ai+wikipedia+hn","topic":"…","brief":"OVERVIEW … KEY FACTS … [1]","keyFacts":["… [1]"],"sources":[{"n":1,"title":"…","url":"https://en.wikipedia.org/wiki/…"}],"retrievedAt":"2026-01-01T00:00:00.000Z"}},{"resource":"https://david-agent-services.david-works.workers.dev/code-review","method":"POST","price":"$0.08","description":"Security + quality review of a code snippet (up to ~400 lines): static rules plus an LLM review with line-level fixes.","tags":["code-review","security","developer-tools","static-analysis"],"inputSchema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":24000},"language":{"type":"string","description":"Optional; auto-detected if omitted"},"focus":{"type":"string","maxLength":200,"description":"e.g. security, performance, readability"}},"required":["code"]},"exampleInput":{"code":"function f(q){ return db.query('SELECT * FROM u WHERE id=' + q) }","language":"javascript","focus":"security"},"outputExample":{"engine":"workers-ai+static","language":"javascript","riskLevel":"high","findings":[{"line":1,"severity":"high","rule":"sql-injection","message":"SQL built by string concatenation. Use parameterized queries."}],"review":"SUMMARY … ISSUES … SUGGESTIONS …"}}]}