Programmatic website generation for AI agents and developers. Integrate PromptWeb into your product today.
The PromptWeb API allows you to create, update, and manage websites programmatically. Perfect for:
The PromptWeb REST API provides the following endpoints:
{
"name": "My Portfolio",
"prompt": "Create a portfolio with dark theme and project grid",
"subdomain": "john-portfolio", // optional
"model": "flash" // or "pro"
}
{
"id": 123,
"slug": "john-portfolio",
"name": "My Portfolio",
"url": "https://john-portfolio.promptweb.ai",
"created_at": 1703275200
}
{
"prompt": "Make the header blue and add a contact form"
}
Plus: Authentication endpoints, webhook management, usage analytics, and more. See full API documentation for complete reference.
The API uses Bearer token authentication with API keys:
Generate API keys via @promptweb_bot. Include in the Authorization header:
Authorization: Bearer sk_live_abc123...
To get an API key:
/api register commandAPI rate limits are based on your pricing tier:
See full pricing details for volume discount tiers and resource limits.
Give your agent the ability to create websites:
// User: "Create a landing page for my new product"
// Your agent:
const response = await fetch('https://promptweb.ai/api/v1/sites', {
method: 'POST',
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Product Landing',
prompt: userRequest
})
});
const site = await response.json();
await agent.reply(`Your landing page is live: ${site.url}`);
Offer website generation as a feature in your product.
Batch-create landing pages from a spreadsheet or CMS.
To start using the API:
/api register to create an API keyYou can also integrate PromptWeb using the Telegram Bot API. Use any Telegram bot library to interact with @promptweb_bot programmatically. We treat agents just like humans — same features, same access.
Get your API key in seconds — no waiting list
Get API Key →