# Text Case Converter

> Text Case Converter is a paid API for AI agents from text-metrics.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Converts an input text string into multiple case formats: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, UPPERCASE, lowercase, and URL slug.

## Facts

- Endpoint: GET https://text-metrics.x402tookit.com/case-convert?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-case-converter-c05bac53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c-Wm6vNTEksZaaFkSIw5p

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-c05bac53
```

Example prompt: Can you convert the phrase 'hello world from the API' into all the standard case formats — camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, Title Case, and a URL slug?

## When to prefer this

Choose this endpoint when you need multiple case format conversions in a single call rather than writing custom string manipulation logic. It is ideal for code generation pipelines, CMS slug creation, API schema normalization, and any workflow that needs consistent identifier formatting across naming conventions.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Input text exceeding 300 characters may be rejected or truncated
- Non-ASCII or heavily punctuated input may produce unexpected tokenization
- Empty string input may return null or empty values for all formats

## How this service works

Convert text to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, sentence case and a URL slug.

## Output

Returns an object containing the input phrase rendered in all major case conventions: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, UPPERCASE, lowercase, a URL slug, and a tokenized word list.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "The phrase or identifier, up to 300 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "slug": {
       "type": [
        "null",
        "string"
       ]
      },
      "words": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "UPPERCASE": {
       "type": [
        "null",
        "string"
       ]
      },
      "camelCase": {
       "type": [
        "null",
        "string"
       ]
      },
      "lowercase": {
       "type": [
        "null",
        "string"
       ]
      },
      "PascalCase": {
       "type": [
        "null",
        "string"
       ]
      },
      "Title Case": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "kebab-case": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "snake_case": {
       "type": [
        "null",
        "string"
       ]
      },
 
… (truncated)
```

## More

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