# 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 strings between multiple case formats including upper, lower, title, sentence, snake_case, camelCase, kebab-case, and CONSTANT_CASE.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/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-9ad94c4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WiRNKIFU0i2xXdNIfA8Bl

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-9ad94c4c -d '<json body>'
```

Example prompt: Can you convert 'hello world from my app' to camelCase?

## When to prefer this

Use this endpoint when an agent needs to programmatically reformat text identifiers or display strings into a specific casing convention — especially for code generation, database schema work, API field normalization, or UI content formatting. Prefer this over manual string manipulation when multiple target formats are needed or when the source format is unknown.

## Known failure modes

- Missing or empty input text returns an error
- Unsupported case format name returns an error
- Very long strings may be truncated or rejected
- Non-ASCII or special characters may produce unexpected results in some case formats

## How this service works

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

## Output

Returns the input text converted into the specified case format (e.g. camelCase, snake_case, kebab-case, UPPER, lower, Title Case, Sentence case, or CONSTANT_CASE) as a string.

## 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-9ad94c4c/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)
