> ## 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

> Unified prompt booster — enhance prompts for any model and type using AI-powered guide system. Accepted `type` values (v2 noun-based dot notation): `images.generations`, `images.edits`, `images.upscales`, `images.background-removals`, `images.ocr`, `videos.generations`, `videos.animations`, `videos.upscales`, `videos.background-removals`, `videos.transcriptions`, `audio.speech`, `audio.music`, `audio.transcriptions`, `embeddings`.

Enhance a raw user prompt into a detailed, model-friendly prompt using the AI guide that matches the **target model** and **inference type**.

* Set **`type`** (v2 dot notation) and **`model_slug`** to pick the right guide.
* For **`images.edits`** and **`videos.animations`**, also send the source **`image`** (URL, data-URI, base64, or file).
* Synchronous — the enhanced prompt is returned directly in the response body (`{ prompt, negative_prompt }`).

<Info>
  Required fields: `prompt`, `type`, `model_slug` (plus `image` for `images.edits` / `videos.animations`). The returned `negative_prompt` is provided for compatibility and is ignored by models that do not support negative prompts (e.g. FLUX.2 Klein).
</Info>

### Accepted `type` values

`images.generations`, `images.edits`, `images.upscales`, `images.background-removals`, `images.ocr`, `videos.generations`, `videos.animations`, `videos.upscales`, `videos.background-removals`, `videos.transcriptions`, `audio.speech`, `audio.music`, `audio.transcriptions`, `embeddings`

### Example (image-to-image)

```bash theme={null}
curl -X POST "https://api.deapi.ai/api/v2/prompts/enhancements" \
  -H "Authorization: Bearer <TOKEN>" \
  -F "prompt=Make it look like a digital photo" \
  -F "type=images.edits" \
  -F "model_slug=Flux_2_Klein_4B_BF16" \
  -F "image=@source.jpg"
```

Then send the returned `prompt` to the matching generation endpoint (e.g. `POST /api/v2/images/edits`).


## OpenAPI

````yaml openapi-v2.json POST /api/v2/prompts/enhancements
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:
    post:
      tags:
        - Client API v2
      description: >-
        Unified prompt booster — enhance prompts for any model and type using
        AI-powered guide system. Accepted `type` values (v2 noun-based dot
        notation): `images.generations`, `images.edits`, `images.upscales`,
        `images.background-removals`, `images.ocr`, `videos.generations`,
        `videos.animations`, `videos.upscales`, `videos.background-removals`,
        `videos.transcriptions`, `audio.speech`, `audio.music`,
        `audio.transcriptions`, `embeddings`.
      operationId: clientBoostPromptV2
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              properties:
                prompt:
                  type: string
                  minLength: 3
                  example: A beautiful landscape with mountains
                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. Required for
                    images.edits/videos.animations. Supported formats: JPEG,
                    PNG, BMP, GIF, WebP.
                  type: string
                  format: binary
                  nullable: true
              type: object
      responses:
        '200':
          description: Enhanced prompts returned successfully
          content:
            application/json:
              schema:
                properties:
                  prompt:
                    type: string
                  negative_prompt:
                    type: string
                    nullable: true
                type: object
        '422':
          description: Validation failed, insufficient balance, or no guide available
          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

````