Open Closed

ABP AI Agent Credit Usage #10814


User avatar
0
harryhopkins created

Could you review my account and AI usage? It spiked yesterday and consumed credits at a rate that was exponentially more than in the past. I was using the agent the same as before, the only difference is that I stayed in the same session the whole time for multiple plans implementations. This seemed to have a multiple affect on credit usage. Can you confirm if that is what caused the increased credit usage? For instance, the last plan implementation (.abpstudio/plans/bwell-fhir-provider-integration_20260725_220128.abpmd) used >$150 in credits in less than 15 minutes. And the implementation was not correct.

This does not give me confidence in predicting my credit needs moving forward. Unless I can understand how my usage translates to credit consumption.

Thanks.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

14 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    Please contact us at https://abp.io/contact.


    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    harryhopkins created

    Your only response is to have me contact you again?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi,

    We're pulling up your account and the usage records for yesterday, including that plan implementation run. We'll come back to you here once we've been through them.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @harryhopkins

    By checking your logs, we've confirmed that prompt cache discount is not applied as it should be, due to a bug in ABP Studio. We will refund your AI credits (partial or full) and release a new version asap.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    harryhopkins created

    I don't think the issue has been resolved because it happened again today. But I think I can help provide more information to diagnose the issue. For instance, my current session today has used >$110 of credits, with $90 of credits being used in the last 10 minutes.

    The issue appears when staying is the same session implementing multiple changes in phases or waves. Over time, the credit usage appears to accelerate. For instance, the first plan execution used about $13 of credits to analyze, plan, and execute. But each subsequent phase of analyze, plan, execute accelerates the credit usage.

    Again, I want to continue using your AI agent because the workflow and code quality is better than frontier LLMs on their own. But I cannot keep losing $100 in credits by simply continuing a context in order to implement complicated features in phases vs. a single shot.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi again @harryhopkins

    I am investigating the case. But it is not related with the previous issue, as i see.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    harryhopkins created

    [yekalkan] said: Hi again @harryhopkins

    I am investigating the case. But it is not related with the previous issue, as i see.

    Thanks. I agree that it probably is not related. I looked into the issue and discovered one of my engineers, jeremygallas, was performing a single session and used Opus on low reasoning. That is the session that used >$111 of credits, not mine. He was performing a test of your agent to review code that an OpenAI Codex (Sol) agent had implemented to compare the differences between the Codex agent and your agent. That was the only session they ran and it consumed that amount of credits in the session.

    I was using your agent in a separate session when I saw the credit usage dramatically increase and thought it was my session. Thanks for investigating as we are working through our evaluation.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    harryhopkins created

    Hey yekalkan,

    I think the issue is related to Claude's 'Prompt Caching'. Which is what you pointed out was the issue with my account. However, this is the first time the jeremygallas has ever used your agent. Is it possible that the bug/issue was still occurring with his account?

    Let me know if you need more information.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    @harryhopkins

    Yes, it is related with prompt caching again. But this time the cache break is from another source. We're hardly working on cover all possible cache breaks for a couple of days and we beleive that we managed it. We are planning a new release on monday.

    Let me know if you need more information.

    Since we can not see content of your requests, we tracked input/output token counts from your account and we detected that it was related with context compressions on long running sessions. We will inform you.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    harryhopkins created

    Thanks for the update, yekalkan. Looking forward to see this improve so we can fully engage the agent.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    harryhopkins created

    Hey @yekalkan, any update on this ticket?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    @harryhopkins

    We released a new version after the latest fixes about this ticket. And soon we will release another version with major changes and it will include significant token/cost optimization of ABP Agent, aimed for next week.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    harryhopkins created

    Thanks for the update, @yekalkan. Excited to see the new release next week. Is there any update on my credits that were consumed by the breaking cache bugs?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    alper created
    Support Team Director

    [harryhopkins] said: Thanks for the update, @yekalkan. Excited to see the new release next week. Is there any update on my credits that were consumed by the breaking cache bugs?

    You'll get an email today regarding this subject

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 24, 2026, 12:09
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.