API Documentation
Web Scrape
Web Search
Prompt Engine
Speech to Text
File Store
Prompt Engine
Run Prompt
Execute a prompt using the prompt id.
POST
/
v1
/
prompt_engine
/
{id}
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.prompt_engine.run({
"input_values": {
"text": "How to get started with JigsawStack?"
},
"id": "0073d008-da9b-4c27-90a8-0240f3ecd4f5"
})
Copy
{
"success": true,
"result": {
"outline": [
{
"section": "Introduction to JigsawStack"
},
{
"section": "Prerequisites"
},
{
"section": "Installation and Setup"
},
{
"section": "Creating Your First Project"
},
{
"section": "Understanding the JigsawStack Architecture"
},
{
"section": "Basic JigsawStack Commands"
},
{
"section": "Exploring JigsawStack Features"
},
{
"section": "Troubleshooting Common Issues"
},
{
"section": "Next Steps and Resources"
}
]
},
"_usage": {
"input_tokens": 17,
"output_tokens": 104,
"inference_time_tokens": 1681,
"total_tokens": 1802
}
}
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.
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.prompt_engine.run({
"input_values": {
"text": "How to get started with JigsawStack?"
},
"id": "0073d008-da9b-4c27-90a8-0240f3ecd4f5"
})
Copy
{
"success": true,
"result": {
"outline": [
{
"section": "Introduction to JigsawStack"
},
{
"section": "Prerequisites"
},
{
"section": "Installation and Setup"
},
{
"section": "Creating Your First Project"
},
{
"section": "Understanding the JigsawStack Architecture"
},
{
"section": "Basic JigsawStack Commands"
},
{
"section": "Exploring JigsawStack Features"
},
{
"section": "Troubleshooting Common Issues"
},
{
"section": "Next Steps and Resources"
}
]
},
"_usage": {
"input_tokens": 17,
"output_tokens": 104,
"inference_time_tokens": 1681,
"total_tokens": 1802
}
}
Was this page helpful?
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.prompt_engine.run({
"input_values": {
"text": "How to get started with JigsawStack?"
},
"id": "0073d008-da9b-4c27-90a8-0240f3ecd4f5"
})
Copy
{
"success": true,
"result": {
"outline": [
{
"section": "Introduction to JigsawStack"
},
{
"section": "Prerequisites"
},
{
"section": "Installation and Setup"
},
{
"section": "Creating Your First Project"
},
{
"section": "Understanding the JigsawStack Architecture"
},
{
"section": "Basic JigsawStack Commands"
},
{
"section": "Exploring JigsawStack Features"
},
{
"section": "Troubleshooting Common Issues"
},
{
"section": "Next Steps and Resources"
}
]
},
"_usage": {
"input_tokens": 17,
"output_tokens": 104,
"inference_time_tokens": 1681,
"total_tokens": 1802
}
}
Assistant
Responses are generated using AI and may contain mistakes.