API Reference
Integrate AIPostMockup's AI generation and mockup rendering directly into your applications. Available on Business plan ($79/mo).
Who this API is for
The AIPostMockup API is designed for SaaS teams, agencies, internal marketing platforms, and workflow tools that need AI-generated social content plus realistic mockup rendering. Typical use cases include campaign generation, approval dashboards, client reporting, content planning tools, and white-labeled social media utilities.
If you want to generate multiple post variations, render preview assets, monitor credit usage, or connect mockup creation to other systems, this documentation gives you the endpoint structure, authentication model, and request patterns to get started quickly.
Popular workflows
Generate campaign variants, render previews, and return assets to an approval queue.
Developer resources
Use authentication, credits, webhooks, and endpoint examples to build reliable integrations.
Helpful links
See pricing, embed options, and the blog for implementation ideas.
Authentication
All API requests require a Bearer token in the Authorization header.
Authorization: Bearer apm_live_your_api_key_here
AI Engines
Choose which engine to use per request. Higher engines produce better content but cost more credits.
Fast & efficient. 1 credit/post.
v1_sparkSmart & creative. 3 credits/post.
v2_proBest quality. 5 credits/post.
v3_ultraRate Limits
| Endpoint | Limit | Window |
|---|---|---|
| /v1/generate | 60 requests | per minute |
| /v1/renders | 30 requests | per minute |
| /v1/campaigns | 10 requests | per minute |
| /v1/templates | 120 requests | per minute |
Endpoints
/v1/generateGenerate AI posts from keywords. Choose your engine tier for quality control.
{
"keywords": ["startup", "growth", "ai"],
"engine": "v2_pro",
"platforms": ["linkedin", "instagram", "twitter"],
"tone": "professional"
}{
"id": "gen_abc789",
"credits_used": 8,
"posts": [
{
"platform": "linkedin",
"content": "We bootstrapped to $1M ARR...",
"engagement_score": 9.2,
"hashtags": ["#startup", "#growth"]
}
]
}/v1/templatesList available mockup templates with filtering by platform and category.
{
"data": [
{
"id": "tpl_123",
"name": "LinkedIn Viral Post",
"platform": "linkedin",
"category": "engagement",
"downloads": 12400
}
],
"meta": { "total": 150, "page": 1 }
}/v1/rendersCreate a mockup render with your generated content.
{
"template_id": "tpl_123",
"content": "Your post content here...",
"author_name": "Alex Chen",
"format": "png",
"resolution": "2x"
}{
"render_id": "rnd_xyz456",
"status": "completed",
"url": "https://cdn.aipostmockup.com/renders/rnd_xyz456.png",
"size": "1200x627"
}/v1/campaignsGenerate a full campaign — multiple variations across platforms for A/B testing.
{
"keywords": ["saas", "launch", "product"],
"engine": "v3_ultra",
"variations": 5,
"platforms": ["linkedin", "twitter", "instagram", "facebook"]
}{
"campaign_id": "cmp_def123",
"credits_used": 40,
"total_posts": 20,
"variations": 5,
"status": "completed"
}/v1/account/creditsCheck remaining credits and usage for the current billing period.
{
"plan": "growth",
"credits_total": 500,
"credits_used": 234,
"credits_remaining": 266,
"engines_available": ["v1_spark", "v2_pro", "v3_ultra"],
"billing_resets": "2026-03-01T00:00:00Z"
}Ready to integrate?
API access is available on the Business plan. Get your API key and start building.
Get API Access