Overview
Presets endpointsAvailable Operations
- list - List presets
- delete - Delete a preset
- get - Get a preset
- createPresetsChatCompletions - Create a preset from a chat-completions request body
- createPresetsMessages - Create a preset from a messages request body
- createPresetsResponses - Create a preset from a responses request body
- restore - Restore a preset
- listVersions - List versions of a preset
- getVersion - Get a specific version of a preset
list
Lists all presets for the authenticated user, ordered by most recently updated first.Example Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<operations.ListPresetsResponse>Errors
delete
Archives a preset: it no longer resolves for inference and is hidden from get and list. The preset and its versions are kept, so the slug stays taken; restore it withPOST /presets/{slug}/restore. Deleting an already-archived preset succeeds again. A disabled preset returns 409. Requires a read-write management key; inference API keys are rejected. workspace_id may be sent as a query parameter or a JSON body field.
Example Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<models.GetPresetResponse>Errors
get
Retrieves a preset by its slug with its currently designated version inline.Example Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<models.GetPresetResponse>Errors
createPresetsChatCompletions
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g.messages, stream, prompt) are silently ignored. Requires a read-write management key; inference API keys are rejected.
Example Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<models.CreatePresetFromInferenceResponse>Errors
createPresetsMessages
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g.messages, stream, prompt) are silently ignored. Requires a read-write management key; inference API keys are rejected.
Example Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<models.CreatePresetFromInferenceResponse>Errors
createPresetsResponses
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap with the preset config are persisted; other fields (e.g.messages, stream, prompt) are silently ignored. Requires a read-write management key; inference API keys are rejected.
Example Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<models.CreatePresetFromInferenceResponse>Errors
restore
Re-activates an archived preset so it resolves for inference again. No version is created and the designated version is unchanged. Restoring an active preset returns it unchanged. A disabled preset returns 409. Requires a read-write management key; inference API keys are rejected.workspace_id may be sent as a query parameter or a JSON body field.