# Delx Ends With

> Delx Ends With is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Checks whether a given text string ends with a specified suffix, returning a boolean result and the matched suffix.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/ends-with
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-ends-with-fdba2b02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vR18VpwhcYiqb11WPSyTA

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 delx-ends-with-fdba2b02 -d '<json body>'
```

Example prompt: Check whether the filename 'report_final.pdf' ends with the suffix '.pdf' and tell me if it's valid.

## When to prefer this

Prefer this endpoint when you need a lightweight, stateless string-suffix check with no dependencies, no API keys, and predictable $0.001 flat pricing — ideal for agent pipelines that need to validate file extensions, content-type suffixes, or URL patterns without shipping custom string logic or spinning up a compute environment.

## Known failure modes

- Missing 'text' or 'suffix' field returns a validation error
- Empty string inputs may return unexpected boolean results
- Payment failure (insufficient USDC balance) blocks the call
- Very long strings may time out or hit payload limits

## How this service works

Check whether text ends with a suffix. Call when you validate file extensions or content-type suffixes. Returns boolean result and suffix for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a boolean indicating whether the text ends with the given suffix, along with the suffix that was tested. The response is a local JSON result with no external network calls or data retention.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  },
  "suffix": {
   "type": "string",
   "description": "Input field: suffix."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": true,
  "schema": "delx/util-ends-with/v1",
  "suffix": ".json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-ends-with-fdba2b02/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
