Skip to main content

genmagic-discord

A Discord bot that makes AI images and short videos with GenMagic: Nano Banana, GPT Image, FLUX, Seedream, Veo 3.1, Kling 3.0, Seedance, Wan and the rest of GenMagic's 90+ image and video models, from /image and /video.

Two ways to use it:

  • Add the hosted app (nothing to run): add GenMagic to your server or your account. Each member links their own GenMagic account and pays per generation from their own balance; new accounts get free starter credit. More at genmagic.co/discord.
  • Run your own with this package (pip install genmagic-discord; a Node version is npx genmagic-discord): every generation paid from your own GenMagic key.

Run your own

  1. Create an application at the Discord Developer Portal, add a bot, and copy the application id and public key.
  2. Get a GenMagic API key at genmagic.co/get-api-key.
  3. Start the server (Python 3.9 or later, after pip install genmagic-discord) where Discord can reach it over HTTPS:
DISCORD_PUBLIC_KEY=... DISCORD_APP_ID=... GENMAGIC_API_KEY=... PORT=3000 genmagic-discord
  1. In the Developer Portal, set the Interactions Endpoint URL to https://<your host>/interactions (Discord checks it when you save).
  2. Register the commands once: DISCORD_APP_ID=... DISCORD_BOT_TOKEN=... genmagic-discord-register
  3. Invite the bot with the install link from the portal's Installation page.

/image prompt:<text> [model:<id>] posts the image in the channel. /video prompt:<text> [model:<id>] [seconds:4-10] posts the clip when it is ready (most take under two minutes). Model ids and prices: genmagic.co/models or GET https://genmagic.co/api/v1/models.

The bot answers Discord within its 3-second window with a "thinking" message and replaces it with the result. Requests are verified with Discord's Ed25519 signature; anything unsigned gets 401.

License

MIT

Metadata

Release files for genmagic-discord 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genmagic-discord 0.1.0
File Size Uploaded Provenance Actions
genmagic_discord-0.1.0.tar.gz 6.1 kB Without provenance Details for genmagic_discord-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for genmagic-discord 0.1.0
File Interpreter ABI Platform Actions
genmagic_discord-0.1.0-py3-none-any.whl Python 3 none any Details for genmagic_discord-0.1.0-py3-none-any.whl

Total release size: 12.9 kB

Release files / genmagic_discord-0.1.0.tar.gz

Download URL genmagic_discord-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3127e6aa749fd91433462c38e2b43bf2a9b13e41727eac9fc4d358c5b0f9eda7
BLAKE2b-256 checksum
How to use checksums
2b0e2c5fed840224a946fc1d9e91e45e779cd5a155e93a0d9a1a93dfec569d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / genmagic_discord-0.1.0-py3-none-any.whl

Download URL genmagic_discord-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e5b25e41b7a5f9f1bab6252d1fb963e86f94cdba38c2be780e818b0c98fec99
BLAKE2b-256 checksum
How to use checksums
c68e5ba33977fba7f6e00d8c1d414c156f3443beb4d11429e8c88d3ec8e9f01e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for genmagic-discord 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page