Delx Ensure Prefix 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).
Ensures a string starts with a required prefix, adding it if missing without duplicating it if already present
Ensure a string starts with a required prefix without duplication — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that alrea…
Returns a deterministic JSON object containing the resulting string that is guaranteed to start with the specified prefix exactly once, regardless of whether the original input already had it or not.
POSThttps://api.delx.ai/api/v1/x402/ensure-prefixChoose this endpoint when you need a stateless, deterministic, idempotent micro-utility to normalize string prefixes in an agent pipeline without writing inline logic. It is ideal for preflight sanitization of URLs, file paths, namespaced IDs, or tagged strings where you must guarantee exactly-once prefix presence. Prefer it over custom code when you want a machine-readable JSON result for $0.001 USDC with no side effects, no data retention, and no external dependencies.
| Field | Type | Description |
|---|---|---|
| text | string | Input field: text. |
| prefix | string | Input field: prefix. |
{
"type": "json",
"example": {
"text": "https://api.delx.ai",
"prefix": "https://",
"schema": "delx/util-ensure-prefix/v1",
"already_present": false
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"