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 API | MCP server | TypeScript SDK | |
|---|---|---|---|
| Who calls it | Your code | An AI assistant, on your behalf | Your Node.js or TypeScript code |
| How you sign in | API key | OAuth, approved in your browser, or an API key | API key |
| Long answers | Buffered up to 90 seconds, or streamed | Always streamed | Streamed for you |
| Answer rows | Up to 1,000 with the answer, then paged | Up to 50 with the answer, then paged | As the REST API |
| Maps | PNG or SVG | PNG image | PNG 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