Authentication
All endpoints require JWT authentication via theAuthorization header:
List Presets
Response
Returns an array of preset objects.Create or Update Preset
presetId is provided and exists, the preset will be updated; otherwise, a new preset is created.
Request Body
Preset ID (UUID). If omitted, a new UUID will be generated
Preset name/title
Model endpoint identifier
Model identifier
Temperature (0-2, default varies by model)
Top-p sampling (0-1)
Top-k sampling (provider-specific)
Frequency penalty (0-2)
Presence penalty (0-2)
Maximum tokens to generate
Maximum context window size
System message or prompt prefix
Agent/assistant instructions
Array of enabled tool identifiers
Array of stop sequences
Custom icon URL
Initial greeting message
Custom model display label
Custom chat label
Whether to resend files in context
Image detail level: “auto”, “low”, or “high”
Enable artifacts (code blocks, formatted content)
Response
Returns the created or updated preset object with status 201 Created.Error Responses
- 500 Internal Server Error: Failed to save preset
Delete Preset
presetId is provided.
Request Body
The preset ID to delete. If omitted, all user presets will be deleted.
Response
Returns the number of deleted presets.Number of presets deleted
Error Responses
- 500 Internal Server Error: Deletion failed
Preset Structure Details
Endpoint-Specific Parameters
Different endpoints support different parameters:OpenAI / Azure OpenAI
temperature,top_p,frequency_penalty,presence_penaltymax_tokens,stopresponse_format(for JSON mode)
Anthropic
temperature,top_p,top_kmax_tokens,stop_sequencesthinking(extended thinking mode)
temperature,topP,topKmaxOutputTokenssafetySettings
Agents
temperature,top_pmax_tokenstools(array of tool identifiers)instructions(system prompt)provider(underlying model provider)
Common Use Cases
- Creative Writing: High temperature (0.8-1.0), high top_p
- Code Generation: Lower temperature (0.2-0.4), focused sampling
- Factual Q&A: Low temperature (0.1-0.3), deterministic output
- Customer Support: Medium temperature (0.5-0.7), balanced creativity
Example Presets
GPT-4 Code Assistant
Claude Creative Writer
Research Agent
Common Error Codes
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters or malformed request |
| 401 | Unauthorized - Invalid or missing JWT token |
| 500 | Internal Server Error - Failed to save or delete preset |