Free APIs in Rust. 0.6 ms.

No API key. No payment. No signup. Five endpoints and an MCP server written in Rust, running next to our x402 APIs — same company, different engine.

100% freeno authRust + axumMCP 2025-06-18

Measured, not claimed

Rust service (internal)0.6 ms
Rust service (public, via Cloudflare)147 ms
Next.js endpoint (public, same point)260 ms
Binary size7.6 MB

Medians over real requests from the same network vantage point, 11 Nov 2026.

GET/v1/health

Status, version and uptime.

curl https://rust.mazzagrp.com/v1/health
{"ok":true,"service":"mazza-rust","version":"0.1.0","uptime_s":38,"engine":"rust/axum"}
POST/v1/tokens

Exact GPT token count with tiktoken BPE — not an estimate. model: gpt-4o/o3/o4 use o200k_base, anything else cl100k_base.

curl -X POST https://rust.mazzagrp.com/v1/tokens \
  -H 'Content-Type: application/json' \
  -d '{"text":"Mazza Group builds custom AI workflows.","model":"gpt-4o"}'
{"tokens":8,"encoding":"o200k_base","method":"tiktoken_bpe","chars":39,"words":6,"bytes":39}
POST/v1/hash

SHA-256 of a text.

curl -X POST https://rust.mazzagrp.com/v1/hash \
  -H 'Content-Type: application/json' -d '{"text":"hello"}'
{"sha256":"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824","bytes":5,"chars":5}
POST/v1/extract

Emails, URLs, phone numbers and hashtags from any text.

curl -X POST https://rust.mazzagrp.com/v1/extract \
  -H 'Content-Type: application/json' \
  -d '{"text":"Scrivi a [email protected], tel +971 50 123 4567 #AI"}'
{"emails":["[email protected]"],"urls":[],"phones":["+971 50 123 4567"],"hashtags":["#AI"],"counts":{"emails":1,"urls":0,"phones":1,"hashtags":1}}
GET/v1/uuid?n=10

1 to 1000 UUID v4.

curl "https://rust.mazzagrp.com/v1/uuid?n=2"
{"count":2,"uuids":["4bedaca9-a56e-452a-ae4f-18c12a8da6bc","0f44f5e6-e116-4f17-8370-9f5206507305"]}

MCP server

Same five tools over the Model Context Protocol (JSON-RPC 2.0, protocol 2025-06-18, streamable HTTP). Point any MCP client at it — no authentication.

Server URL
https://rust.mazzagrp.com/mcp
tokenshashextractuuidhealth
curl -X POST https://rust.mazzagrp.com/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Need AI output, not just utilities?

See the 23 x402 AI APIs →