• Resolved asherz2ash

    (@asherz2ash)


    I have encountered a problem with enabling token sales for images on my platform. Despite setting up token limits for images, it seems that all members still have unlimited access to the image generators. This issue has caused some unexpected consequences, including an increase in my replicate bill.

    I initially believed that enabling tokens would provide a safeguard and restrict access to the image generators. However, it appears that the token system has not been functioning as intended. I would greatly appreciate any assistance or guidance in resolving this issue and ensuring that token sales effectively limit access to the image generators.

    Thank you for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author senols

    (@senols)

    Dear @asherz2ash

    Please note that our plugin is not capable of tracking usage for the ‘Stable Diffusion’ feature due to constraints in the provided API. This feature does not supply the necessary information for our plugin to track its usage effectively. Therefore, if you plan to implement a usage-based charge system for your users, we advise against enabling the ‘Stable Diffusion’ feature.

    Regarding DALL-E usage, OpenAI adopts a different charging scheme. Unlike most features that are charged based on the number of tokens used, DALL-E usage is charged on a dollar basis. This means the cost for using DALL-E is not calculated based on the number of tokens, but instead corresponds directly to a monetary value. Please keep this in mind while utilizing the DALL-E feature.

    Please refer to our documentation:

    https://docs.aipower.org/docs/image-generator#limitations

    Thread Starter asherz2ash

    (@asherz2ash)

    Thank you for sharing your observation. I have also discovered that Dall-E works exceptionally well. However, I’ve encountered a slight challenge regarding selling tokens for profit, as the dollar sign is displayed during image generation on “my AI account.” In an attempt to address this, I’ve been experimenting with the “str_replace(‘$’, ”, $user_credit);” function, although I must admit that I’m not entirely confident in my understanding of its implementation. I would greatly appreciate any guidance or assistance in this matter.

    Plugin Author senols

    (@senols)

    Hi @asherz2ash

    Regarding the dollar sign issue, the ‘image generator’ uses a pricing model that charges users in dollars, rather than tokens. That’s why you see a dollar sign instead of token count.

    1024×1024: $0.020 / image
    512×512: $0.018 / image
    256×256: $0.016 / image

    You can check OpenAI pricing here: https://openai.com/pricing

    Thread Starter asherz2ash

    (@asherz2ash)

    All good! Let me tell you, I’m still pretty new to all this, but I gotta say, I really like what you’re doing with your plugin. It’s been a real eye-opener for me and has helped me get a grasp on the world of AI.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with Enabling Token Sales for Images’ is closed to new replies.