Skip to main content

Download Your First Image

Use this quickstart to fetch your first composite image with reliable pre-checks. This page intentionally stays workflow-first; full endpoint contracts stay in Processing / download endpoints.

Before You Start

Minimal Request Example

  1. Validate single-date fulfillability:
curl -X POST "https://api.clearsky.vision/api/satelliteimages/process/composite/available" \
-H "x-api-key: $CLEARSKY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Wkt": "POLYGON((9.87 56.47,10.19 56.47,10.19 56.28,9.87 56.28,9.87 56.47))",
"Date": "2025-04-03T00:00:00Z",
"Model": "Stratus2",
"SatelliteConstellations": ["Sentinel1", "Sentinel2", "Landsat89"],
"EpsgProjection": 32632,
"Bandnames": "rgb"
}'
  1. Estimate processing cost with the same payload settings:
curl -X POST "https://api.clearsky.vision/api/satelliteimages/process/composite/estimate" \
-H "x-api-key: $CLEARSKY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Wkt": "POLYGON((9.87 56.47,10.19 56.47,10.19 56.28,9.87 56.28,9.87 56.47))",
"Date": "2025-04-03T00:00:00Z",
"Resolution": 10,
"EpsgProjection": 32632,
"Model": "Stratus2",
"SatelliteConstellations": ["Sentinel1", "Sentinel2", "Landsat89"],
"Bandnames": "rgb"
}'
  1. Request image bytes:
curl -X POST "https://api.clearsky.vision/api/satelliteimages/process/composite" \
-H "x-api-key: $CLEARSKY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Wkt": "POLYGON((9.87 56.47,10.19 56.47,10.19 56.28,9.87 56.28,9.87 56.47))",
"Date": "2025-04-03T00:00:00Z",
"Resolution": 10,
"EpsgProjection": 32632,
"Model": "Stratus2",
"SatelliteConstellations": ["Sentinel1", "Sentinel2", "Landsat89"],
"Bandnames": "rgb"
}' --output clearsky_first_image.tif

Recommended call sequence:

  1. Discover candidate dates with POST /api/satelliteimages/search/available.
  2. Validate exact single-date fulfillment with POST /api/satelliteimages/process/composite/available.
  3. Use the same validated request shape for estimate and process.

Common Failure and Fix

  • Failure: availability passes but estimate or process fails.
  • Fix: ensure all calls use the same date, AOI mode, model, constellations, and output settings.

For 429/5xx, retry with backoff instead of immediate repeated calls.

Next Step