Skip to main content

Generate A Single Response

tensormesh(modelId), tensormesh.chatModel(modelId), and tensormesh.languageModel(modelId) create AI SDK chat models backed by /v1/chat/completions.

Stream A Response

Text Completions

Use completionModel when you specifically need the /v1/completions route.
For most applications, prefer tensormesh(modelId) because chat models support richer AI SDK features such as tool calling and structured output.