> ## Documentation Index
> Fetch the complete documentation index at: https://docs.varg.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get preset filter axes

> 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 `?<axis>=<value>` on `GET /presets` would return. Scope with
`type`, since voices and styles have different axes. Auth is optional.




## OpenAPI

````yaml /openapi.yaml get /presets/filters
openapi: 3.1.0
info:
  title: varg 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 credit billing
    (1 credit = 1 cent = $0.01).

    **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.
servers:
  - url: https://api.varg.ai/v2
security:
  - bearerAuth: []
tags:
  - name: Generation
    description: >-
      Create generation jobs (image, video, speech, music, transcription,
      ffmpeg, render, pipeline)
  - name: Tools
    description: Discover tools, their schemas, and call any tool generically
  - name: Jobs
    description: Poll and manage job lifecycle
  - name: Files
    description: Upload, import, probe, and manage files
  - name: Folders
    description: Group files into folders and file generated output automatically
  - name: Lineage
    description: Resolve which job produced a file
  - name: Presets
    description: Browse and apply reusable parameter values — voices, styles
  - name: Templates
    description: Browse, publish, use and render community templates
  - name: Pricing
    description: Estimate costs and browse the price catalog
  - name: Billing
    description: Balance, usage, and transaction history
  - name: Analytics
    description: >-
      Spend, runs and files over time — summaries, time series, breakdowns,
      activity
  - name: Account
    description: Identity and API key management
paths:
  /presets/filters:
    get:
      tags:
        - Presets
      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 `?<axis>=<value>` on `GET /presets` would return. Scope
        with

        `type`, since voices and styles have different axes. Auth is optional.
      operationId: getPresetFilters
      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
      security:
        - {}
        - bearerAuth: []
components:
  schemas:
    PresetFilters:
      type: object
      description: Map of metadata axis name to an object of value to preset count.
      additionalProperties:
        type: object
        additionalProperties:
          type: integer
  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.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.