Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import { ChatResponse } from "@openrouter/sdk/models";

let value: ChatResponse = {
  id: "<id>",
  choices: [],
  created: 9184.01,
  model: "Focus",
  object: "chat.completion",
};

Fields

FieldTypeRequiredDescription
idstring:heavy_check_mark:N/A
choicesmodels.ChatResponseChoice[]:heavy_check_mark:N/A
creatednumber:heavy_check_mark:N/A
modelstring:heavy_check_mark:N/A
object”chat.completion”:heavy_check_mark:N/A
systemFingerprintstring:heavy_minus_sign:N/A
usagemodels.ChatGenerationTokenUsage:heavy_minus_sign:N/A