Blog Draft API
Generate complete blog post drafts from a topic description using Claude AI via REST API. Produces structured posts with a compelling headline, introduction, H2-organized body sections, and a conclusion — typically 800–2000 words depending on your length setting.
Try it live →How it works
POST a topic, optional keywords to target, desired length (short/medium/long), and tone (professional/casual/technical). The API generates a full blog draft with proper heading hierarchy, natural paragraph flow, and optional internal linking suggestions.
Use cases
- Generate first drafts for content teams to edit and publish
- Produce SEO-targeted content for long-tail keyword clusters
- Create documentation articles from feature specifications
- Build content pipelines that produce blog posts from product data
API Reference
POST https://slopshop.gg/v1/llm-blog-draft
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Input parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text |
string | required | The text to process with AI |
options |
object | optional | Optional configuration (format, length, etc.) |
Example response
{
"data": {
"result": "AI-generated result based on your input.",
"model": "claude-3-5-sonnet",
"tokens_used": 150
},
"meta": {
"credits_used": 20,
"engine": "real",
"ms": 4
}
}
Examples
Three real-world scenarios showing how developers use Blog Draft in production.
curl -X POST https://slopshop.gg/v1/llm-blog-draft \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"topic": "How to implement JWT authentication in a Node.js Express API", "keywords": ["jwt auth nodejs", "express jwt tutorial"], "length": "medium", "tone": "technical"}'
curl -X POST https://slopshop.gg/v1/llm-blog-draft \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"topic": "Announcing real-time collaboration in our design tool", "keywords": ["design collaboration", "real-time editing"], "length": "medium", "tone": "professional"}'
curl -X POST https://slopshop.gg/v1/llm-blog-draft \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"topic": "Best API tools for AI agent development in 2025", "keywords": ["api tools for ai agents", "ai agent apis"], "length": "long", "tone": "casual"}'
Code examples
curl
curl -X POST https://slopshop.gg/v1/llm-blog-draft \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "your data here"}'
Python
import requests
response = requests.post(
"https://slopshop.gg/v1/llm-blog-draft",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"input": "your data here"}
)
result = response.json()
print(result["data"])
Node.js
const response = await fetch("https://slopshop.gg/v1/llm-blog-draft", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({ input: "your data here" })
});
const { data } = await response.json();
console.log(data);
CLI
# Install the Slopshop CLI
npm install -g slopshop
# Set your API key
export SLOPSHOP_KEY=your_api_key
# Call llm-blog-draft
slop llm-blog-draft '{"input": "your data here"}'
Pricing
Credits are purchased in bundles starting at $1 for 1,000 credits. All compute APIs like this one use 20 credits per call — that's $0.02. See all pricing tiers.
Related APIs in AI: Content
View the full API catalog · Try in playground · Documentation