Skip to main content
The Vercel AI SDK’s OpenAI-compatible provider connects directly to an InferCrane Model API, dedicated deployment, or self-hosted gateway.

Install

Configure the API key in a trusted server environment:

Stream text

includeUsage requests final token usage for streaming calls so applications can reconcile usage with InferCrane receipts.

Connect a private endpoint

Use this form for a private canary, a dedicated deployment, or a regional InferCrane endpoint. Keep the credential in server code and never expose it in a browser bundle. The repository also contains a dedicated @infercrane/ai-sdk-provider adapter. It remains a source preview until its first npm release; the standard adapter above is the supported install path today.