Skip to main content

Run SDK

OpenAI-compatible inference (chat completions) and model listing

Operations

Generated Reference

Overview

OpenAI-compatible inference (chat completions) and model listing

Available Operations

inference

Execute inference through the LucidLayer execution gateway. Supports both streaming (SSE) and non-streaming responses. A cryptographic receipt is generated for each successful inference.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.InferenceResult>

Errors

chatCompletions

x402-gated with dynamic pricing. If X402_ENABLED=true, requests without a valid X-Payment-Proof header receive HTTP 402 with payment instructions. Pricing is resolved per-model from the asset_pricing table.

Example Usage

Standalone function

The standalone function version of this method:

Parameters

Response

Promise<models.ChatCompletionResponse>

Errors