{"uid":"cap__0CjH51goVutt3tLkdlem","slug":"omniapi-ai-code-generator-38f7edd6","name":"OmniAPI AI Code Generator","description":"444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.","url":"https://omni-api-cyan.vercel.app/api/ai/code/generate","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"input":{"type":"string","description":"Input data for the endpoint"},"query":{"type":"string","description":"Search query or input text"},"params":{"type":"object","description":"Additional parameters"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.088835","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.088835/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.088835","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.088835","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kc5FbOXHFD2Q5v1OCxdgN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.088835","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates code snippets or complete code solutions from a natural language query using AI, paid per call via USDC x402","exampleAgentPrompt":"Can you generate a Python function that reads a CSV file and returns a list of dictionaries, one per row?","exampleUseCases":[{"title":"Boilerplate API client generation","prompt":"Write me a JavaScript fetch wrapper that handles GET and POST requests with JSON headers and basic error handling."},{"title":"Automation script from description","prompt":"Generate a Bash script that watches a directory for new files and automatically moves them to a subfolder based on their file extension."},{"title":"Data transformation utility","prompt":"Write a Python function that takes a list of user objects with firstName and lastName fields and returns a sorted list of full names as strings."}],"resultDescription":"Returns an object containing AI-generated code based on the provided query. The response typically includes the generated code as a string, potentially with explanations or metadata, though the schema is generic and the exact fields may vary.","failureModes":["Missing required 'query' field returns a 400-level error","Insufficient USDC balance or failed x402 payment returns a 402 Payment Required","Ambiguous or overly vague query may produce low-quality or incorrect code","Service unavailability on Vercel hosting returns 503","Rate limits or quota exhaustion may return 429"],"whenToPreferThis":"Choose this endpoint when you need quick, pay-per-call AI code generation without committing to a subscription-based service. It is suitable for agents that infrequently need code generation and want to pay micro-amounts in USDC via x402. Avoid if you need guaranteed output format consistency or complex multi-file project generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:55:23.243Z","isFirstParty":false}