# Deterministic Text Transformation API

> Deterministic Text Transformation API is a paid API for AI agents from dtts-api-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Applies one of ten deterministic string transformations (case, slug, snake, camel, dedupe, etc.) to caller-supplied text and returns the result with SHA-256 hashes for verification.

## Facts

- Endpoint: GET https://dtts-api-production.up.railway.app/v1/text/transform
- 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/deterministic-text-transformation-api-0e85724c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UJZ2h5zLyjYexkBxMlIMY

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 deterministic-text-transformation-api-0e85724c
```

Example prompt: Convert the text 'Hello Autonomous Agent World' to slug format so I can use it as a URL path segment, and give me the SHA-256 hashes to verify the transformation.

## When to prefer this

Choose this endpoint when you need a fast, cheap, deterministic, and verifiable string transformation with cryptographic proof (SHA-256 hashes) that the output is authentic and unchanged in transit. Ideal for agents that must prove a transformation was applied correctly, generate URL-safe slugs, normalize identifiers, or standardize casing in automated pipelines where reproducibility and auditability matter. Prefer it over LLM-based reformatting when the operation must be exact, repeatable, and verifiable rather than approximate.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Missing required 'mode' query parameter returns an error
- Text exceeding 8192 UTF-8 characters is rejected
- Invalid mode value not in the allowed enum returns an error
- Empty string for text (minLength:1 violated) is rejected
- Payment failure (x402) if USDC payment is not provided or insufficient

## How this service works

Pay-per-call deterministic text transformation for autonomous agents.

## Output

A JSON object containing the transformed text string, the applied mode, a boolean indicating whether the output differs from the input, input and output character counts, SHA-256 hashes of both the input and output (for tamper-evident verification), a verified flag always set to true, and the service version string.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text",
      "mode"
     ],
     "properties": {
      "mode": {
       "enum": [
        "normalize_whitespace",
        "lower",
        "upper",
        "title",
        "slug",
        "snake",
        "kebab",
        "camel",
        "pascal",
        "dedupe_lines"
       ],
       "type": "string",
       "description": "Deterministic transformation to apply."
      },
      "text": {
       "type": "string",
       "maxLength": 8192,
       "minLength": 1,
       "description": "Caller-supplied text to transform (max 8KB UTF-8)."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "mode",
      "result",
      "changed",
      "input_characters",
      "output_characters",
      "input_sha256",
      "output_sha256",
      "service_version",
      "verified"
     ],
     "properties": {
      "mode": {
       "enum": [
        "normalize_whitespace",
        "lower",
        "upper",
        "title",
        "slug",
        "snake",
        "kebab",
        "camel",
        "pascal",
        "dedupe_lines"
       ],
       "type": "string"
      },
      "result": {
       "type": "string"
      },
      "changed": {
       "type": "boolean"
      },
      "verified": {
       "type": "boolean",
       "const": true
      },
      "input_sha256": {
       "type": "string",
       "pattern": "^[0-9a-f]{64}$"
      },
      "output_sha256": {
       "type": "string",
       "pattern": "^[0-9a-f]{64}$"
      },
      "service_version": {
       "type": "string",
       "const": "1.0.0"
      },
      "input_characters": {
       "type": "integer",
       "minimum": 0
      },
      "output_characters": {
       "type": "integer",
       "minimum": 0
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "slug",
  "result": "hello-autonomous-agent",
  "changed": true,
  "verified": true,
  "input_sha256": "6d14e8f3b32920bf6701c101b089667b43f107e6ae68cef64312f5cdcc281fd7",
  "output_sha256": "b0a05bda604f7c3a81d4c0e2cf68fe376e0222e868cdf26aee80221272e15bf6",
  "service_version": "1.0.0",
  "input_characters": 28,
  "output_characters": 22
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deterministic-text-transformation-api-0e85724c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dtts-api-production.up.railway.app](https://www.zero.xyz/host/dtts-api-production.up.railway.app/llms.txt)
