# Wavelength-to-Energy Converter (x402.forgemesh.io)

> Wavelength-to-Energy Converter (x402.forgemesh.io) is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts electromagnetic wavelength (nm) or frequency (Hz) to photon energy in joules and electron-volts using exact physical constants

## Facts

- Endpoint: POST https://x402.forgemesh.io/wavelength-to-energy
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wavelength-to-energy-converter-x402-forgemesh-io-9d72a8a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6pAmafXNdwLS6XKDkqXy_

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 wavelength-to-energy-converter-x402-forgemesh-io-9d72a8a3 -d '<json body>'
```

Example prompt: What's the photon energy in joules and electron-volts for a 532 nm green laser wavelength?

## When to prefer this

Choose this endpoint when an agent needs a precise, physics-constant-based conversion between electromagnetic wavelength or frequency and photon energy in SI units (joules) and electron-volts, particularly for spectroscopy analysis, laser optics design, or astronomy workflows dealing with light-frequency data. Prefer over a general math API because this uses exact physical constants and returns both joule and eV representations in one call.

## Known failure modes

- Missing both wavelength_nm and frequency_hz — endpoint requires at least one input
- Invalid non-numeric string for wavelength or frequency — returns parse error
- Wavelength of zero or negative value — physically undefined, likely returns error
- Extremely large or small values outside practical physical range may produce unexpected results
- Payment failure via x402 protocol — call rejected before computation

## How this service works

Converts electromagnetic wavelength in nanometers to photon energy in joules and electron-volts, and back, using exact physical constants for the speed of light and Planck's constant. For spectroscopy analysis, optics design, and astronomy agents working with light-frequency data.

## Output

Returns the photon energy corresponding to the given wavelength or frequency, expressed in both joules and electron-volts, computed using exact values of Planck's constant and the speed of light.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "frequency_hz": {
   "type": "string"
  },
  "wavelength_nm": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "frequency_hz": 599584916000000,
  "photon_energy_ev": 2.479685
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wavelength-to-energy-converter-x402-forgemesh-io-9d72a8a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
