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

Example Usage

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

let value: CompletionResponse = {
  id: "<id>",
  object: "text_completion",
  created: 7985.17,
  model: "Taurus",
  choices: [],
};

Fields

FieldTypeRequiredDescription
idstring:heavy_check_mark:N/A
object”text_completion”:heavy_check_mark:N/A
creatednumber:heavy_check_mark:N/A
modelstring:heavy_check_mark:N/A
providerstring:heavy_minus_sign:N/A
systemFingerprintstring:heavy_minus_sign:N/A
choicesmodels.CompletionChoice[]:heavy_check_mark:N/A
usagemodels.CompletionUsage:heavy_minus_sign:N/A