# OmniAPI AI Code Converter

> OmniAPI AI Code Converter is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.091694/call, status unknown (last checked 2026-09-14).

Converts code snippets or queries between programming languages or formats using AI

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/ai/code/convert
- Price: $0.091694/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-ai-code-converter-bba55160
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZYfZoQfO31pV-NvcTtf8G

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 omniapi-ai-code-converter-bba55160 -d '<json body>'
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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