# 24K Labs Case Converter API

> 24K Labs Case Converter API is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts text to any of eight common casing formats including upper, lower, title, sentence, snake_case, camelCase, kebab-case, and CONSTANT_CASE.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/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/24k-labs-case-converter-api-ea52582a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UzjCHMqAf1hVktN9_LT65

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 24k-labs-case-converter-api-ea52582a -d '<json body>'
```

Example prompt: Convert 'hello world from the api' to camelCase for me.

## When to prefer this

Use this endpoint when you need a reliable, programmatic way to reformat text or identifiers across any of the eight common casing conventions, especially in automated pipelines for code generation, API design, or content normalization — avoiding the need to implement custom regex or string manipulation logic.

## Known failure modes

- Unsupported case format specified returns an error
- Empty input text returns an error or empty string
- Very long input strings may be truncated or rejected
- Non-ASCII or Unicode characters may produce unexpected casing behavior

## How this service works

Convert text between upper, lower, title, sentence, snake_case, camelCase, kebab-case, CONSTANT.

## Output

Returns the input text transformed into the requested casing format (e.g. camelCase, snake_case, kebab-case, CONSTANT_CASE, title case, sentence case, uppercase, or lowercase).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-case-converter-api-ea52582a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
