Stripe Projects
Provision a Melies API token from Stripe Projects so AI agents can generate images, videos, posters, thumbnails, actors, and film assets from the command line.
Provider listing pending
Melies is not listed in the Stripe Projects catalog yet. The examples on this page describe the proposed provider flow for melies/api and should go live after Stripe approves the provider integration.
How it Works
Stripe Projects lets agents discover, provision, and pay for third-party services through the Stripe CLI. For Melies, the target service is an API token that can be used by the Melies CLI or any agent workflow.
- The agent finds
melies/apiin the Stripe Projects catalog. - Stripe passes the user identity and billing authorization to Melies.
- Melies creates or links the account, applies the selected credit budget, and returns an API token.
- The agent uses
MELIES_TOKENwith the Melies CLI to generate media.
Prerequisites
Install the Stripe CLI, install the Projects plugin, authenticate, and initialize a Stripe project in your app directory.
If the CLI opens a browser for authentication or billing setup, complete that step before asking an agent to continue.
Provision a Token
The interactive command should walk through Melies service details, pricing, terms acceptance, and billing confirmation. On success, Stripe Projects writes the token to your local environment file.
Environment variable names are intentionally prefixed by provider and service. The proposed credential is MELIES_MELIES_API_TOKEN.
Agents and CI
Agents should use structured output, accept terms explicitly, and avoid interactive prompts. Billing must already be configured for non-interactive provisioning.
If Stripe Projects returns a payment-method error, stop and ask the user to complete the Stripe Checkout URL.
Use the Token
The Melies CLI reads MELIES_TOKEN. After provisioning, load the Stripe Projects environment file and map the returned token.
Agents should check credits first, use --sync for blocking generation, and parse JSON output.
Manage the Project
Use the Stripe Projects CLI to inspect state, rotate credentials, sync environment variables, or remove the Melies service. Do not hand-edit .projects/ or credential files.
Provider Readiness
To be listed on projects.dev/providers, Melies needs Stripe provider approval and access to the private provider integration spec.
The proposed catalog metadata is:
| Provider | Melies |
| Service slug | melies/api |
| Category | AI |
| Description | AI filmmaking API and CLI for agents to generate images, videos, posters, thumbnails, actors, and film assets. |
