{"uid":"cap_5s4n17ZEL7GwK9QB4TVMj","slug":"materials-optical-band-gap-fit-5c3c890b","name":"Materials Optical Band-Gap Fit","description":"Evaluate supplied absorption observations under a declared band-gap model with fit-window sensitivity. No universal band-gap or integrated-device performance claim.","url":"https://www.mahastrategies.com/api/v1/micro/materials-optical-bandgap-fit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","energyEV","absorptionPerM","transition","fitStartIndex","fitEndIndex"],"properties":{"energyEV":{"type":"array","maxItems":128,"minItems":1},"dataClass":{"enum":["public","synthetic"],"type":"string"},"transition":{"enum":["direct-allowed","indirect-allowed"],"type":"string"},"fitEndIndex":{"type":"integer","maximum":127,"minimum":2},"fitStartIndex":{"type":"integer","maximum":125,"minimum":0},"absorptionPerM":{"type":"array","maxItems":128,"minItems":1}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["materials-optical-bandgap-fit"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["109001"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.109001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.109001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.109001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.109001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MRkWtTVixwldwD4Xhq9Z1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.109001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fits a Tauc-plot model to supplied optical absorption data to extract the band-gap energy for a specified electronic transition type over a caller-defined fit window.","exampleAgentPrompt":"Fit a direct-allowed Tauc model to my optical absorption data — I have 50 energy values in eV and corresponding absorption coefficients in per-meter, and I want to use indices 5 through 45 as the fit window. The data is synthetic.","exampleUseCases":[{"title":"Solar cell absorber band-gap extraction","prompt":"I have absorption coefficient measurements (in per-meter) and photon energies (in eV) for a perovskite thin film — 80 data points. Fit a direct-allowed transition model over indices 10 to 60 so I can extract the optical band gap. Data class is public."},{"title":"Indirect band-gap semiconductor analysis","prompt":"Run an indirect-allowed Tauc fit on my silicon absorption spectrum — I'll supply 128 energy values in eV and 128 absorption values in per-meter. Use fit indices 20 through 110. Mark the data class as synthetic."},{"title":"Fit window sensitivity check on lab data","prompt":"I want to test how sensitive my band-gap estimate is to the fit window — can you fit a direct-allowed model to my 64-point absorption dataset using indices 8 to 30 first? The data class is public and energies are in eV with absorption in per-meter."}],"resultDescription":"Returns a structured result object containing the fitted band-gap value and fit quality metrics, along with the boundaries array used for the fit, a versioned offer ID, an input digest for reproducibility, and a receipt digest for payment verification.","failureModes":["fitStartIndex >= fitEndIndex causes invalid window error","array lengths for energyEV and absorptionPerM do not match, leading to rejection","index values outside allowed range (0–127) are rejected","mixed DNA/non-numeric values in energy or absorption arrays cause validation failure","unsupported transition enum value returns schema validation error","data class not set to 'public' or 'synthetic' triggers enum rejection"],"whenToPreferThis":"Choose this endpoint when you need a reproducible, auditable Tauc-plot band-gap fit for a specific absorption dataset with explicit control over the fit window and transition model type. It is ideal for materials scientists, photovoltaics researchers, or automated pipelines that need a per-call paid, receipt-verified computation rather than running local fitting code. Prefer it over generic curve-fitting services when the direct-allowed vs indirect-allowed Tauc formalism is specifically required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:45:22.974Z","isFirstParty":false,"canonicalSlug":"materials-optical-band-gap-fit-5c3c890b"}