Modern API Platform

Build with the MowPrompt API

Access prompt minification and Groq-powered optimization with strongly typed SDKs, live OpenAPI documentation, and clear integration patterns. Everything lives on our marketing site so your team lands exactly where the docs belong.

TypeScript SDK Python SDK OpenAPI 3.1 Scalar API Reference

Grab the SDKs

Install directly from this page with a single command.

Quick start

Copy a command, drop the SDK into your project, and start shipping.

TypeScript

Install the fetch-based client and authenticate with your API key.

curl -L https://mowprompt.com/sdk/typescript/mowprompt.ts -o src/mowprompt.ts
              
import { createMowPromptClient } from './mowprompt'

const client = createMowPromptClient({
  apiKey: process.env.MOWPROMPT_API_KEY!,
})

const result = await client.optimize({
  input: 'Summarize yesterday's notes into bullet points',
  preferFormat: 'plain_text',
})

console.log(result.final_prompt)
              

Python

Pydantic models, httpx client, and sync + async helpers.

curl -L https://mowprompt.com/sdk/python/mowprompt.py -o mowprompt.py
              
from mowprompt import MowPromptClient

client = MowPromptClient(api_key="YOUR_API_KEY")

response = client.minify(
    request={"input": "Draft the daily standup summary and reduce fluff."}
)

print(response.minified)
              

Interactive API reference

Explore endpoints, inspect schemas, and try real requests without leaving docs.mowprompt.com.

Loading Scalar API Reference…

Integration highlights

Smart quotas & rate limits

Responses include detailed usage headers for organization and API key consumption so you can surface live metering in your product.

Cache-aware optimizer

The optimize endpoint returns X-Mow-Optimize-Cache hints so you know when results were served from KV cache.

Consistent error envelope

SDKs surface MowPromptApiError with typed codes, request IDs, and optional details for fast debugging.