varg.ai Presets API
Browse and apply reusable parameter values — voices, styles
Browse and apply reusable parameter values — voices, styles
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/varg-ai:varg-ai-presets-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: varg Presets API
version: 2.0.0
description: 'Unified REST API for AI media generation at `api.varg.ai/v2`.
One API key, ~80 models across 8 providers, async jobs, stable output URLs
on `s3.varg.ai`, files with lineage, and transparent billing: 1 credit =
1 cent = $0.01, and models are priced pass-through — you pay what the
provider charges, no markup. Every amount comes as integer credits
(`*_cents` / `credits` fields) and as dollars (`*_usd` fields).
**The async job pattern:** every generation request returns `202 Accepted`
with a job object (`status: queued`). Poll `GET /jobs/{id}` until the job
reaches a terminal status (`completed`, `failed`, or `cancelled`), then read
`output.outputs[0].url`. Alternatively, set `options.webhook_url` in the
request to receive an HMAC-signed callback when the job finishes.
**Rate limits** (sliding one-minute windows; a `429` carries `Retry-After`
and `X-RateLimit-*`):
- every request with an API key or session: 1,200 a minute per credential;
- every request without one: 120 a minute per IP;
- job submits: 60 a minute per key (300 across a team);
- keyless search (`GET /skills/search`): 3 a minute per IP, then
`429 sign_in_required` — sign in (`vargai login`) or send a key to keep
searching.'
servers:
- url: https://api.varg.ai/v2
security:
- bearerAuth: []
tags:
- name: Presets
description: Browse and apply reusable parameter values — voices, styles
paths:
/presets:
get:
tags:
- Presets
operationId: listPresets
summary: List presets
description: 'Browse the preset catalogue: reusable parameter values you cannot guess
(voice ids, style ids). Auth is optional; a Bearer token additionally
includes the account''s private presets. Any query parameter other than
`type`, `namespace`, `tool`, `q` and `limit` is treated as a metadata
filter (for example `?gender=male&tone=deep`); discover the available
axes with `GET /presets/filters`. List items carry no `tools` fragments;
fetch `GET /presets/{id}` for those.'
security:
- {}
- bearerAuth: []
parameters:
- name: type
in: query
schema:
type: string
example: voice
description: Filter by parameter type (for example `voice`, `style`).
- name: namespace
in: query
schema:
type: string
example: elevenlabs
description: Filter by the id system that minted the value (for example `elevenlabs`, `higgsfield`, `fal`).
- name: tool
in: query
schema:
type: string
example: speech
description: Only presets that can be delivered into this tool.
- name: q
in: query
schema:
type: string
description: Free-text search over name and description.
- name: limit
in: query
schema:
type: integer
default: 50
maximum: 200
description: Max results. Values above 200 are clamped; invalid values fall back to 50.
responses:
'200':
description: Matching presets
content:
application/json:
schema:
$ref: '#/components/schemas/PresetListResponse'
examples:
voices:
value:
count: 21
data:
- id: preset_5f4dcc3b5aa7
kind: provider_value
type: voice
namespace: elevenlabs
name: Brian
description: Deep, professional male voice
preview_url: https://s3.varg.ai/presets/voice/brian.mp3
metadata:
gender: male
tone:
- deep
- professional
status: active
/presets/filters:
get:
tags:
- Presets
operationId: getPresetFilters
summary: Get preset filter axes
description: 'The metadata filter vocabulary, derived from stored presets. Returns a
map of axis name to `{ value: count }`, where the count is the number of
presets that `?=` on `GET /presets` would return. Scope with
`type`, since voices and styles have different axes. Auth is optional.'
security:
- {}
- bearerAuth: []
parameters:
- name: type
in: query
schema:
type: string
example: voice
description: Only derive axes from presets of this type.
responses:
'200':
description: Filter axes and value counts
content:
application/json:
schema:
$ref: '#/components/schemas/PresetFilters'
examples:
voice:
value:
gender:
male: 12
female: 9
tone:
deep: 7
calm: 5
energetic: 4
/presets/{id}:
get:
tags:
- Presets
operationId: getPreset
summary: Get a preset
description: 'One preset plus `tools`: a ready-to-merge request fragment for each tool
it can be delivered into, keyed by tool name. Auth is optional; a Bearer
token also resolves the account''s private presets.'
security:
- {}
- bearerAuth: []
parameters:
- name: id
in: path
required: true
schema:
type: string
example: preset_5f4dcc3b5aa7
description: Preset id (`preset_<12hex>`).
responses:
'200':
description: The preset
content:
application/json:
schema:
$ref: '#/components/schemas/PresetDetail'
examples:
voice:
value:
id: preset_5f4dcc3b5aa7
kind: provider_value
type: voice
namespace: elevenlabs
name: Brian
description: Deep, professional male voice
preview_url: https://s3.varg.ai/presets/voice/brian.mp3
metadata:
gender: male
tone:
- deep
status: active
tools:
speech:
voice: preset_5f4dcc3b5aa7
'404':
description: Unknown preset
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
notFound:
value:
error:
code: not_found
message: No preset with id 'preset_unknown'
/presets/apply:
post:
tags:
- Presets
operationId: applyPresets
summary: Apply presets to a request body
description: '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.'
security:
- {}
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PresetApplyRequest'
example:
payload:
model: eleven_multilingual_v2
text: Hello world
presets:
- preset_5f4dcc3b5aa7
responses:
'200':
description: At least one preset was applied
content:
application/json:
schema:
$ref: '#/components/schemas/PresetApplyResponse'
examples:
applied:
value:
payload:
model: eleven_multilingual_v2
text: Hello world
voice: preset_5f4dcc3b5aa7
applied:
- preset_5f4dcc3b5aa7
rejected: []
'400':
description: Body is not a JSON object, `payload` is missing or not an object, `payload.model` is missing, or `presets` is empty
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: 'Nothing was applied. The body is a `PresetApplyResponse` (with a
non-empty `rejected` list), or an `ErrorResponse` with code
`unknown_model` when `payload.model` is not in the catalogue.
'
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/PresetApplyResponse'
- $ref: '#/components/schemas/ErrorResponse'
/presets/recommend:
post:
tags:
- Presets
operationId: recommendPresets
summary: Recommend presets for an intent
description: 'Ranks presets against a free-text description of what you want, using
keyword overlap over name, description and metadata. Presets with no
match are excluded. `confidence` is comparable only within one response.
Auth is optional.'
security:
- {}
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PresetRecommendRequest'
example:
intent: deep male voice for narration
type: voice
limit: 5
responses:
'200':
description: Ranked recommendations
content:
application/json:
schema:
$ref: '#/components/schemas/PresetRecommendResponse'
examples:
voice:
value:
count: 1
data:
- id: preset_5f4dcc3b5aa7
kind: provider_value
type: voice
namespace: elevenlabs
name: Brian
description: Deep, professional male voice
preview_url: https://s3.varg.ai/presets/voice/brian.mp3
metadata:
gender: male
tone:
- deep
confidence: 0.83
why:
- name
- tone=deep
- gender=male
'400':
description: Body is not a JSON object or `intent` is missing or blank
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
PresetRejection:
type: object
required:
- id
- reason
- message
properties:
id:
type: string
reason:
type: string
enum:
- unknown_preset
- incompatible
- catalogue_error
- not_accepted_by_model
description: '`unknown_preset`: id not in the catalogue. `incompatible`: no mapping for
the model''s tool. `catalogue_error`: the preset''s mapping data is broken.
`not_accepted_by_model`: the model''s schema would silently drop the value.
'
message:
type: string
available_tools:
type: array
items:
type: string
description: Present for `incompatible`; the tools this preset can be applied to.
PresetRecommendResponse:
type: object
required:
- count
- data
properties:
count:
type: integer
data:
type: array
items:
$ref: '#/components/schemas/PresetRecommendation'
PresetApplyRequest:
type: object
required:
- payload
- presets
properties:
payload:
type: object
additionalProperties: true
description: The request body you intend to send to a generation endpoint. `model` is required; the tool is inferred from it.
presets:
type: array
minItems: 1
items:
type: string
description: Preset ids to merge, applied in order. Non-string entries are ignored.
PresetListResponse:
type: object
required:
- count
- data
properties:
count:
type: integer
description: Total number of matches, before `limit` is applied.
data:
type: array
items:
$ref: '#/components/schemas/PresetListItem'
PresetListItem:
type: object
required:
- id
- kind
- type
- namespace
- name
- description
- preview_url
- metadata
- status
properties:
id:
type: string
description: Canonical preset reference (`preset_<12hex>`).
example: preset_5f4dcc3b5aa7
kind:
type: string
description: Preset layer. Currently always `provider_value`.
example: provider_value
type:
type: string
description: Which parameter the preset fills (for example `voice`, `style`).
example: voice
namespace:
type: string
description: Whose id system minted the value (for example `elevenlabs`, `higgsfield`, `fal`).
example: elevenlabs
name:
type: string
example: Brian
description:
type:
- string
- 'null'
preview_url:
type:
- string
- 'null'
description: Sample audio or image for the preset.
metadata:
type: object
additionalProperties: true
description: Filterable attributes. Keys vary by type; values are strings or arrays of strings.
status:
type: string
enum:
- active
- deprecated
PresetFilters:
type: object
description: Map of metadata axis name to an object of value to preset count.
additionalProperties:
type: object
additionalProperties:
type: integer
PresetApplyResponse:
type: object
required:
- payload
- applied
- rejected
properties:
payload:
type: object
additionalProperties: true
description: The merged request body, ready to send to the generation endpoint.
applied:
type: array
items:
type: string
description: Ids of the presets that were merged.
rejected:
type: array
items:
$ref: '#/components/schemas/PresetRejection'
ErrorResponse:
type: object
properties:
error:
type: object
properties:
code:
type: string
example: model_not_found
message:
type: string
example: 'Unknown model: flux-shnell'
details: {}
PresetDetail:
allOf:
- $ref: '#/components/schemas/PresetListItem'
- type: object
required:
- tools
properties:
tools:
type: object
description: 'Ready-to-merge request fragment per tool, keyed by tool name. A
fragment with a broken mapping is returned as `{ "_error": "<message>" }`.
'
additionalProperties:
type: object
additionalProperties: true
example:
speech:
voice: preset_5f4dcc3b5aa7
PresetRecommendation:
type: object
required:
- id
- kind
- type
- namespace
- name
- description
- preview_url
- metadata
- confidence
- why
properties:
id:
type: string
kind:
type: string
type:
type: string
namespace:
type: string
name:
type: string
description:
type:
- string
- 'null'
preview_url:
type:
- string
- 'null'
metadata:
type: object
additionalProperties: true
confidence:
type: number
minimum: 0
maximum: 1
description: Match strength; comparable only within one response.
why:
type: array
items:
type: string
description: Match reasons, for example `name`, `description`, `tone=deep` (metadata value) or `axis:tone` (metadata key).
PresetRecommendRequest:
type: object
required:
- intent
properties:
intent:
type: string
minLength: 1
description: Free-text description of what you want.
example: calm female british voice
type:
type: string
description: Narrow to one parameter type.
namespace:
type: string
description: Narrow to one id system.
tool:
type: string
description: Only presets deliverable into this tool.
limit:
type: integer
default: 10
maximum: 50
description: Max results. Larger values are clamped to 50; invalid values fall back to 10.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'varg API key (`varg_...`). Get one at [app.varg.ai](https://app.varg.ai)
or run `bunx vargai login`. App sessions may alternatively send a
Supabase JWT.
'