Build with the Promplify API

REST APIJSONSSE Streaming
View Pricing

Quick Start

1

Create an Account

Sign up for free. You get 10 credits per day to start, no payment required.

2

Get Your API Key

Visit the Developer Portal to generate your API key.

3

Make Your First Call

Send a POST request to the optimize endpoint:

POST /api/v1/optimize/v3/optimize

Authentication

All API requests require an API key passed via the X-API-Key header.

GET /api/v1/credits/balance
Host: promplify.ai
X-API-Key: YOUR_API_KEY
Content-Type: application/json

Error Responses

401

Invalid or missing API key

{"detail": "Invalid or missing API key"}
402

No credits remaining

{"detail": "No credits remaining. Purchase more at promplify.ai"}
429

Rate limit exceeded

{"detail": "Rate limit exceeded. Retry after 45 seconds"}

Endpoints Reference

Base URL: https://promplify.ai/api

Rate Limits

WindowLimitType
Per minute60 requestsSliding window
Per day1,000 requestsSliding window

Response Headers

X-RateLimit-LimitMaximum requests allowed in the current window
X-RateLimit-RemainingRequests remaining in the current window
X-RateLimit-ResetUnix timestamp when the current window resets
Retry-AfterSeconds to wait before retrying (only on 429 responses)

Implement exponential backoff when you receive a 429 response. Start with the Retry-After value and increase the delay on consecutive failures.

Pricing & Credits

Cost per Endpoint

EndpointCost
Optimize1 credit
Rewrite1 credit
AnalyzeFree
Playground1 credit
Credits BalanceFree

Free Tier

Every registered account gets 10 free credits per day, resetting at midnight UTC. No payment needed to get started.

Credit Packages

Starter

$4.99

50 credits

$0.10/credit

Pro

$14.99

200 credits

$0.075/credit

Ultra

$29.99

500 credits

$0.06/credit

Code Examples

curl -X POST https://promplify.ai/api/v1/optimize/v3/optimize \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "prompt": "Explain quantum computing simply",
    "framework": "auto",
    "models": ["gpt-4o"]
  }'

# Check for errors
# 401 → Invalid or missing API key
# 402 → No credits remaining
# 429 → Rate limit exceeded (check Retry-After header)

Usage Restrictions

Fair Use Policy

  • No automated spam or abuse of the API
  • No reselling API access or credits to third parties
  • No circumventing rate limits via multiple accounts or keys
  • Do not send sensitive PII (social security numbers, passwords, medical records) in prompts

Data Handling

Prompts are processed by third-party LLM providers (OpenAI, Anthropic, Google, DeepSeek) and are subject to their respective data policies. We retain request logs for up to 30 days for debugging and abuse prevention. We do not use your prompts to train models.

Service Level

The API is provided as-is with no uptime guarantees or SLA. We aim for high availability but make no formal commitments. See our Terms of Service for full details.

Frequently Asked Questions

Ready to Get Started?

Sign up, grab your API key, and start optimizing prompts in minutes.