{"uid":"cap_xS3RHDpkTQ6pVyRJd0dq0","slug":"primeapi-ai-code-converter-ab7fcdb4","name":"PrimeAPI 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://prime-api-seven.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_UimEmt7k8yNld5e1hduka","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 or format to another using AI","exampleAgentPrompt":"Can you convert this Python function to TypeScript for me: 'def add(a, b): return a + b'?","exampleUseCases":null,"resultDescription":"Returns an object containing the AI-converted code in the target language, along with any relevant notes or metadata about the conversion.","failureModes":["Ambiguous or missing source/target language results in generic or incorrect output","Unsupported language pair may return empty or error response","Complex or context-dependent code may be partially converted with loss of logic","Payment failure (402) if USDC balance is insufficient","Vague query string may return low-quality or hallucinated code"],"whenToPreferThis":"Use this endpoint when you need to quickly transpile or translate code snippets between programming languages without setting up API keys, paying per call in USDC on Base. Suitable for lightweight code conversion tasks embedded in agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:38:58.503Z","isFirstParty":false}