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

# Post apiv2tensorshotsjobsprompt enhancer

> Enhance raw tensorshots prompts before job creation.



## OpenAPI

````yaml https://backend.tensorpix.ai/api/schema/ post /api/v2/tensorshots/jobs/prompt-enhancer/
openapi: 3.1.0
info:
  title: TensorPix OpenAPI Documentation
  version: 1.1.0
  termsOfService: https://tensorpix.ai/terms-conditions
  contact:
    name: TensorPix Dev Team
    email: devs@tensorpix.ai
servers:
  - url: https://backend.tensorpix.ai
security: []
externalDocs:
  url: https://docs.tensorpix.ai
  description: Check out the full TensorPix documentation.
paths:
  /api/v2/tensorshots/jobs/prompt-enhancer/:
    post:
      tags:
        - v2
      description: Enhance raw tensorshots prompts before job creation.
      operationId: v2_tensorshots_jobs_prompt_enhancer_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromptEnhancerRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PromptEnhancerRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PromptEnhancerRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptEnhancerRequest'
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthenticatedError'
          description: ''
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
          description: ''
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
          description: ''
      security:
        - tokenAuth: []
components:
  schemas:
    PromptEnhancerRequest:
      type: object
      description: Validate prompt enhancer input across tensorshots job types.
      properties:
        job_type:
          $ref: '#/components/schemas/JobTypeEnum'
        prompt:
          type: string
          maxLength: 80000
      required:
        - job_type
        - prompt
    ValidationError:
      type: object
      description: Serializer stub used for simple documented error payloads.
      properties:
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
        non_field_errors:
          type: array
          items:
            type: string
      required:
        - errors
        - non_field_errors
    UnauthenticatedError:
      type: object
      description: Serializer stub used for simple documented error payloads.
      properties:
        detail:
          type: string
      required:
        - detail
    ForbiddenError:
      type: object
      description: Serializer stub used for simple documented error payloads.
      properties:
        detail:
          type: string
      required:
        - detail
    RateLimitError:
      type: object
      description: Serializer stub used for simple documented error payloads.
      properties:
        detail:
          type: string
      required:
        - detail
    JobTypeEnum:
      enum:
        - text_to_image_job
        - image_to_image_job
        - image_to_video_job
      type: string
      description: |-
        * `text_to_image_job` - Text to Image
        * `image_to_image_job` - Image to Image
        * `image_to_video_job` - Image to Video
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Token-based authentication with required prefix "Token"

````