The API Cost Management feature allows you to control and manage token consumption when users interact with different AI models, such as DALL路E-2 and DALL路E-3, for generating images. This feature enables flexible pricing, helping you manage usage costs efficiently.
Key Concepts:
Tokens: Tokens represent the currency for API usage. Every time a user generates an image using AI models, their token balance is reduced based on the set cost.
DALL路E-2 Token Cost: By default, when a user generates an image using the DALL路E-2 model, 1 token is deducted from the user鈥檚 token balance.
Customizable Token Costs for DALL路E-3: You can set custom token costs for DALL路E-3 or any other AI model. For example, if you set the cost for DALL路E-3 to 1.5 tokens, the user鈥檚 balance will be reduced by 1.5 tokens when generating an image with that model.
Steps to Configure API Cost Management:
Access API Cost Settings:
Set Token Costs:
- Specify the desired token cost for each AI model (e.g., DALL路E-2 or DALL路E-3).
- Example: You may set 1 token for DALL路E-2 and 1.5 tokens for DALL路E-3.
Save the Settings:
- Once you have set the token values, save the settings. These changes will immediately take effect, and users will be charged the specified token cost when using each model.
Benefits:
Flexible Pricing: Adjust token costs per model to match the value or complexity of the generated output, making it easier to manage usage expenses.
Efficient Cost Management: By customizing token consumption per model, you can fine-tune pricing strategies for different user tiers or plans.
This feature gives you full control over how tokens are consumed, ensuring more manageable pricing for your users while aligning with your business needs.