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 add data blocks to the Create with AI block. You can then reference the variable or data in your prompt using curly braces. To learn how, see Setup.
Flows consume credits each time they execute during a run. Most blocks consume one credit per block per execution. However, the Create with AI block consumes different amounts of credits depending on which model they use. To learn more, see Manage your team's usage of Postman Flows.
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 the Add data blocks icon to add more data blocks.
The Create with AI block's single output sends the text, image, or JSON data it 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.
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 the Test your prompt icon to see how the Create with AI block handles your prompt and if it needs to be reworded.
You can embed data blocks in the Create with AI block to reference their data in your prompts. For example, you could embed a String block in 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 the Add data blocks icon to embed a data block in your Create with AI block. You can change an embedded block to a different data block by selecting the embedded block's icon and choosing a block from the dropdown list.
You can embed the following blocks in the Create with AI block to process their data:
Last modified: 2024/08/23