The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { PresetWithDesignatedVersion } from "@openrouter/sdk/models";
let value: PresetWithDesignatedVersion = {
createdAt: "2026-04-20T10:00:00Z",
creatorUserId: "user_2dHFtVWx2n56w6HkM0000000000",
description: null,
designatedVersion: {
config: {
"model": "openai/gpt-4o",
"temperature": 0.7,
},
createdAt: "2026-04-20T10:00:00Z",
creatorId: "user_2dHFtVWx2n56w6HkM0000000000",
id: "550e8400-e29b-41d4-a716-446655440000",
presetId: "650e8400-e29b-41d4-a716-446655440001",
systemPrompt: "You are a helpful assistant.",
updatedAt: "2026-04-20T10:00:00Z",
version: 1,
},
designatedVersionId: "550e8400-e29b-41d4-a716-446655440000",
id: "650e8400-e29b-41d4-a716-446655440001",
name: "my-preset",
slug: "my-preset",
status: "active",
statusUpdatedAt: null,
updatedAt: "2026-04-20T10:00:00Z",
workspaceId: "750e8400-e29b-41d4-a716-446655440002",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
createdAt | string | :heavy_check_mark: | N/A | |
creatorUserId | string | :heavy_check_mark: | N/A | |
description | string | :heavy_check_mark: | N/A | |
designatedVersion | models.PresetDesignatedVersion | :heavy_check_mark: | A specific version of a preset, containing config and optional system prompt. | {"config": {"model": "openai/gpt-4o","temperature": 0.7},“created_at”: “2026-04-20T10:00:00Z”, “creator_id”: “user_2dHFtVWx2n56w6HkM0000000000”, “id”: “550e8400-e29b-41d4-a716-446655440000”, “preset_id”: “650e8400-e29b-41d4-a716-446655440001”, “system_prompt”: “You are a helpful assistant.”, “updated_at”: “2026-04-20T10:00:00Z”, “version”: 1<br/>} |
designatedVersionId | string | :heavy_check_mark: | N/A | |
id | string | :heavy_check_mark: | N/A | |
name | string | :heavy_check_mark: | N/A | |
slug | string | :heavy_check_mark: | N/A | |
status | models.PresetWithDesignatedVersionStatus | :heavy_check_mark: | N/A | |
statusUpdatedAt | string | :heavy_check_mark: | N/A | |
updatedAt | string | :heavy_check_mark: | N/A | |
workspaceId | string | :heavy_check_mark: | N/A |