WirewAPI Documentation

API documentation and testing interface

WebSocket: /ai/chat

Real-time chat interface with AI assistant

Test Interface

GET: /ai/img

Generate images based on prompts

Test Interface

POST: /ai/titlegen

Generate a title for a chat based on a question

Test Interface

POST: /ai/complete

Get AI completions for prompts

Test Interface

GET: /ai/siteGenerate/url/:url

Generate a comprehensive, engaging blog post for the given URL. Optionally, provide a ?context= query parameter to specify the blog's context or topic. If no context is provided, the AI will generate one. The response is streamed as HTML content for the <body> only, styled with TailwindCSS. The blog will include relevant outlinks (external links to reputable sources) and images using /ai/img?prompt=... where appropriate.

Example Usage

Generate a blog for a specific URL:
GET /ai/siteGenerate/url/https%3A%2F%2Fexample.com%2Fmy-blog-post
With context:
GET /ai/siteGenerate/url/https%3A%2F%2Fexample.com%2Fmy-blog-post?context=AI%20in%20Healthcare
Note: The response is streamed as HTML. You can render it directly in a web page or process it as needed.