Actions7
Generate Music/Sound from Prompt
AI-generatedSummary
Generates audio from a text prompt via Picsart GenAI API, returning a binary file and metadata.
Inputs
- Prompt (required) — Text description of the music or sound to generate.
- Duration (Seconds) — Audio length in seconds (0.5–22). Use 0 to omit and let the provider pick automatically.
- Loop — Whether to request looping audio. Support varies by model.
- Model (required) — AI model to use (e.g., ElevenLabs or Kling text-to-audio).
Output shape
A single output item containing a binary file (generated-sound.mp3) and metadata (prompt, duration, loop, model, inferenceId, audioUrl, result).
Polls for completion (up to 600 attempts). Requires Picsart API credentials.
Examples
Example 1: Create a 5-second ambient track
Prompt: 'calm ocean waves', Duration: 5
Example 2: Generate a looping sound effect
Prompt: 'sci-fi computer hum', Loop: true