Melies

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.

  1. The agent finds melies/api in the Stripe Projects catalog.
  2. Stripe passes the user identity and billing authorization to Melies.
  3. Melies creates or links the account, applies the selected credit budget, and returns an API token.
  4. The agent uses MELIES_TOKEN with the Melies CLI to generate media.
bash

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.

bash

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.

bash

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.

bash

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.

bash

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.

bash

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:

ProviderMelies
Service slugmelies/api
CategoryAI
DescriptionAI filmmaking API and CLI for agents to generate images, videos, posters, thumbnails, actors, and film assets.
text