Skip to Content
REST, MCP or SDK

REST, MCP or SDK

All three reach the same data, with the same answers, limits and quota. They differ in who makes the calls.

REST APIMCP serverTypeScript SDK
Who calls itYour codeAn AI assistant, on your behalfYour Node.js or TypeScript code
How you sign inAPI keyOAuth, approved in your browser, or an API keyAPI key
Long answersBuffered up to 90 seconds, or streamedAlways streamedStreamed for you
Answer rowsUp to 1,000 with the answer, then pagedUp to 50 with the answer, then pagedAs the REST API
MapsPNG or SVGPNG imagePNG or SVG

Choose the REST API when

You are building a product, a backend job or a data pipeline in any language, and want full control over requests, streaming and errors.

Choose the MCP server when

You want people to ask TeroAI questions from inside their AI assistant. The assistant decides when to call TeroAI, and each person connects with their own account.

Choose the SDK when

You are writing TypeScript or JavaScript on a server. It wraps the REST API with types, streaming and typed errors.

API keys are secrets: keep them on a server, never in browser or mobile code.

Last updated on