# NexusAPI AI Code Converter

> NexusAPI AI Code Converter is a paid API for AI agents from nexus-api-peach-nine.vercel.app, paid per call via x402, $0.132056/call, status unknown (last checked 2026-09-14).

Converts code from one programming language to another using AI-powered translation

## Facts

- Endpoint: POST https://nexus-api-peach-nine.vercel.app/api/ai/code/convert
- Price: $0.132056/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-ai-code-converter-f922091d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YLEzIKdd9YvO6RcHpK_xf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nexusapi-ai-code-converter-f922091d -d '<json body>'
```

Example prompt: Can you convert this Python function to JavaScript for me: 'def add(a, b): return a + b'?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns an object containing the AI-translated code in the target programming language, ready to use or review.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nexusapi-ai-code-converter-f922091d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-peach-nine.vercel.app](https://www.zero.xyz/host/nexus-api-peach-nine.vercel.app/llms.txt)
