@ai-sdk/openai-compatible provider connects to any OpenAI-compatible endpoint, so it runs on the ScitiX Model Inference API.
Default model here is glm-5.2; see the Models page for the full list and pricing.
Configure
Create an API key on the ScitiX API Keys page and export it:ai and @ai-sdk/openai-compatible, then create a ScitiX provider:
Use
@ai-sdk/openai-compatible, not @ai-sdk/openai. The latter targets OpenAI’s own API and defaults to the Responses API; the compatible provider is built for custom OpenAI-style endpoints like ScitiX.
Choose a model with native tool calling for the SDK’s tool-calling / streamText tool features.
Verify
Generate text — a normal reply confirms the connection (verified on ai 7.0.62,@ai-sdk/openai-compatible 3.0.30):

