Skip to main content

CrewAI tools for VAP - Video/Audio Production for AI Agent Crews

Project description

VAP CrewAI Tools

Give your Crew a Studio.

CrewAI tools for VAP (Video/Audio Production). Add a Producer Agent to your crew for instant video, music, and image generation capabilities.

PyPI version Python 3.9+ License: MIT

Installation

pip install vap-crewai

Quick Start

import os
from crewai import Crew, Task
from vap_crewai import VapProducerAgent, vap_production_tool

os.environ["VAP_API_KEY"] = "vap_your_api_key"

# Option 1: Use pre-configured Producer Agent
producer = VapProducerAgent()

task = Task(
    description="Create an energetic startup launch video with upbeat music",
    agent=producer,
    expected_output="Video URL, Music URL, and Thumbnail URL"
)

crew = Crew(agents=[producer], tasks=[task])
result = crew.kickoff()

Option 2: Use Tools with Custom Agent

from crewai import Agent
from vap_crewai import vap_production_tool, vap_video_tool

marketing_lead = Agent(
    role="Marketing Lead",
    goal="Create compelling marketing content",
    backstory="Expert in digital marketing with a focus on video content",
    tools=[vap_production_tool, vap_video_tool],
)

Available Tools

Tool Description Cost
vap_production_tool Full production (video + music + thumbnail) $5.90
vap_video_tool Single video generation $1.90
vap_music_tool Background music generation $0.59
vap_image_tool Single image generation $0.29

Recommended: vap_production_tool

For most use cases, use vap_production_tool - it handles everything in one call:

  • 🎬 Video generation
  • 🎵 Background music
  • 🖼️ Thumbnail
  • 📝 Metadata

Pre-configured Agent

VapProducerAgent() returns a ready-to-use CrewAI Agent with all VAP tools and an optimized configuration:

from vap_crewai import VapProducerAgent

# Basic usage
producer = VapProducerAgent()

# With custom API key
producer = VapProducerAgent(api_key="vap_xxx")

# Disable verbose output
producer = VapProducerAgent(verbose=False)

Multi-Agent Crew Example

from crewai import Crew, Task, Agent
from vap_crewai import VapProducerAgent, vap_production_tool

# Create agents
researcher = Agent(
    role="Content Researcher",
    goal="Research trending topics and content ideas",
    backstory="Expert in market research and trend analysis",
)

producer = VapProducerAgent()

writer = Agent(
    role="Script Writer",
    goal="Write compelling video scripts",
    backstory="Professional copywriter for video content",
)

# Define tasks
research_task = Task(
    description="Research the latest trends in AI technology",
    agent=researcher,
    expected_output="List of trending AI topics with descriptions"
)

script_task = Task(
    description="Write a 30-second video script about the top AI trend",
    agent=writer,
    expected_output="Video script with scene descriptions"
)

production_task = Task(
    description="Create a video based on the script",
    agent=producer,
    expected_output="Video URL, Music URL, Thumbnail URL"
)

# Create and run crew
crew = Crew(
    agents=[researcher, writer, producer],
    tasks=[research_task, script_task, production_task],
    verbose=True
)

result = crew.kickoff()

Environment Variables

Variable Description
VAP_API_KEY Your VAP API key (required)

Get your API key at vapagent.com

Links

License

MIT License - see LICENSE for details.


Directive: #406 (CrewAI Wrapper Implementation)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vap_crewai-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vap_crewai-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file vap_crewai-0.1.0.tar.gz.

File metadata

  • Download URL: vap_crewai-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for vap_crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 13611253513c2e1fc6302bed87bb92e97399cd8753e9575a24cd2f16c0fd163e
MD5 ad0cbfc522bdada73c64d6ccb1529a24
BLAKE2b-256 2e62576db94a79d56cbec3edfa4b13f2f252fe5f60a2c3b43cdc3a7ae31afee6

See more details on using hashes here.

File details

Details for the file vap_crewai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vap_crewai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for vap_crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 436283c063b0bdab7c94bb27aebf9a98a711d219fd910cb60bf87372197d426d
MD5 e03111b57109591c957b7974e5f1a2a2
BLAKE2b-256 a414c097ca2e97bd2f9f8066ad6b0fd3780939b3d91236b6fb669ace0c600a03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page