# Delx Commerce — MIME Type to File Extension Converter

> Delx Commerce — MIME Type to File Extension Converter is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Converts a MIME type string to its canonical file extension and metadata

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/ext-from-mime?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-mime-type-to-file-extension-converter-bdf8498e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ty0gZ2SVi4FS6x_MJAL5c

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-commerce-mime-type-to-file-extension-converter-bdf8498e -d '<json body>'
```

Example prompt: What file extension should I use for the MIME type image/png?

## When to prefer this

Use this endpoint when you need a fast, deterministic lookup of the canonical file extension for a given MIME type — especially in download handling, file storage naming, or media pipeline workflows. Prefer this over regex-based custom mappings or client-side heuristics when you need a reliable, maintained reference. At $0.001 per call with no signup required, it's ideal for agent workflows that encounter arbitrary content types at runtime.

## Known failure modes

- Unknown or non-standard MIME type returns known:false with a best-guess or empty extension
- Malformed MIME type string may return an error or unknown result
- Missing 'mime' input field causes a validation error
- Extremely obscure vendor MIME types (e.g. application/vnd.x.custom) may not be in the lookup table

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the canonical file extension (e.g. 'png'), the original MIME type echoed back (e.g. 'image/png'), a boolean 'known' flag indicating whether the MIME type is recognized, and a schema identifier string ('delx/util-ext-from-mime/v1').

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ext": "png",
  "mime": "image/png",
  "known": true,
  "schema": "delx/util-ext-from-mime/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-mime-type-to-file-extension-converter-bdf8498e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
