# CSV Schema Infer Lite

> CSV Schema Infer Lite 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-15).

Infers column names and data type hints from a CSV text sample, returning a deterministic JSON schema report.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/csv-schema-infer
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-schema-infer-lite-43a83dc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j5wf9whkBM4qzBS2ZN6SI

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 csv-schema-infer-lite-43a83dc5 -d '<json body>'
```

Example prompt: Can you infer the column names and data types from this CSV text before I load it into a table: 'id,name,age,salary\n1,Alice,30,75000\n2,Bob,25,62000'?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001 USDC), serverless schema preview of CSV text before loading it into a database or pipeline — no API key required, no storage, no external dependencies. Prefer it over full ETL tools when you only need column names and dtype hints from a sample, not full data loading or transformation.

## Known failure modes

- Malformed or empty CSV input returns an error or empty schema
- CSV with no header row may produce incorrect or unnamed column inferences
- Very short samples with one row may yield ambiguous dtype inference
- Non-standard delimiters or encodings may cause parsing failures
- Extremely large CSV text payloads may be rejected or truncated

## How this service works

Infer column names and sample dtypes from CSV text. Call when quick schema report before loading tables. Returns columns with dtype hints as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

A deterministic JSON object listing each column name found in the CSV along with inferred data type hints (e.g. integer, float, string, date), derived purely from the provided CSV text sample using local computation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "description": "CSV text sample"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-csv-schema-infer/v1",
  "columns": [
   {
    "name": "a",
    "dtype_hint": "number"
   },
   {
    "name": "b",
    "dtype_hint": "string"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-schema-infer-lite-43a83dc5/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)
