Skip to main content

Match SDK

Policy-based compute matching and route planning

Operations

Generated Reference

Overview

Policy-based compute matching and route planning

Available Operations

  • explain - Evaluate policy against compute/model meta
  • compute - Match compute for model
  • planRoute - Plan a route (match + resolve endpoint)

explain

Evaluate a policy against compute and model metadata, returning a detailed explanation of whether the compute node is allowed and the reasons for the decision. Useful for debugging policy mismatches.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.LucidMatchExplainResponse>

Errors

compute

x402-gated with dynamic pricing when X402_ENABLED=true.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.LucidMatchResponse>

Errors

planRoute

Perform compute matching and resolve an executable inference endpoint in a single call. Returns the matched compute node, model, endpoint URL, runtime, policy hash, and fallback options.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<operations.LucidRouteResponse>

Errors