The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { Field } from "@openrouter/sdk/models";
let value: Field = "user_id";
// Open enum: unrecognized values are captured as Unrecognized<string>
Values
"model" | "provider" | "session_id" | "user_id" | "api_key_name" | "finish_reason" | "input" | "output" | "total_cost" | "total_tokens" | "prompt_tokens" | "completion_tokens" | Unrecognized<string>