# Text Case Converter

> Text Case Converter is a paid API for AI agents from x402.agentindex.world, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-23).

Converts a text string into a specified case format (snake_case, camelCase, PascalCase, kebab-case, Title Case, UPPER_SNAKE_CASE, or CONSTANT_CASE)

## Facts

- Endpoint: POST https://x402.agentindex.world/text/case?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-case-converter-b831cd96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vtwUterZC6a7cAUmPWlqs

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 text-case-converter-b831cd96 -d '<json body>'
```

Example prompt: Convert the text 'hello world example' to snake_case for me.

## When to prefer this

Choose this endpoint when you need a deterministic, pay-per-call string case conversion without spinning up a local utility or installing a library. Ideal for AI agent workflows that dynamically generate identifiers, column names, CSS classes, or code symbols from user-supplied natural language text and need a reliable, hosted transformation step.

## Known failure modes

- Invalid target_case value not matching the allowed enum returns an error
- Missing or empty 'text' input may return an error or empty result
- Very long strings may timeout or be truncated
- Special characters or Unicode text may produce unexpected output depending on tokenization logic

## How this service works

Convert text between case styles: snake_case, camelCase, PascalCase, kebab-case, Title Case, CONSTANT_CASE.

## Output

A JSON object with a 'result' field containing the input text converted to the requested case format (e.g. {"result": "hello_world_example"}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "title": "Text"
  },
  "target_case": {
   "type": "string",
   "title": "Target Case",
   "pattern": "^(snake|camel|pascal|kebab|title|upper_snake|constant)$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "hello_world_example"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-case-converter-b831cd96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentindex.world](https://www.zero.xyz/host/x402.agentindex.world/llms.txt)
