{"uid":"cap_ZYfZoQfO31pV-NvcTtf8G","slug":"omniapi-ai-code-converter-bba55160","name":"OmniAPI AI Code Converter","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/convert","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.091694","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.091694/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.091694","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.091694","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QUxBU16QOUsQNAMwuldvt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.091694","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts code snippets or queries between programming languages or formats using AI","exampleAgentPrompt":"Can you convert this Python function to JavaScript for me? Here's the code: `def add(a, b): return a + b`","exampleUseCases":[{"title":"Python to JavaScript function conversion","prompt":"Take this Python function and convert it to JavaScript: `def calculate_tax(price, rate): return price * rate`"},{"title":"SQL query to Python pandas translation","prompt":"Convert this SQL query into Python pandas code: `SELECT name, age FROM users WHERE age > 30 ORDER BY age DESC`"},{"title":"Bash script to PowerShell migration","prompt":"I need to rewrite this bash script in PowerShell so it works on Windows: `#!/bin/bash\\nfor f in *.txt; do echo $f; done`"}],"resultDescription":"Returns an API response object containing the AI-converted code in the target language or format, based on the provided input code and query describing the desired conversion.","failureModes":["Missing required 'query' field returns validation error","Ambiguous conversion target language may produce incorrect output","Very long or complex code snippets may exceed processing limits","Unsupported or obscure programming languages may yield poor results","Network or upstream AI provider errors may cause 500-level responses"],"whenToPreferThis":"Use this endpoint when you need quick, pay-per-call AI-powered code conversion without setting up your own LLM infrastructure. Suitable for agents that occasionally need to translate code between languages and want to pay per use in USDC via x402 rather than maintaining API keys for OpenAI or similar services.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:35:18.456Z","isFirstParty":false}