Presets

Apply presets to a request body

Changed on

Merges 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

payloadobject required

The request body you intend to send to a generation endpoint. model is required; the tool is inferred from it.

presetsstring[] required

Preset ids to merge, applied in order. Non-string entries are ignored.

Response

At least one preset was applied

payloadobject required

The merged request body, ready to send to the generation endpoint.

appliedstring[] required

Ids of the presets that were merged.

Changes