Developer API
Generate production-ready prompts from your backend or scripts. (API access is currently disabled or invite-only)
Authentication
Include your API key in the Authorization header:
Authorization: Bearer prmpt_your_api_key_here
Generate prompt
POST https://prmptly.dev/api/v1/generate
Request body
{
"input": "Instagram car ad, cinematic, 15 seconds",
"model": "openai/gpt-4o-mini",
"tone": "professional",
"preset": "marketing"
}Response
{
"prompt": "You are a senior creative director...",
"credits_used": 10,
"balance": 90,
"generation_id": "uuid"
}cURL example
curl -X POST https://prmptly.dev/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "Instagram car ad", "model": "openai/gpt-4o-mini", "tone": "professional"}'Models
| Model ID | Label | Credits |
|---|---|---|
| openai/gpt-4o | GPT-4o | 20 |
| openai/gpt-4o-mini | GPT-4o Mini | 10 |
| anthropic/claude-sonnet-4.6 | Claude Sonnet 4.6 | 20 |
| anthropic/claude-sonnet-4.5 | Claude Sonnet 4.5 | 20 |
| anthropic/claude-3.5-haiku | Claude 3.5 Haiku | 10 |
| google/gemini-2.5-flash | Gemini 2.5 Flash | 10 |
| google/gemini-2.5-pro-preview | Gemini 2.5 Pro | 20 |
| meta-llama/llama-4-maverick | Llama 4 Maverick | 10 |
| deepseek/deepseek-r1 | DeepSeek R1 | 10 |
Error codes
- 401 — Invalid or missing API key
- 402 — Insufficient credits
- 429 — Rate limit exceeded
- 503 — AI service unavailable
Pricing
API usage consumes credits from your account — same as the web app. View credit packs →