# Delx Commerce Case Convert API

> Delx Commerce Case Convert API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Converts a text string into a specified naming case format (snake_case, camelCase, PascalCase, kebab-case, etc.)

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/case-convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-case-convert-api-43e2ef16
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fk4DnXe-8lSfT-9CJ7fTC

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-commerce-case-convert-api-43e2ef16 -d '<json body>'
```

Example prompt: Convert the text 'hello world API' to camelCase for me.

## When to prefer this

Choose this endpoint when an AI agent needs a lightweight, pay-per-use, no-signup text case conversion with verifiable on-chain payment via USDC on Base or Solana. Ideal for agents that dynamically generate identifiers, variable names, or field names and need reliable, schema-versioned output without managing API keys or subscriptions.

## Known failure modes

- Text exceeds 4000 character limit — request rejected
- Invalid or unsupported case enum value — validation error
- Empty string input — rejected due to minLength:1 constraint
- Payment failure via x402 protocol — 402 response with no conversion performed

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the original input text, the requested case format label, the tokenized list of individual words, and the final converted result string. Schema is versioned as 'delx/case-convert/v1'.

## 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-commerce-case-convert-api-43e2ef16/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
