Skip to main content
The Vercel AI SDK is a JavaScript and TypeScript library. Configure either the OpenAI provider for the Responses API or the OpenAI-compatible provider for Chat Completions. Both use https://api.concentrate.ai/v1.

Install

Set CONCENTRATE_API_KEY in your server environment. Do not expose it in browser code.

Use Responses

Use compatible Chat

The examples below use the concentrate Responses provider from Use Responses.

Stream text

Call a function

To have the SDK run the function, add an execute handler to the tool. See Vercel’s tool calling guide.

Get structured JSON

Explore more

Last modified on October 9, 2026