info:
  description: |
    Prompt-based name generation for developers or creatives.

    **Authentication Options**:
    - Recommended: Bearer token via `Authorization` header.
    - Fallback (GET): `token` query parameter.
    - Fallback (POST): `apiKey` in JSON body.
  title: Dungen Dev API
  version: 1.6.0
openapi: 3.0.0
paths:
  /api/v1/dungen-dev:
    post:
      requestBody:
        content:
          application/json:
            schema:
              properties:
                apiKey:
                  type: string
                nextWords:
                  type: integer
                prompt:
                  type: string
                temperature:
                  type: number
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  name:
                    type: string
                type: object
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '429':
          description: Too many requests
      summary: Generate a name from a prompt.
    get:
      parameters:
        - in: query
          name: nextWords
          schema:
            type: integer
        - in: query
          name: prompt
          schema:
            type: string
        - in: query
          name: temperature
          schema:
            type: number
        - in: query
          name: token
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  name:
                    type: string
                type: object
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '429':
          description: Too many requests
      summary: Generate a name from a prompt.

components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

security:
  - bearerAuth: []  # Global security, but overridden per-path
servers:
- url: https://infinitode.netlify.app
