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/templateGenerates a Pulumi template using the Pulumi AI service.
Request Body
Schema: AITemplateRequest
languagestring requiredThe programming language for the generated template (e.g. ’typescript’, ‘python’, ‘go’).instructionsstring requiredNatural language instructions describing the desired infrastructure.conversationIdstring optionalOptional identifier to continue an existing AI conversation.connectionIdstring optionalOptional identifier for the connection/session.
Responses
200
OK
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.