# Delx Camel To Snake

> Delx Camel To Snake is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts camelCase or PascalCase identifiers to snake_case format, returning the converted text and its length.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/camel-to-snake
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-camel-to-snake-b3b420a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sdBiBAewClzn2NcIyhhWo

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 delx-camel-to-snake-b3b420a6 -d '<json body>'
```

Example prompt: Convert the camelCase identifier 'getUserProfileData' to snake_case so I can use it as a stable Python field name.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call utility to reliably convert camelCase or PascalCase identifiers to snake_case without setting up a local library or managing dependencies. Ideal for agent workflows that encounter JS-style field names from APIs and need to normalize them to Python or database conventions on the fly. Prefer over regex-based DIY solutions when you want a hosted, stateless, no-retention transformation.

## Known failure modes

- Empty or missing 'text' field returns an error
- Non-string input types may cause a validation error
- Payment failure (insufficient USDC balance) blocks the call via x402 protocol
- Numeric-only or already-snake_case input may return unchanged or unexpected output

## How this service works

Convert camelCase or PascalCase identifiers to snake_case. Call when you need stable Python/JSON field names from JS-style identifiers without a key. Returns snake_case text plus length for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the converted snake_case text (e.g. 'get_user_profile_data') along with the character length of the result. No data is retained server-side; the transformation is performed locally without external network calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 100000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "hello_world_api",
  "schema": "delx/util-camel-to-snake/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-camel-to-snake-b3b420a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
