All routes are protected by x402. Mainnet routes live at the root path.
Testnet mirrors weather under /testnet. AI services are mainnet only.
Current weather conditions for a latitude and longitude.
curl "https://xlm402.com/weather/current?latitude=51.5072&longitude=-0.1276&timezone=auto"
Current weather conditions for a latitude and longitude.
curl "https://xlm402.com/weather/current?latitude=51.5072&longitude=-0.1276&timezone=auto"
Forecast weather data with optional daily and hourly field selection.
curl "https://xlm402.com/weather/forecast?latitude=51.5072&longitude=-0.1276&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&forecast_days=5&timezone=auto"
Forecast weather data with optional daily and hourly field selection.
curl "https://xlm402.com/weather/forecast?latitude=51.5072&longitude=-0.1276&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&forecast_days=5&timezone=auto"
Historical archive weather data across a date range.
curl "https://xlm402.com/weather/archive?latitude=40.7128&longitude=-74.0060&start_date=2026-03-01&end_date=2026-03-07&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&timezone=auto"
Historical archive weather data across a date range.
curl "https://xlm402.com/weather/archive?latitude=40.7128&longitude=-74.0060&start_date=2026-03-01&end_date=2026-03-07&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&timezone=auto"
Compact summary view over an archive range with hottest, coldest, and precipitation totals.
curl "https://xlm402.com/weather/history-summary?latitude=40.7128&longitude=-74.0060&start_date=2026-03-01&end_date=2026-03-07&timezone=auto"
Compact summary view over an archive range with hottest, coldest, and precipitation totals.
curl "https://xlm402.com/weather/history-summary?latitude=40.7128&longitude=-74.0060&start_date=2026-03-01&end_date=2026-03-07&timezone=auto"
Text inference endpoint for prompts, system instructions, and output controls.
{
"prompt": "Write a landing page headline for a premium weather API on Stellar.",
"system": "Be concise and commercial.",
"reasoning_effort": "medium"
}
Prompt-to-image generation that returns a base64-encoded image payload.
{
"prompt": "A cinematic satellite view of a storm front above the Atlantic, premium editorial style",
"size": "1536x1024",
"quality": "high",
"output_format": "jpeg"
}
/.well-known/x402 returns the published route list with price, network, and pay-to metadata./supported returns facilitator support by network so clients can inspect enabled schemes.OPENAI_API_KEY is configured.gpt-5.4gpt-image-1.5https://xlm402.com