Welcome to Prompt Forge
Build powerful AI workflows with prompts and chains. API-first platform for developers.
Prompt Forge is a comprehensive platform for building, managing, and executing AI-powered workflows. Whether you're creating simple prompts or complex multi-step chains, Prompt Forge provides the tools you need to build production-ready AI applications.
Key Features
Prompt Management
Version-controlled prompts with variable templating, schema validation, and execution tracking.
Chain Workflows
Build complex multi-step workflows with conditional logic, data mapping, and parallel execution.
GraphQL API
Full-featured GraphQL API with type-safe queries, mutations, and real-time subscriptions.
Quick Example
Here's a simple example of executing a prompt via the GraphQL API:
mutation ExecutePrompt {
executePrompt(
promptId: "cm1234567890"
input: {
text: "Analyze the sentiment of this product review"
review: "This product exceeded my expectations!"
}
) {
output
latencyMs
tokenIn
tokenOut
costUsd
}
}The response includes the AI-generated output, execution metrics, and cost information:
{
"data": {
"executePrompt": {
"output": "Sentiment: Positive\nConfidence: 0.95\nKey phrases: 'exceeded expectations'",
"latencyMs": 1250,
"tokenIn": 45,
"tokenOut": 28,
"costUsd": "0.0012"
}
}
}Getting Started
Set up Authentication
Create an API key from your dashboard to authenticate your requests.
Create Your First Prompt
Design a prompt template with variables and configure the AI model parameters.
Execute via API
Call the GraphQL API to execute your prompt with input data.
Build Advanced Chains
Combine multiple prompts into workflows with conditional logic and data transformation.
Core Concepts
Prompts
Versioned templates with variable substitution, input validation, and model configuration. Track execution history, costs, and performance metrics.
Learn more →Chains
Multi-step workflows that combine prompts, API calls, and conditional logic. Pass data between steps, handle errors, and execute steps in parallel.
Learn more →