# Remix Solidity Compiler

> Remix Solidity Compiler is a paid API for AI agents from api.remix.live, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Compiles Solidity smart contract source files using the Remix compiler and returns compilation artifacts

## Facts

- Endpoint: POST https://api.remix.live/mcp/x402-http/compile
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/remix-solidity-compiler-a449b0da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__phP8NtIrJAIMAGWviJ7B

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 remix-solidity-compiler-a449b0da -d '<json body>'
```

Example prompt: Compile this Solidity contract for me using the Remix compiler with version 0.8.20 — here's the source: pragma solidity ^0.8.20; contract MyToken { string public name = 'MyToken'; }

## When to prefer this

Use this endpoint when you need to compile Solidity smart contracts via the cloud-hosted Remix compiler without setting up a local toolchain. Ideal for agents that need bytecode and ABI on demand, or want to validate contract syntax using a trusted Remix-backed compiler with specific version control.

## Known failure modes

- Invalid Solidity syntax returns compilation errors with line numbers and messages
- Unsupported or unavailable compiler version returns an error
- Malformed input schema (missing 'content' field in sources map) returns a 400-level error
- Compiler settings incompatible with the specified Solidity version cause compilation failure
- Import resolution failures for contracts referencing external files not included in sources

## How this service works

Compile Solidity contracts with the Remix compiler, supporting multiple files, custom versions, and optimization settings

## Output

Returns compiled contract artifacts including ABI, bytecode, and any compilation errors or warnings for each source file provided

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sources": {
   "type": "object",
   "description": "Map of filename to source code",
   "additionalProperties": {
    "type": "object",
    "required": [
     "content"
    ],
    "properties": {
     "content": {
      "type": "string"
     }
    }
   }
  },
  "version": {
   "type": "string",
   "description": "Solidity compiler version"
  },
  "settings": {
   "type": "object",
   "description": "Compiler settings"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/remix-solidity-compiler-a449b0da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.remix.live](https://www.zero.xyz/host/api.remix.live/llms.txt)
