Observed since 21 Oct, 11:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Create and manage AI-powered Instagram influencers programmatically
Create and manage AI-powered Instagram influencers programmatically.
pip install ai-influencer
ai-influencer lets you spin up a fully automated AI Instagram influencer with a single Python file. Give it a persona (name, niche, reference photo) and it will:
from influencer_ai import Influencer
# 1. Initialize (reads from .env automatically)
kai = Influencer()
# 2. Define the influencer's identity
kai.set_persona(
name="Kai",
gender="female",
age=24,
niche="fitness & lifestyle",
tone="energetic and motivating",
# Local file or HTTPS URL — auto-uploaded to Cloudinary
sample_images=["path/to/reference_photo.jpg"],
)
# 3. Post a Reel (full AI pipeline)
kai.post_reel(
prompt="Morning yoga on the beach at golden hour",
caption="auto",
hashtags=["#yoga", "#morningvibes"],
improve_prompt=True,
duration=15,
resolution="720p",
)
# 4. Post an image
kai.post_image(
prompt="Sitting in a cosy café, warm sunlight, candid smile",
caption="auto",
)
# 5. Post a carousel (consistent theme across all slides)
kai.post_carousel(
prompts=[
"At the entrance of Taj Mahal at sunrise, excited, white salwar kameez",
"Selfie with Taj Mahal in background, same white outfit",
"Walking along the reflecting pool, golden hour, same outfit",
],
caption="auto",
hashtags=["#tajmahal", "#travel"],
)
# 6. Schedule a future post
kai.post_image(
prompt="Sunset beach yoga",
schedule="2025-12-01 07:00",
)
Create a .env file in your project root:
KIE_API_KEY=...
INSTAGRAM_ACCESS_TOKEN=...
INSTAGRAM_USER_ID=...
OPENROUTER_API_KEY=... # optional — enables prompt enhancement & captions
CLOUDINARY_CLOUD_NAME=...
CLOUDINARY_API_KEY=...
CLOUDINARY_API_SECRET=...
Or pass them directly to Influencer(kie_api_key=..., ...).
prompt
└─► OpenRouter (enhance_prompt)
└─► Kie.ai GPT Image 2 (scene image with reference photos)
└─► Kie.ai Grok image-to-video (15s, 720p)
└─► Cloudinary (permanent hosting)
└─► Meta Graph API (Instagram publish)
Visual consistency: The last 5 generated posts are automatically used as reference images for future generations, keeping your influencer's appearance consistent across content.
| Service | Purpose | Free tier |
|---|---|---|
| Kie.ai | AI image & video generation | Credits-based |
| Cloudinary | Permanent media hosting | 25 GB free |
| OpenRouter | Caption & prompt enhancement | Pay per token |
| Meta Graph API | Instagram publishing | Free |
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 21 May 2026 | 10 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 11:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:745f0d6d65e5992d58cef85b40b92b1598682a678a39cd9622896febba777fcf