# Agent Format – Case Conversion

> Agent Format – Case Conversion is a paid API for AI agents from agent-format.annushka1190.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts text between different casing styles (e.g. camelCase, snake_case, kebab-case, UPPER_CASE) via a pay-per-request USDC endpoint

## Facts

- Endpoint: POST https://agent-format.annushka1190.workers.dev/v1/case
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-format-case-conversion-f4f84a10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kic5jcPJxb4Zn_T0I75XF

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 agent-format-case-conversion-f4f84a10 -d '<json body>'
```

Example prompt: Can you convert the string 'myVariableName' to snake_case using the Agent Format case conversion tool?

## When to prefer this

Choose this endpoint when an AI agent needs lightweight, no-auth, pay-per-call string case conversion without setting up API keys or accounts. Ideal for automation pipelines that occasionally need to reformat identifiers, variable names, or labels between coding conventions. Particularly useful when combined with other Agent Format utilities (base64, hex, slugify) in the same workflow.

## Known failure modes

- Missing or empty input string returns a validation error
- Unrecognized target case format may return an error or default behavior
- Network timeout if the Workers.dev endpoint is under load
- Payment failure (x402) if USDC balance is insufficient or x402 header is malformed

## How this service works

Encoding utilities for AI agents: base64 encode/decode, hex encode/decode, URL slugify, JWT header/payload decode (no signature verify), and case conversion. Pay-per-request USDC via x402. No API keys, no accounts.

## Output

Returns a JSON object with ok: true and the case-converted string output, reflecting the requested casing transformation applied to the input text.

## 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": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "const": "json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-format-case-conversion-f4f84a10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-format.annushka1190.workers.dev](https://www.zero.xyz/host/agent-format.annushka1190.workers.dev/llms.txt)
