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

# Prompt Booster Price

> Calculate the price for the unified prompt booster. Accepted `type` values (v2 noun-based dot notation): `images.generations`, `images.edits`, `videos.generations`, `videos.animations`, `audio.speech`, `audio.music`, etc.

Calculate the cost of a prompt-booster call before running it. Takes the same fields as the [Prompt Booster](/api/v2/prompt-enhancement/prompt-booster) (`prompt`, `type`, `model_slug`, optional `image` / `negative_prompt`) and returns `{ "price": <number> }`.


## OpenAPI

````yaml openapi-v2.json POST /api/v2/prompts/enhancements/price
openapi: 3.0.0
info:
  title: deAPI REST API
  description: >-
    Decentralized AI inference API for image generation, video processing, audio
    transcription, and more.
  contact:
    name: deAPI Support
    url: https://deapi.ai
    email: support@deapi.ai
  version: 0.0.1
servers:
  - url: https://api.deapi.ai
    description: Production API Server base URL
security:
  - bearerAuth: []
tags:
  - name: Client API v2
    description: Current client endpoints (OpenAI-aligned noun-based paths)
paths:
  /api/v2/prompts/enhancements/price:
    post:
      tags:
        - Client API v2
      description: >-
        Calculate the price for the unified prompt booster. Accepted `type`
        values (v2 noun-based dot notation): `images.generations`,
        `images.edits`, `videos.generations`, `videos.animations`,
        `audio.speech`, `audio.music`, etc.
      operationId: clientCalculateBoostPriceV2
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              properties:
                prompt:
                  type: string
                  minLength: 3
                  example: A beautiful landscape
                negative_prompt:
                  type: string
                  minLength: 3
                  example: blurry, low quality
                  nullable: true
                type:
                  description: >-
                    Inference type in v2 dot notation (e.g. images.generations,
                    videos.animations, audio.speech)
                  type: string
                  example: images.generations
                model_slug:
                  type: string
                  example: Flux1schnell
                image:
                  description: Reference image (for price estimation of image-based types).
                  type: string
                  format: binary
                  nullable: true
              type: object
      responses:
        '200':
          description: Price calculation returned successfully
          content:
            application/json:
              schema:
                properties:
                  price:
                    type: number
                    format: float
                    example: 0.00012345
                type: object
        '422':
          description: Validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/response_error_unprocessable_entity'
      security:
        - bearerAuth: []
components:
  schemas:
    response_error_unprocessable_entity:
      properties:
        data:
          description: Information from success endpoint
          type: object
        message:
          description: Error general message
          type: string
        errors:
          description: Information about errors
          type: array
          items:
            properties:
              field:
                description: Field name
                type: string
              messages:
                description: Array of error messages
                type: array
                items: {}
            type: object
        statusCode:
          description: Status code
          type: integer
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      bearerFormat: JWT
      scheme: bearer

````