This API operates on a straightforward, prepaid Pay-As-You-Go model, directly linked to your Dezgo.com account balance. It functions identically to the "Power Mode" feature available on the web app, and maintains the same pricing structure.
The cost of each request is determined based on its parameters and can be accurately forecasted in advance. You can use the pricing calculator on Dezgo.com to calculate the cost of your requests in realtime with different values. As you send requests, your balance is automatically adjusted to reflect charges.
Your balance never expires and can be used at any time.
Example of request costs
Here are some examples of processing costs for images of different resolutions with the default settings.
/text2image, /image2image, /inpainting, /edit-image
If you use the
upscale parameter, then upscale costs are added to the above costs.
This is a great way to save money as upscaling is cheaper than generating directly at higher resolutions.
Example, say you want to generate an image with an output resolution of 1024x1024:
|upscaled from 512px to 1024px||
|Resolution (of the input image)||$|
Request cost calculation
The exact formulas for each method are as follows:
/text2image, /image2image & /inpainting
pixels = max(width * height, 512 * 512) cost_usd = (pixels * 6.849e-006 - 1.133) * max(steps, 10) / 10000
upscale parameter is used, then the costs from
/upscale are added to the above costs.
pixels = max(width * height, 320 * 320) cost_usd = pixels * 4.9278E-05 / 10000