@genmagic/piece-genmagic
v0.0.1
Published
GenMagic piece for Activepieces: generate images, video, music, speech and text with hundreds of AI models through one API key and one prepaid balance.
Maintainers
Readme
GenMagic for Activepieces
Generate images, video, music, speech and text from an Activepieces flow with GenMagic: one API key and one prepaid balance for hundreds of AI models.
| Action | What it does |
|---|---|
| Generate Image | Text to image, or edit a reference image. Optional logo kind and 1 to 4 images. |
| Generate Video | Starts a video job, waits for it and returns the clip as a file with its URL and cost. |
| Start Video | Starts the same job and returns its ID at once, for clips that take longer than one step can wait. |
| Get Video | Looks up a video job by ID: status, and once complete the URL, the file and the cost. |
| Text to Speech | Text to spoken audio, returned as a file with its hosted URL and cost. |
| Generate Music | A description to an original music track, returned as a file with its hosted URL and cost. |
| Ask LLM | One prompt to any text model. |
| Get Balance | Reads your prepaid balance and spend. Free. |
| Custom API Call | Any other GenMagic endpoint, relative to https://genmagic.co/api/v1. The key is only ever sent to genmagic.co. |
Model dropdowns read the live public catalog and show each model's price. There are no triggers.
Connect
- Create a key at genmagic.co/get-api-key. A free account works. Verify your email address if GenMagic asks you to.
- In Activepieces, add a GenMagic connection and paste the key (it starts with
gm_live_).
Each generation is paid from your GenMagic balance at the price shown next to the model. Add credits at genmagic.co/pricing.
Install this piece from npm
This is a community piece, so it is not in the Activepieces catalog until you install it. A platform admin installs it:
- In Activepieces open Platform Admin, then Catalogue, then Pieces, and choose Install Piece.
- Package Type: NPM Registry.
- Piece Name:
@genmagic/piece-genmagic - Piece Version: the version of this package, for example
0.0.1.
The server needs to be on Activepieces 0.88.2 or newer (the piece declares that as its minimum release).
Notes
- Every request carries
X-GenMagic-Client: activepieces/<version>so GenMagic can count usage per integration. It contains nothing else. - Generation requests are never retried, so a transient error cannot double a charge. Read-only requests (catalog, balance, video polls) retry a couple of times.
- The package is one self-contained file (
src/index.js) with no dependencies, built from the Activepieces framework sources the same way Activepieces builds its own pieces.
Support: [email protected]. License: MIT.
