API Documentation
Web Scrape
Web Search
Prompt Engine
File Store
Prompt Engine
Run Prompt
Prompt Engine
Run Prompt
Execute a prompt using the prompt id.
POST
/
v1
/
prompt_engine
/
{id}
import { JigsawStack } from "jigsawstack";
const jigsawstack = JigsawStack({
apiKey: "your-api-key",
});
const result = await jigsawstack.prompt_engine.run({
id: "e58d762a-9a00-4907-8cab-5ce6221bb6df",
input_values: {
about: "Leaning Tower of Pisa",
},
});
{
"success": true,
"result": "Once upon a time, in the beautiful city of Pisa, Italy, there stood a magnificent tower that would become known as the Leaning Tower of Pisa. The tower was originally built as a bell tower for the nearby cathedral, and construction began in 1173.\n\nHowever, as the tower began to rise higher and higher, it became clear that there was a problem - the tower was leaning to one side. The soft ground beneath the tower was unable to support its weight, causing it to tilt at an angle. Despite efforts to correct the lean during construction, the tower continued to lean as it was completed in 1372.\n\nOver the centuries, the Leaning Tower of Pisa became a famous landmark and a symbol of Italy. Tourists from all over the world flocked to Pisa to see the tower and take pictures of themselves pretending to hold it up or push it over.\n\nDespite its precarious lean, the tower has managed to stand for over 800 years, thanks to various engineering efforts to stabilize it. In the 20th century, further measures were taken to prevent the tower from toppling over, including removing soil from underneath the tower and installing counterweights.\n\nToday, the Leaning Tower of Pisa remains one of the most iconic and beloved landmarks in Italy, attracting millions of visitors each year who marvel at its unique tilt and the incredible feat of engineering that has kept it standing for so long. It serves as a reminder that even the most flawed and imperfect structures can still be beautiful and enduring."
}
Header
Your JigsawStack API key
Body
The input values. This is required if the inputs
parameter was specified
when creating a prompt. Each input value has a 500000
character limit
If set, partial message chunk will be sent.
Response
Indicates whether the call was successful.
import { JigsawStack } from "jigsawstack";
const jigsawstack = JigsawStack({
apiKey: "your-api-key",
});
const result = await jigsawstack.prompt_engine.run({
id: "e58d762a-9a00-4907-8cab-5ce6221bb6df",
input_values: {
about: "Leaning Tower of Pisa",
},
});
{
"success": true,
"result": "Once upon a time, in the beautiful city of Pisa, Italy, there stood a magnificent tower that would become known as the Leaning Tower of Pisa. The tower was originally built as a bell tower for the nearby cathedral, and construction began in 1173.\n\nHowever, as the tower began to rise higher and higher, it became clear that there was a problem - the tower was leaning to one side. The soft ground beneath the tower was unable to support its weight, causing it to tilt at an angle. Despite efforts to correct the lean during construction, the tower continued to lean as it was completed in 1372.\n\nOver the centuries, the Leaning Tower of Pisa became a famous landmark and a symbol of Italy. Tourists from all over the world flocked to Pisa to see the tower and take pictures of themselves pretending to hold it up or push it over.\n\nDespite its precarious lean, the tower has managed to stand for over 800 years, thanks to various engineering efforts to stabilize it. In the 20th century, further measures were taken to prevent the tower from toppling over, including removing soil from underneath the tower and installing counterweights.\n\nToday, the Leaning Tower of Pisa remains one of the most iconic and beloved landmarks in Italy, attracting millions of visitors each year who marvel at its unique tilt and the incredible feat of engineering that has kept it standing for so long. It serves as a reminder that even the most flawed and imperfect structures can still be beautiful and enduring."
}
Was this page helpful?
import { JigsawStack } from "jigsawstack";
const jigsawstack = JigsawStack({
apiKey: "your-api-key",
});
const result = await jigsawstack.prompt_engine.run({
id: "e58d762a-9a00-4907-8cab-5ce6221bb6df",
input_values: {
about: "Leaning Tower of Pisa",
},
});
{
"success": true,
"result": "Once upon a time, in the beautiful city of Pisa, Italy, there stood a magnificent tower that would become known as the Leaning Tower of Pisa. The tower was originally built as a bell tower for the nearby cathedral, and construction began in 1173.\n\nHowever, as the tower began to rise higher and higher, it became clear that there was a problem - the tower was leaning to one side. The soft ground beneath the tower was unable to support its weight, causing it to tilt at an angle. Despite efforts to correct the lean during construction, the tower continued to lean as it was completed in 1372.\n\nOver the centuries, the Leaning Tower of Pisa became a famous landmark and a symbol of Italy. Tourists from all over the world flocked to Pisa to see the tower and take pictures of themselves pretending to hold it up or push it over.\n\nDespite its precarious lean, the tower has managed to stand for over 800 years, thanks to various engineering efforts to stabilize it. In the 20th century, further measures were taken to prevent the tower from toppling over, including removing soil from underneath the tower and installing counterweights.\n\nToday, the Leaning Tower of Pisa remains one of the most iconic and beloved landmarks in Italy, attracting millions of visitors each year who marvel at its unique tilt and the incredible feat of engineering that has kept it standing for so long. It serves as a reminder that even the most flawed and imperfect structures can still be beautiful and enduring."
}