AI API
API endpoints for AI-powered features.
AI API
Pro + AI
Generate content
POST /v1/ai/generateRequest body:
{
"topic": "PHP 8.3 features",
"platforms": ["twitter", "linkedin"],
"tone": "professional",
"max_variants": 2
}Response:
{
"data": {
"generations": [
{
"platform": "twitter",
"variants": [
"PHP 8.3 brings typed class constants and json_validate(). Here's what matters for your next project →",
"Big news for PHP developers: v8.3 is packed with features. Typed constants, json_validate(), and more 🚀"
]
},
{
"platform": "linkedin",
"variants": [
"PHP 8.3 was released with several exciting features..."
]
}
]
}
}Optimize content
POST /v1/ai/optimizeRequest body:
{
"content": "We released a new version of our product.",
"platforms": ["twitter", "linkedin"],
"goal": "engagement"
}Suggest hashtags
POST /v1/ai/hashtagsRequest body:
{
"content": "New blog post about microservices architecture",
"platform": "twitter",
"max_hashtags": 10
}Response:
{
"data": {
"hashtags": ["microservices", "architecture", "webdev", "coding", "tech", "distributed", "backend", "devops"]
}
}