{"uid":"cap_xv-U7cLWNtYgADckmon3T","slug":"delx-mime-from-ext-cc696d76","name":"Delx MIME From Ext","description":"Guess MIME type from file extension. Call when you set Content-Type hints for agent uploads. Returns mime, ext, known 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.","url":"https://api.delx.ai/api/v1/x402/mime-from-ext","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ext":{"type":"string","description":"Input field: ext."}}},"responseSchema":{"type":"json","example":{"ext":"png","mime":"image/png","known":true,"schema":"delx/util-mime-from-ext/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xCYVwa5Ml0yQ9f-nJD5is","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Guesses the MIME type for a given file extension using a local JSON lookup, returning mime type, extension, and a known flag.","exampleAgentPrompt":"What MIME type should I use for a .webp file when setting the Content-Type header for an upload?","exampleUseCases":[{"title":"Set Content-Type for file upload","prompt":"I'm uploading a .xlsx file to an API — what Content-Type header value should I set?"},{"title":"Validate extension before serving file","prompt":"Before I serve this .mp3 file to the browser, can you tell me the correct MIME type so I can set the right response header?"},{"title":"Check if extension is a recognized type","prompt":"Is .avif a known file extension with a defined MIME type, and if so what is it?"}],"resultDescription":"Returns a JSON object with three fields: mime (the resolved MIME type string, e.g. 'image/png'), ext (the normalized extension), and known (a boolean indicating whether the extension is recognized in the local lookup table).","failureModes":["Unknown or obscure extension returns known=false with a generic or null mime value","Missing ext field in request body causes a validation error","Misspelled or malformed extension (e.g. including a leading dot unexpectedly) may return unknown result","Payment failure via x402 protocol prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a fast, offline-safe, no-auth MIME type lookup for common file extensions at minimal cost ($0.001 USDC). Prefer it over network-based detection when you only have the extension (not the file bytes), or when you need a deterministic advisory hint for setting Content-Type headers before uploads. Not suitable when you need byte-level magic-number detection or must handle hundreds of obscure custom MIME types.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:51.929Z","isFirstParty":false}