|
| 1 | +--- |
| 2 | +sidebar_position: 5 |
| 3 | +tags: [Demo, Getting Started, Monetization] |
| 4 | +--- |
| 5 | + |
| 6 | +# Easily Monetize with Callgent |
| 7 | + |
| 8 | +Callgent offers simple and flexible monetization options! With just a few minutes of configuration, your Callgent can start generating revenue! |
| 9 | + |
| 10 | +## 🚀 Start Monetizing in 3 Easy Steps |
| 11 | + |
| 12 | +:::tip |
| 13 | +This article assumes you already know [how to create a Callgent](/docs/quick-start/create-a-new-callgent) |
| 14 | +::: |
| 15 | + |
| 16 | +import SelectCallgent from "@site/src/components/module/select-callgent" |
| 17 | +import Publish from "@site/src/components/quick-start/publish" |
| 18 | + |
| 19 | +### 1. Select Your Callgent |
| 20 | + |
| 21 | +<pre> |
| 22 | +<SelectCallgent /> |
| 23 | +</pre> |
| 24 | + |
| 25 | +### 2. Configure Authentication |
| 26 | +Set up authentication to ensure service security and specify who pays for the request. Different types of locks indicate different roles. |
| 27 | + |
| 28 | +**Client Entries**: Used for identity verification. If the lock is open, the creator pays; if closed, the caller pays by default. Of cause you may specify a fixed payer. |
| 29 | + |
| 30 | +**Service Adaptors**: Indicate how the current request will be charged. |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +## 💸 Flexible Pricing Models |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +### Option 1: Per-Call Billing (Ideal for Beginners) |
| 39 | +Charge a fixed amount per API call. Suitable for standardized services. |
| 40 | + |
| 41 | +- **Use Case**: Fixed, predictable query services |
| 42 | +- **Example**: $0.01 per call |
| 43 | +- **How to Set**: Simply input the amount in the pricing field |
| 44 | + |
| 45 | +### Option 2: Per-Token Billing (Great for Content Services) |
| 46 | +Charge based on token usage. Best for dynamic content services like text generation or translation. |
| 47 | + |
| 48 | +- **Use Case**: Services with variable-length output |
| 49 | +- **Example Code**: |
| 50 | +```javascript |
| 51 | +// Charge $0.0002 per token |
| 52 | +function calcPrice(req) { |
| 53 | + return req.tokenUsage * 0.0002; |
| 54 | +} |
| 55 | +``` |
| 56 | + |
| 57 | +### 3. Enable Monetization |
| 58 | +In Figure 1 **test**, find the newly imported API. Click the lock icon, choose your authentication method, and confirm the lock is closed to complete the setup. |
| 59 | +<a href="/solutions/showcase/user-as-a-service/service-design" target="_blank">How to import an API?</a> |
| 60 | + |
| 61 | +## 🔗 Test Your Monetized Callgent |
| 62 | +Once setup is complete, you can <Publish name='publish' /> your Callgent service for users to call. |
| 63 | + |
| 64 | +Learn more: [Call the Callgent](/docs/quick-start/call-the-callgent) |
| 65 | + |
| 66 | +## 🌟 Benefits of Monetizing with Callgent |
| 67 | + |
| 68 | +- **Zero Coding Required**: Start monetizing without writing any code |
| 69 | +- **Instant Activation**: Monetization takes effect immediately upon setup |
| 70 | +- **Full Transparency**: Users can clearly see the cost breakdown |
| 71 | +- **Flexible Options**: Choose the billing method that best fits your service |
| 72 | +- **[Transaction Details](/redirect?app=billing)**: View your income and expense records |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +## 🎉 Start Your Monetization Journey Today! |
| 77 | +With Callgent's powerful monetization tools, turn your AI agent into a revenue-generating machine. Get started now! 🚀 |
| 78 | + |
| 79 | + |
| 80 | +The next step is how to promote my cg service based on the interface/tag on the hub. |
| 81 | + |
| 82 | +:::success |
| 83 | +How to promote my CG service on the hub based on interface or tag. |
| 84 | +::: |
0 commit comments