Presets
Apply presets to a request body
Changed onMerges one or more presets into a request body you intend to send to a generation endpoint and returns the finished payload. The tool is inferred from payload.model. Presets that cannot be applied (unknown, no mapping for the model's tool, or dropped by the model's schema) are reported in rejected instead of failing the call. Returns 200 when at least one preset applied and 422 when none did; the 422 body then still has the payload/applied/rejected shape. A 422 with an error envelope means the model in payload.model is unknown. Auth is optional.
post/presets/apply
Request
- Base URL: https://api.varg.ai/v2
- URL: https://api.varg.ai/v2/presets/apply
- Auth: one of:
- none
- HTTP bearer
Request body
Response
At least one preset was applied
Changes
- info
endpoint added
- info