| 2485 | * Get the token cost of an image. | 2485 | * Get the token cost of an image. |
| 2486 | * @param {string} dataUrl Data URL of the image. | 2486 | * @param {string} dataUrl Data URL of the image. |
| 2487 | * @param {string} quality String representing the quality of the image. Can be 'low', 'auto', or 'high'. | 2487 | * @param {string} quality String representing the quality of the image. Can be 'low', 'auto', or 'high'. |
| 2488 | * @returns | 2488 | * @returns {Promise<number>} The token cost of the image. |
| 2489 | */ | 2489 | */ |
| 2490 | async getImageTokenCost(dataUrl, quality) { | 2490 | async getImageTokenCost(dataUrl, quality) { |
| 2491 | if (quality === 'low') { | 2491 | if (quality === 'low') { |