{"uid":"cap_TBMdNyDrCO8MOdNt78dBw","slug":"myworker-agent-api-ai-text-processing-json-cb8faa3a","name":"Myworker Agent API – AI Text Processing (JSON)","description":"Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.","url":"https://crypto-micro-agent.mykira.workers.dev/api/agent/json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","example":{"text":"teks contoh"},"required":["text"],"properties":{"text":{"type":"string","description":"Teks input"},"skema":{"type":"string","description":"Bentuk JSON yang dikehendaki"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"hasil":"Teks hasil daripada model AI…","servis":"json"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-6SctcdAl0OdJt_PR-URA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Processes a text input using Workers AI and returns a structured JSON result, optionally shaped by a user-supplied JSON schema, for $0.005 USDC per call via x402.","exampleAgentPrompt":"Run this text through the Workers AI model and give me the result as JSON: 'Summarize the key risks of investing in Solana tokens' — use the schema {summary: string, riskLevel: string}.","exampleUseCases":[{"title":"AI summarization with structured output","prompt":"Take this paragraph and summarize it using the AI service, then return the result as JSON with fields 'summary' and 'sentiment': 'Cloudflare Workers AI enables serverless AI inference at the edge with low latency.'"},{"title":"Crypto topic Q&A via paid AI endpoint","prompt":"Ask the AI: 'What is the current utility of the Jupiter aggregator on Solana?' and return the answer as structured JSON with a 'answer' field."},{"title":"Custom schema AI extraction","prompt":"Process this text — 'The price of SOL rose 12% today amid high trading volume' — with the AI and return JSON matching this schema: {asset: string, changePercent: number, observation: string}."}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating success, a 'hasil' field containing the AI-generated text or structured result, and a 'servis' field confirming the service type ('json').","failureModes":["Payment not received or insufficient USDC/SOL — returns HTTP 402 Payment Required","Missing required 'text' field in queryParams — returns validation error","Invalid or malformed 'skema' JSON schema — may return unstructured result or error","Model timeout or Workers AI unavailability — returns error response","Unsupported HTTP method (only GET/HEAD/DELETE accepted) — returns 405"],"whenToPreferThis":"Choose this endpoint when you need a low-cost ($0.005/call), pay-per-use AI text processing service that returns structured JSON, and you are already operating in the Solana/Base ecosystem and can pay via USDC or SOL using the x402 protocol. It is especially useful for agents that need AI inference without a subscription and want to control output shape via a custom JSON schema.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T18:39:04.420Z","isFirstParty":false,"canonicalSlug":"myworker-agent-api-ai-text-processing-json-cb8faa3a"}