API Reference v1
Complete REST API documentation for Influencer Studio. Generate images, videos, and manage your account programmatically.
Quick Links
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY You can generate API keys from your account settings.
Base URL
https://api.influencerstudio.com/api/v1 Images
/api/v1/images/generateGenerate images
Generate images from a text prompt with optional influencer and settings
Request Body
Image generation parameters
Content-Type: application/json Responses
curl -X POST "https://api.influencerstudio.com/api/v1/images/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A professional headshot of a person in business attire, studio lighting",
"model": "flux-krea",
"settings": {
"aspect_ratio": "1:1",
"batch": 1
}
}'/api/v1/images/editEdit image
Edit an existing image using AI inpainting with a text prompt
Request Body
Image editing parameters
Content-Type: application/json Responses
curl -X POST "https://api.influencerstudio.com/api/v1/images/edit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/image.jpg",
"prompt": "change the background to a beach"
}'/api/v1/images/face-swapSwap faces in images
Swap faces between a source image and target image
Request Body
Face swap parameters
Content-Type: application/json Responses
curl -X POST "https://api.influencerstudio.com/api/v1/images/face-swap" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source_image": "https://example.com/face.jpg",
"target_image": "https://example.com/body.jpg"
}'Videos
/api/v1/videos/generateGenerate video
Generate a video from a text prompt with optional first frame image
Request Body
Video generation parameters
Content-Type: application/json Responses
curl -X POST "https://api.influencerstudio.com/api/v1/videos/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A person walking through a city, cinematic",
"model": "kling-v2",
"settings": {
"aspect_ratio": "16:9",
"duration": 5
}
}'/api/v1/videos/lipsyncCreate lip sync video
Generate a lip-synced video by synchronizing video with audio
Request Body
Lip sync generation parameters
Content-Type: application/json Responses
curl -X POST "https://api.influencerstudio.com/api/v1/videos/lipsync" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"video_url": "https://example.com/video.mp4",
"audio_url": "https://example.com/audio.mp3"
}'Generations
/api/v1/generations/{id}/statusGet generation status
Poll the status of a generation and get result URLs when complete
Responses
curl -X GET "https://api.influencerstudio.com/api/v1/generations/{id}/status" \
-H "Authorization: Bearer YOUR_API_KEY"Billing
/api/v1/billing/plansGet available credit plans
Returns all available one-time credit purchase plans
Responses
curl -X GET "https://api.influencerstudio.com/api/v1/billing/plans" \
-H "Authorization: Bearer YOUR_API_KEY"/api/v1/billing/creditsGet current credit balance
Returns the total credit balance for the authenticated team
Responses
curl -X GET "https://api.influencerstudio.com/api/v1/billing/credits" \
-H "Authorization: Bearer YOUR_API_KEY"/api/v1/billing/top-upPurchase credits
Create a Stripe checkout session to purchase credits (one-time purchases only)
Request Body
Credit purchase details
Content-Type: application/json Responses
curl -X POST "https://api.influencerstudio.com/api/v1/billing/top-up" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"plan_id": "497267"
}'/api/v1/billing/verificationVerify payment method
Create a Stripe checkout session to verify payment method and receive 500 free credits
Responses
curl -X POST "https://api.influencerstudio.com/api/v1/billing/verification" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'