1. Docs
  2. Reference
  3. REST API Docs
  4. AI

AI

    The AI API exposes AI-assisted capabilities in Pulumi Cloud. Today the surface focuses on generating Pulumi project templates from natural-language prompts.

    AI Template

    Deprecated.
    POST /api/ai/template

    Generates a Pulumi template using the Pulumi AI service.

    Request Body

    • language string required
      The programming language for the generated template (e.g. ’typescript’, ‘python’, ‘go’).
    • instructions string required
      Natural language instructions describing the desired infrastructure.
    • conversationId string optional
      Optional identifier to continue an existing AI conversation.
    • connectionId string optional
      Optional identifier for the connection/session.

    Responses

    200 OK