# HTTPS Outcalls Cost Calculator

**URL:** <https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207>\
**Category:** Showcase\
**Created:** [September 16, 2024, 2:50pm UTC](https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207 "2024-09-16T14:50:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![domwoe](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/domwoe/32/5165_2.png) [@domwoe](https://forum.dfinity.org/u/domwoe)\
**Post date:** [September 16, 2024, 2:50pm UTC](https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207/1 "2024-09-16T14:50:43Z")

</div>

Hi everybody,

I created a small tool to calculate the cost of HTTPS outcalls this weekend. You can either provide a URL and determine the size of the request and response (Request Simulation) or you can define the request and response size manually (Slider Calculator).

The Request Simulation will also show you the cost if you don’t set `max_response_bytes` and the max response size of 2MB will be assumed and charged. It clearly shows the importance of setting the `max_response_bytes` to an appropriate value if the response is small.

Here’s the tool: [https://7joko-hiaaa-aaaal-ajz7a-cai.icp0.io/](https://7joko-hiaaa-aaaal-ajz7a-cai.icp0.io/)  
and here’s the repo: [GitHub - domwoe/HTTPS-Outcalls-Calculator: Calculates the cost for HTTPS Outcalls on the Internet Computer](https://github.com/domwoe/HTTPS-Outcalls-Calculator)

Best,  
Dominic

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [September 16, 2024, 5:43pm UTC](https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207/2 "2024-09-16T17:43:02Z")

</div>

Besides the fact that I’m obviously biased because it runs on Juno (💙), it’s a really cool tool!

When I implemented HTTP outcalls, I learned about their costs through trial and error. It’s great to be able to get a sense of what it will cost in advance. This and other upcoming calculators are, in my opinion, a great resource and a must for the developer community building projects.

Thanks, Dominic! 🙏

---

<div class="post-metadata">

**Author:** ![gip](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/gip/32/15215_2.png) [@gip](https://forum.dfinity.org/u/gip)\
**Post date:** [September 16, 2024, 6:23pm UTC](https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207/3 "2024-09-16T18:23:18Z")

</div>

Awesome tool! One small feature request would be the ability to add a number of headers to the request.

Btw, I think pricing for https calls should be based on what is produced by the a transformation function that strips unwanted html tags (stuff like …).

---

<div class="post-metadata">

**Author:** ![josephgranata](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/josephgranata/32/21930_2.png) [@josephgranata](https://forum.dfinity.org/u/josephgranata)\
**Post date:** [September 17, 2024, 3:49am UTC](https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207/4 "2024-09-17T03:49:40Z")

</div>

Super useful tool, thanks Dominic!

---

<div class="post-metadata">

**Author:** ![domwoe](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/domwoe/32/5165_2.png) [@domwoe](https://forum.dfinity.org/u/domwoe)\
**Post date:** [September 17, 2024, 6:41am UTC](https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207/5 "2024-09-17T06:41:56Z")

</div>

> [@peterparker](#):
>
> Besides the fact that I’m obviously biased because it runs on Juno (💙), it’s a really cool tool!

Thanks a lot David. Although I’ve only scratched the surface of Juno with this little app it was a breeze working with it. The platform and cli are super thoughtful.

> [@gip](#):
>
> Awesome tool! One small feature request would be the ability to add a number of headers to the request.

Thanks Giles. I allowed headers only for POST requests, but you’re right sometimes you need it also for GET requests. Added.

> [@gip](#):
>
> Btw, I think pricing for https calls should be based on what is produced by the a transformation function that strips unwanted html tags (stuff like …).

There are internal discussions about this (and about the need to set `max_response_bytes` and not just get refunded). The issue with paying only for the transformed response is that an attacker could request GBs of data and strip out all or most of it. But I think we’ll move in this direction with some safety guards in place.

> [@josephgranata](#):
>
> Super useful tool, thanks Dominic!

Thanks Joseph!

---

<div class="post-metadata">

**Author:** ![ilbert](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/ilbert/32/8717_2.png) [@ilbert](https://forum.dfinity.org/u/ilbert)\
**Post date:** [September 28, 2024, 1:14pm UTC](https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207/6 "2024-09-28T13:14:57Z")

</div>

Super useful for me too!

---

<div class="post-metadata">

**Author:** ![putifay](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/putifay/32/20602_2.png) [@putifay](https://forum.dfinity.org/u/putifay)\
**Post date:** [September 28, 2024, 7:23pm UTC](https://forum.dfinity.org/t/https-outcalls-cost-calculator/35207/7 "2024-09-28T19:23:28Z")

</div>

really useful! tks man
