Developer Gateway v1.0

Promptician Developer API

Directly invoke Promptician's prompt compilation engine from your internal microservices, GitHub Actions, Slack bots, and agentic pipelines.

POST/v1/optimize
Authentication: Bearer Token

Sample Request (cURL)

curl -X POST https://api.promptician.in/v1/optimize \
  -H "Authorization: Bearer pt_live_99a8b7c6d5e4" \
  -H "Content-Type: application/json" \
  -d '{
    "raw_prompt": "write a typescript auth middleware for nextjs 15",
    "framework": "care",
    "target_model": "gpt-4o",
    "persona_id": "pers_staff_architect",
    "max_tokens": 1200
  }'

Sample Response (200 OK)

{
  "status": "success",
  "data": {
    "framework": "care",
    "target_model": "gpt-4o",
    "detected_intent": "coding",
    "optimized_prompt": "## CONTEXT\nYou are operating in a Next.js 15 App Router codebase...\n\n## ACTION\nAuthor a zero-trust middleware.ts...",
    "token_estimate": 435,
    "quality_score": 98.4
  }
}

Scoped API Keys

Generate production and sandbox API keys with IP-allowlisting, rate limits, and custom quota budgets per workspace.

Real-Time Webhooks

Receive instant webhook events on prompt updates, peer review approvals, and company template deprecations.

TypeScript & Python SDKs

Zero-dependency lightweight client libraries available on npm (`@promptician/sdk`) and PyPI (`promptician-python`).

Immediate Production Readiness

Ready to elevate your AI prompts from hobbyist to production-grade?

Join thousands of builders shipping predictable, enterprise-ready prompts today. Stop guessing and start compiling with deterministic certainty.

verified_userFree daily credits included•No credit card required•Zero prompt data retention