API Reference¶
This section is the exact reference for the public API. If you want installation and first-run examples, start with Quickstart instead.
Core Entry Points¶
Most users only need these public functions:
get_embedding(...)get_embeddings_batch(...)export_batch(...)inspect_provider_patch(...)
Choose by Task¶
| I want to... | Read this page |
|---|---|
| understand spatial/temporal/output specs | API: Specs and Data Structures |
| get one embedding or batch embeddings | API: Embedding |
| build export pipelines and datasets | API: Export |
| inspect raw provider patches before inference | API: Inspect |
Useful Extras¶
export_npz(...): compatibility wrapper aroundexport_batch(...)for single-ROI.npzinspect_gee_patch(...): compatibility wrapper aroundinspect_provider_patch(...)list_models(): stable public model catalog helper
Model-specific configuration:
get_embedding(...)andget_embeddings_batch(...)acceptmodel_configexport_batch(...)supports per-modelmodel_configviaExportModelRequest(...)- currently documented model-level
model_configusage includesdofa,anysat,thor, andsatmaepp_s2_10b - for the currently documented variant-aware models, use a unified field:
model_config={"variant": "..."} - valid
variantvalues still depend on the selected model and currently exposed published checkpoints, so check the corresponding model detail page - unsupported
model_configusage raisesModelErrorinstead of being ignored silently
Sampling / fetch configuration:
- public embedding and export APIs accept
fetch=FetchSpec(...) - use
fetchfor common overrides such asscale_m,cloudy_pct,composite, andfill_value - reserve
sensor=SensorSpec(...)for advanced source overrides (collection,bands, modality-specific contracts) fetchandsensorcannot be passed together
If you need a stable model list in code:
from rs_embed import list_models
print(list_models())
rs_embed.core.registry.list_models() only reports models currently loaded into the runtime registry.
Errors¶
rs-embed raises several explicit exception types (all in rs_embed.core.errors):
SpecError: spec validation failure (invalid bbox, missing temporal fields, etc.)ProviderError: provider/backend errors (e.g., GEE initialization or fetch failure)ModelError: unknown model ID, unsupported parameters, unsupported export format, etc.
Versioning Notes¶
The current version is still early stage (0.1.x):
BBox/PointBuffercurrently requirecrs="EPSG:4326"- Precomputed models should use
backend="auto"; on-the-fly models mainly use provider backends (typically"gee"or explicit provider names) ExportConfig(format=...)is the recommended way to choose export format; supported values are currently"npz"and"netcdf"and may be extended to parquet/zarr/hdf5, etc.