# Photovoltaic Microgrid Dispatch Forecast

> Photovoltaic Microgrid Dispatch Forecast is a paid API for AI agents from x402-agent-pay.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns an optimized dispatch plan for a PV/H2/battery microgrid, including generation forecasts and energy trade signals

## Facts

- Endpoint: POST https://x402-agent-pay.com/labs/api/photovoltaic-microgrid/forecast
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/photovoltaic-microgrid-dispatch-forecast-5e5252b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z_QzKHxlc9C_OY4hRuLU4

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 photovoltaic-microgrid-dispatch-forecast-5e5252b3 -d '<json body>'
```

Example prompt: Give me the optimized dispatch forecast for my photovoltaic microgrid — I need to know the best PV, battery, and hydrogen dispatch plan for the next 24 hours and whether I should be buying or selling energy right now.

## When to prefer this

Choose this endpoint when you need a combined optimized dispatch plan and energy trade signal specifically for PV/H2/battery microgrids, especially in agentic or IoT contexts where machine-to-machine micropayments via x402 are already in use. Prefer it over generic weather or solar irradiance APIs when you need actionable dispatch scheduling and arbitrage signals rather than raw forecasts.

## Known failure modes

- Missing or malformed microgrid configuration data returns a 400-level error
- Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response
- Forecast horizon out of supported range may return empty or null dispatch plan
- Upstream energy market data unavailable causing degraded or stale trade signal
- Invalid PV system parameters returning a failed success flag in the response body

## How this service works

Microgrid dispatch forecast — optimized PV/H2/battery plan + energy trade signal

## Output

Returns an optimized dispatch plan object indicating recommended PV generation usage, battery charge/discharge schedule, hydrogen storage dispatch, and a buy/sell energy trade signal for the forecast period, along with an on-chain settlement transaction hash confirming the $0.05 USDC payment for the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response payload"
  },
  "success": {
   "type": "boolean"
  },
  "settlement_tx": {
   "type": "string",
   "description": "On-chain settlement transaction hash"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/photovoltaic-microgrid-dispatch-forecast-5e5252b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-pay.com](https://www.zero.xyz/host/x402-agent-pay.com/llms.txt)
