Skip to main content
POST
Apply presets to a request body

Authorizations

Authorization
string
header
required

varg API key (varg_...). Get one at app.varg.ai or run bunx vargai login. App sessions may alternatively send a Supabase JWT.

Body

application/json
payload
object
required

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

presets
string[]
required

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

Minimum array length: 1

Response

At least one preset was applied

payload
object
required

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

applied
string[]
required

Ids of the presets that were merged.

rejected
object[]
required