Field - TypeScript SDK

Field type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { Field } from "@openrouter/sdk/models";
2
3let value: Field = "user_id";
4
5// Open enum: unrecognized values are captured as Unrecognized<string>

Values

1"model" | "provider" | "session_id" | "user_id" | "api_key_name" | "finish_reason" | "input" | "output" | "total_cost" | "total_tokens" | "prompt_tokens" | "completion_tokens" | Unrecognized<string>