generate_monetization_code
Write the Last Price integration code for an app (Next.js, Express or FastAPI): a client that records signals, prices calls, creates customers and bills them through Stripe, plus an example, as files and one patch for git apply. Writes nothing anywhere. Early access. Needs a Last Price credential with billing read scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | One of your agents, filled into the code. | |
| payments | No | Include billing through Stripe (default true). | |
| customers | No | Include creating customers at sign-up (default true). | |
| framework | Yes | ||
| event_name | No | The billable event the example records, like chat.completed. |