Quickstart
Get a single request running end-to-end. For the full catalog of runnable snippets (streaming, Anthropic, model list, error handling), see Examples.
Prerequisites
Step 1: Set the environment
Both SDKs default to a 60-second request/stream timeout. Override it only when a workload needs a different limit �?TypeScript timeoutMs, Go WithTimeout.
Step 2: Install
TypeScript
Go
TypeScript is distributed from GitHub, not the npm registry. Add the package subdirectory to package.json:
Pin a release tag or commit for reproducible builds instead of following the default branch.
Step 3: Make your first request
TypeScript
Go
Verify the result
Common errors
Next steps
- Examples �?streaming, Anthropic, model list, error handling
- TypeScript SDK · Go SDK �?client options and tool calling
