AI: Content 20 credits LLM

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

API Reference

POST https://slopshop.gg/v1/llm-blog-draft
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Input parameters

ParameterTypeRequiredDescription
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.

Example 1
Write a technical tutorial
Draft a how-to article targeting developers searching for a specific solution.
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"}'
Example 2
Write a product launch post
Generate a launch announcement blog post for a new feature.
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"}'
Example 3
Write an SEO landing article
Draft a keyword-targeting article for organic search traffic.
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 per call
20
credits
Cost per call
$0.02
at Starter tier
Tier
LLM
Requires LLM key

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