# HydraTrader NLP Rewrite Endpoint

> HydraTrader NLP Rewrite Endpoint is a paid API for AI agents from x402.hydratrader.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Rewrites input text using pay-per-call NLP via the x402 micropayment protocol, with no API key required.

## Facts

- Endpoint: POST https://x402.hydratrader.ai/v1/rewrite?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hydratrader-nlp-rewrite-endpoint-1ee30321
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T2kt1ZRNc10a7KhwK0l8B

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 hydratrader-nlp-rewrite-endpoint-1ee30321 -d '<json body>'
```

Example prompt: Can you rewrite this paragraph to sound more professional and concise: 'We are doing a lot of work to make things better for our customers and we hope that they will like what we have done'?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call text rewriting without setting up an API key or subscription. Ideal for agents that need occasional text transformation at $0.01 per call using x402 USDC micropayments. Best when the task is clearly rewriting or paraphrasing and you want a simple REST call with no auth overhead.

## Known failure modes

- HTTP 402 if payment is not included or fails — requires valid x402 USDC micropayment
- Input text exceeds 8000 character limit — request rejected
- Malformed JSON body — returns 400 error
- Empty or missing input field — task cannot be performed
- Temporary service unavailability — may return 5xx errors

## How this service works

Rewrite text: Verb-path alias of POST /v1/cheap-errand ($0.01 USDC). Same handler + payment terms; path defaults task=rewrite when body.task omitted. Cheap agent glue for buyer-supplied text. Base via x402. No API key.

## Output

Returns rewritten or paraphrased text derived from the input, processed according to the rewrite task. The response reflects the transformed content with improved clarity, tone, or style as applicable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "task": {
   "enum": [
    "summarize",
    "rewrite",
    "classify",
    "extract_keywords",
    "sentiment",
    "translate"
   ],
   "type": "string"
  },
  "input": {
   "type": "string",
   "maxLength": 8000
  },
  "options": {
   "type": "object"
  },
  "client_ref": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hydratrader-nlp-rewrite-endpoint-1ee30321/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.hydratrader.ai](https://www.zero.xyz/host/x402.hydratrader.ai/llms.txt)
