The Create with AI block

The Create with AI block is a beta feature available with Postman Free, Basic, and Professional plans.

Create AI block

The Create with AI block uses artificial intelligence (AI) models to generate text, images, and JSON data based on your plain-language prompts. For example, you could enter a prompt like "Create a profile picture for a random person" or "Write a welcome email for a new employee at Postman".

You can assign another block's output to the Create with AI block's built-in variable, or insert data blocks into the Create with AI block. You can then reference the variable or data block in your prompt using curly braces. To learn how, see Setup.

You consume credits each time you run a flow that has a Create with AI block. The Create with AI block consumes different amounts of credits depending on which model it uses. To learn more, see How flows consume credits.

Input

Connect another block's output port to the Create with AI block's single input port to assign incoming data to a variable. Select the variable's name to edit it. Select Add icon Add data blocks to insert a data block into the Create with AI block. You can then assign a value to the data block and reference it in your prompt with curly braces like {{this}}.

Output

The Create with AI block's single output sends the text, image, or JSON data that the AI model creates. The icon next to this port changes depending on which mode is selected. It shows Aa for text, ? for images, and () for JSON data.

Setup

You can set up the Create with AI block to generate text, images, or JSON. Select the type of content you want from the dropdown list next to the block's title. Select Smart from the dropdown list to let the Create with AI block decide which type of content you want based on your prompt.

Select the text box to enter a prompt in plain language. Select Test your prompt icon Test your prompt to see how the Create with AI block handles your prompt and if it needs to be reworded.

You can insert data blocks into the Create with AI block to reference their data in your prompts. For example, you could insert a String block into your Create with AI block, name the variable animal, and reference it in a prompt like this: Create an image of {{animal}}. The Create with AI block will generate an image of whatever animal is assigned to the variable animal.

Select Add icon Add data blocks to insert a data block into your Create with AI block. You can change an inserted block to a different data block by selecting the inserted block's icon and choosing a block from the dropdown list.

To change the AI model and adjust its settings, do the following:

  1. Select the Create with AI block, then select Setting icon Additional Settings.

  2. Select Postbot icon AI Model, then select a model from the dropdown list.

  3. (Optional) Select Predictability or Creativity to adjust their settings for the selected AI model. You can use the slider to set them higher or lower. A higher predictability value will return results that are more likely to repeat given the same conditions. A higher creativity value will return results with more variety.

You can insert the following blocks into the Create with AI block to process their data:

Last modified: 2025/01/22