{"uid":"cap_YLEzIKdd9YvO6RcHpK_xf","slug":"nexusapi-ai-code-converter-f922091d","name":"NexusAPI AI Code Converter","description":"Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.","url":"https://nexus-api-peach-nine.vercel.app/api/ai/code/convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query or input parameter"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.132056","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.132056/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.132056","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.132056","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UwlUo9uzAN3w3w_sCYTgb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.132056","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts code from one programming language to another using AI-powered translation","exampleAgentPrompt":"Can you convert this Python function to JavaScript for me: 'def add(a, b): return a + b'?","exampleUseCases":[{"title":"Migrate legacy codebase to modern language","prompt":"I've got some old Perl scripts managing our data pipelines but they're becoming a nightmare to maintain. Can you convert them all to Python so our current team can actually work with them?"},{"title":"Port algorithm across tech stacks","prompt":"We built this recursive sorting algorithm in C++ for performance reasons, but our new product uses Go exclusively. Can you translate it over so we can integrate it into our backend?"},{"title":"Enable cross-platform script compatibility","prompt":"Our DevOps team uses Bash scripts but we're moving to a Windows-heavy infrastructure. Can you help me convert these shell scripts to PowerShell so they'll actually run on our new servers?"}],"resultDescription":"Returns an object containing the AI-translated code in the target programming language, ready to use or review.","failureModes":["Unsupported language pair returns generic API response data with no converted code","Malformed or empty query string may return empty or unhelpful response","Ambiguous code snippet without clear language context may produce incorrect translation","Rate limiting or payment failure (402) if USDC payment not processed","Vague query not containing actual code may return irrelevant result"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call AI-powered code conversion without setting up API keys or managing subscriptions. Best suited for one-off code translation tasks across popular programming languages where the source code can be passed as a string query.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:47.813Z","isFirstParty":false}