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

# Estimate the credit cost of a snack generation

> Pre-flight pricing: base 25 credits, excluding 'ai-ugc' saves 7, server-side render adds 3. No credits spent and no generation started.



## OpenAPI

````yaml /openapi.json get /api/v1/snacks/estimate
openapi: 3.1.0
info:
  title: VidGuy API
  version: 1.0.0
  description: >-
    Make videos, snacks, carousels, images and audio with VidGuy, and post them
    to your connected accounts. Authenticate with a `vf_live_` key as a Bearer
    token.
servers:
  - url: https://www.vidguy.ai
security:
  - ApiKeyAuth: []
tags:
  - name: Jobs
  - name: Credits
  - name: Brands
  - name: Snacks and memes
  - name: Videos
  - name: Carousels and slides
  - name: Images and video models
  - name: Characters
  - name: Editing
  - name: Assets
  - name: Audio
  - name: Social posting
paths:
  /api/v1/snacks/estimate:
    get:
      tags:
        - Snacks and memes
      summary: Estimate the credit cost of a snack generation
      description: >-
        Pre-flight pricing: base 25 credits, excluding 'ai-ugc' saves 7,
        server-side render adds 3. No credits spent and no generation started.
      operationId: estimateSnackCost
      parameters:
        - schema:
            type: boolean
          required: false
          name: render
          in: query
          description: Include the server-side render surcharge.
        - schema:
            type: string
          required: false
          name: exclude
          in: query
          description: >-
            Comma-separated snack types to exclude (slides, text-wall, ai-ugc,
            broll-demo, greenscreen-meme, meme-edit, single-image, sticker-pack,
            static-ad, ugc-ad, animated-ad, greenscreen-ad, music-ad).
      responses:
        '200':
          description: Cost estimate.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Send your API key in the Authorization header: `Bearer vf_live_...`'

````

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