In short.
OpenRouter’s callModel overview teaches TypeScript developers to request and stream language-model responses, but important setup and execution-control details require further documentation. It shows how @openrouter/agent returns a ModelResult with text, response, item, reasoning and tool consumers. Automatic tool execution, concurrent consumption and message-format conversion are documented capabilities; runtime behavior, compatibility and costs are not established by this page.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete selected documentation page at [https://openrouter.ai/docs/agent-sdk/call-model/overview.md], captured on 12 November 2026. The documentation-index notice and links to further guides are included as page content; their destinations are excluded. No package source, additional licensing notices, pricing documentation or runtime evidence was supplied. Nothing was executed, so behavior, compatibility, performance and tool controls remain unverified.
The overview
Identity
The resource is OpenRouter’s documentation page titled Call Model (Typescript), at [https://openrouter.ai/docs/agent-sdk/call-model/overview.md]. It introduces the callModel interface in the @openrouter/agent package.
Its scope is a feature overview with short examples and links to deeper guides. The linked guides’ contents are outside this report’s evidence.
Assessment
This is useful for understanding the API’s shape before integrating it: one call exposes simple text retrieval, structured responses and several streams. The examples make the method names and basic input structure concrete.
The page provides limited support for an adoption decision. It does not establish installation requirements, model compatibility, operational reliability or how automatic tool execution is constrained. No code was executed.
Intended users
The guide suits developers building TypeScript applications that generate text, display responses progressively or let a model call application tools. Developers adapting existing OpenAI chat or Anthropic Claude message formats may also find its compatibility claims relevant.
Beginners can follow the short text-generation example, but will need familiarity with packages, environment variables and asynchronous JavaScript. Streaming examples additionally use asynchronous iteration.
Capabilities
The documented response methods include getText() for text and getResponse() for the full response. The usage example names inputTokens, outputTokens and cachedTokens.
Streaming interfaces cover text deltas, reasoning for reasoning models, item updates identified by ID, and full response events. Tool interfaces retrieve completed calls, stream calls as they complete, or expose deltas and preliminary results.
The page also advertises automatic tool execution with Zod schemas, TypeScript inference for tool inputs and outputs, concurrent stream consumers, and conversion to and from OpenAI chat and Anthropic Claude message formats. It does not demonstrate all of these capabilities.
Using it
Requirements
The quick start imports OpenRouter from @openrouter/agent and passes an API key from process.env.OPENROUTER_API_KEY. Its examples use TypeScript and asynchronous response consumption.
Zod schemas are named as the mechanism for defining tools. Package installation commands, dependency versions, supported runtimes, browser support and account or billing prerequisites are not specified.
How it works
The documentation describes an interface built on OpenRouter’s Responses API. Responses contain structured items, such as messages, tool calls and reasoning, and callModel returns a ModelResult that exposes different ways to consume them.
Inputs can be a string or a message array in the documented OpenResponses format. A separate instructions parameter supplies system instructions.
The SDK is described as handling tool-execution loops and supporting concurrent consumers through a reusable stream architecture. Scheduling, buffering, backpressure and loop termination behavior are not explained here.
Setup
The shown sequence is to import OpenRouter, construct a client with an API key, call openrouter.callModel with model and input parameters, and await result.getText(). The example model identifier is openai/gpt-5-nano.
A complete setup still requires installation instructions and a compatible runtime. The overview does not explain obtaining a key, configuring a project or recovering from configuration errors.
Example use
The quick start asks for France’s capital using openai/gpt-5-nano, awaits result.getText() and prints the result. The Paris answer appears as a code comment; actual output is unverified.
For an interface that displays text progressively, another example iterates over result.getTextStream() and writes each delta. A separate item-stream example reads each item’s type and ID. These snippets illustrate response-consumption choices without establishing execution results.
Assessment & evidence
Limitations
The introduction describes broad model access, but provides no compatibility matrix or per-model feature guarantees. Reasoning streams are explicitly associated with reasoning models.
Error handling, retries, cancellation, context limits and tool-loop limits are not specified. Lifecycle hooks and stop conditions appear only as links to further guides.
The page supplies no benchmarks, reliability measurements or evidence of production behavior. The examples do not establish performance or successful execution.
Fit and tradeoffs
The main attraction is a shared interface for simple text generation, streaming interfaces and richer tool-driven applications. This could reduce the number of response-handling approaches an application needs, although no measured development benefit is provided.
The item-based model is particularly relevant when an application needs to distinguish messages, reasoning and tool activity. Adopting it also requires understanding item updates and execution controls, which this overview introduces only briefly.
Alternatives and compatibility
The page mentions conversion to and from OpenAI chat and Anthropic Claude message formats. That may matter when adapting an existing integration, but conversion examples and feature-parity guarantees are absent.
It does not compare callModel with provider-specific SDKs, direct API calls or other agent frameworks. Relative cost, migration effort and operational tradeoffs remain unassessed.
Evidence
The evidence consists of the complete captured overview at [https://openrouter.ai/docs/agent-sdk/call-model/overview.md]. It contains explanatory text, TypeScript snippets and links to further documentation.
The documentation index, feature guides, API reference and example-tool pages were not included. Capability claims therefore rest on this overview; package source, execution results and independent measurements are unavailable.
Access & freshness
Costs
Costs are unknown from this page. It provides no package price, model rates, free allowance, billing terms or charges for services called by tools.
The getResponse() example exposes token-usage fields, but those fields do not establish a monetary cost. No cost estimate is supported.
Rights and terms
The page does not state a licence for the documentation, example code or @openrouter/agent package. Permissions for redistribution and commercial use are not established by this evidence.
Model-provider terms, input retention and rights concerning generated outputs are also unspecified.
Freshness
The page was captured on 12 November 2026 at 22:38:08 UTC. Its publication date, last substantive update and applicable @openrouter/agent version are unknown.
The capture establishes what the page documented at that time. Current package behavior, model availability and subsequent documentation changes are unverified.
Next steps
Before integration, confirm the package version, installation steps, supported runtime, model availability and current pricing. Check the applicable licences and data-handling terms.
For tool-using applications, consult the linked Tools, Lifecycle Hooks and Stop Conditions guides to understand execution limits and approval controls. Their contents have not been assessed here.
A small integration exercise should check text retrieval, the chosen streaming interface, error handling and any intended tool calls. Those checks remain unperformed.
