# Delx Case Convert

> Delx Case Convert 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-13).

Converts a text string between common programming case formats such as snake_case, kebab-case, camelCase, and PascalCase.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/case-convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-case-convert-b65ad64b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5aRk9wL8fdXSLVWkE7rHz

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-case-convert-b65ad64b -d '<json body>'
```

Example prompt: Can you convert the string 'getUserProfileData' from camelCase to snake_case for me?

## When to prefer this

Use this endpoint when an agent needs a reliable, pay-per-use text case conversion without standing up local string utilities — ideal for pipelines that generate identifiers, field names, or slugs and need them in a specific format for code generation, database schemas, or API normalization tasks.

## Known failure modes

- Invalid or unsupported target case format returns an error
- Empty or null input string returns a validation error
- Payment not included or insufficient USDC balance results in 402 payment required
- Malformed request body returns a 400 bad request

## How this service works

Turn mixed human or machine text into production-ready snake_case, kebab-case, camelCase, PascalCase, CONSTANT_CASE, title, lower, or upper text for $0.001 USDC. The deterministic first-party transform runs locally, accepts up to 4,000 characters, returns structured JSON, uses no upstream API, and retains no input.

## Output

Returns the input text reformatted in the requested case convention (e.g. snake_case, kebab-case, camelCase, PascalCase), along with metadata about the conversion performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "case": {
   "enum": [
    "snake",
    "kebab",
    "camel",
    "pascal",
    "constant",
    "title",
    "lower",
    "upper"
   ],
   "type": "string",
   "default": "snake"
  },
  "text": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "case": "camel",
  "input": "Hello world API",
  "words": [
   "hello",
   "world",
   "api"
  ],
  "result": "helloWorldApi",
  "schema": "delx/case-convert/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-case-convert-b65ad64b/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)
