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

Example Usage

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

let value: ChatContentText = {
  text: "Hello, world!",
  type: "text",
};

Fields

FieldTypeRequiredDescriptionExample
cacheControlmodels.ChatContentCacheControl:heavy_minus_sign:Cache control for the content part{"ttl": "5m","type": "ephemeral"}
textstring:heavy_check_mark:N/A
typemodels.ChatContentTextType:heavy_check_mark:N/A