Presets

Get a specific version of a preset

Changed on

Retrieves a specific version of a preset by its slug and version number.

get/presets/{slug}/versions/{version}

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

slug, string required

URL-safe slug identifying the preset.

Example:my-preset
version, string required

Version number of the preset.

Example:1

Query parameters

workspace_id, string uuid

Workspace to act in. Also accepted as a workspace_id field in a JSON request body. Defaults to the key's workspace for a key limited to one workspace, otherwise to the account's default workspace.

Example:750e8400-e29b-41d4-a716-446655440002

Response

The requested preset version.

GetPresetVersionResponse required

A single version of a preset.

data, PresetDesignatedVersion nullable required

A specific version of a preset, containing config and optional system prompt.

Example response

{
  "data": {
    "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
  }
}

Changes