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

# Run Prompt (Playground)



## OpenAPI

````yaml POST /v1/prompts/run
openapi: 3.0.0
info:
  title: Wardin API
  description: AI governance & observability platform — external REST API
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/prompts/run:
    post:
      tags:
        - prompts
      summary: Run a prompt version through the gateway playground
      operationId: PromptsController_run
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunPromptDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunResultDto'
      security:
        - bearer: []
components:
  schemas:
    RunPromptDto:
      type: object
      properties:
        promptId:
          type: string
          description: Parent prompt UUID
        versionId:
          type: string
          description: Version UUID to run
        variables:
          type: object
          description: Variable substitution map for {{key}} placeholders
          additionalProperties:
            type: string
          nullable: true
      required:
        - promptId
        - versionId
        - variables
    RunResultDto:
      type: object
      properties:
        output:
          type: string
          description: Model output text
        inputTokens:
          type: number
          description: Prompt tokens consumed (excl. cache tokens)
        outputTokens:
          type: number
          description: Completion tokens produced
        costUsd:
          type: number
          description: Estimated cost in USD
      required:
        - output
        - inputTokens
        - outputTokens
        - costUsd
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````