# How to add Deep.ai API in Thunkable

**URL:** https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215
**Category:** Questions about Thunkable X
**Tags:** help
**Created:** [April 7, 2023, 9:46am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215 "2023-04-07T09:46:11Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 7, 2023, 9:46am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/1 "2023-04-07T09:46:11Z")

</div>

As I was searching for Image editing APIs on the Internet… I found Deep.ai which allowed me to Edit Images in my Apps. I need help with how to Insert this API in Thnkable.  
I need Code and UI for the AI image Editor API using Deep.ai.  
Please Help

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 7, 2023, 1:45pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/2 "2023-04-07T13:45:23Z")

</div>

What have you tried so far and what happens when you preview it?

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 8, 2023, 9:50am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/3 "2023-04-08T09:50:17Z")

</div>

No Response was been Showed  
Screen-

 ![hhlhluihoyoug](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/d/3de8a88e125dc1aa0683bb908cef8334766334a3.png)  
Blocks  
 ![dgdfgdffdg](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/9/d908189b87fc02baf68ed169e1a606185f2f624e.png)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 8, 2023, 3:01pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/4 "2023-04-08T15:01:30Z")

</div>

Add a `generate JSON from object` block in the Body block:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/2/b270016b1557727447e430ae841c6162af49f3e0.png)

Always do error checking. What happens if you make that change and then assign the green `error` block to a label?

Also, provide a link to the DeepAI API documentation. Without that, it’s hard to help you troubleshoot the endpoint you are using.

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 18, 2023, 9:49am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/5 "2023-04-18T09:49:48Z")

</div>

Sorry But…  
There are Some Errors

 ![HRTHRTYJH](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fb01967ce134c2646fe4f8e21f931c07aae8f5b8.png)  
 ![tukukyukyuk](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/7/d778bf3888308bfe80e559b75e7ef2f7030a3e23.png)  
 ![ertertetertert](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/01c6b630a3f174cf5f9e4d064c28dbafd6603b59.png)  
Error:{“err”: “error processing given inputs from request”}

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 18, 2023, 11:25am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/6 "2023-04-18T11:25:12Z")

</div>

[https://deepai.org/api-docs#image-editor](https://deepai.org/api-docs#image-editor)  
Documentation Link

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [April 18, 2023, 6:47pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/7 "2023-04-18T18:47:48Z")

</div>

@pacecode We have discussed also in this topic about how to send an image via WebAPI [WEB API Firebase Storage It does not upload the file to the server - #4 by ioannis](https://community.thunkable.com/t/web-api-firebase-storage-it-does-not-upload-the-file-to-the-server/2369895/4)

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 19, 2023, 9:00am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/8 "2023-04-19T09:00:54Z")

</div>

No Response was Showing  
 ![gtrhrthrtrthrt](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/5376f2899d3c830603fc93cd95671e9609233aa3.png)

 ![yukyukyukyukykyk](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/41ac170458fa96cf122f663ee272cf58c0092ead.png)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [April 19, 2023, 10:47am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/9 "2023-04-19T10:47:08Z")

</div>

@pacecode The image should be in base64  
Could you please copy-paste this into a text and try to send it as image?  
“data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdjWH4p9z8ABvAC5ua4Z50AAAAASUVORK5CYII=”

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 19, 2023, 11:03am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/10 "2023-04-19T11:03:27Z")

</div>

It is Very Confusing…  
Do you have any other Way?

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 24, 2023, 11:30am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/11 "2023-04-24T11:30:42Z")

</div>

> [@ioannis](#):
>
> data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdjWH4p9z8ABvAC5ua4Z50AAAAASUVORK5CYII=

 ![rthrthrhrth](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/251868ded2bc7631688affe1e135e62364d850de.png)  
Like This?

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 24, 2023, 11:31am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/12 "2023-04-24T11:31:07Z")

</div>

Sorry for Late Reply

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 24, 2023, 11:33am UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/13 "2023-04-24T11:33:17Z")

</div>

This was the response

 ![Screenshot_2023-04-24-17-01-32-53_2bbfbfee96a5dfce998f962ebb8b5da3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/0/c0198c0584a81a808fb4e49c412f76777428fc4b.jpeg)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 24, 2023, 12:02pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/14 "2023-04-24T12:02:01Z")

</div>

I tried the `text generation` API and it worked for me

I entered **Thunkable** as the text and got this output

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/9/b93bde6a483091dfd001f945f6f59c9c1a112316.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/2/e277b9c8e28d9ea8d5181a163b0b0f49975c13e3.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 24, 2023, 12:05pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/15 "2023-04-24T12:05:11Z")

</div>

I can see that you assume every API in the world will work as JSON which is not true. Always read the API documentation carefully and see the appropriate settings required.

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 24, 2023, 12:15pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/16 "2023-04-24T12:15:19Z")

</div>

I am Having Error Even with the text editor API  
 ![liilululuil](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/e/be3979bd9b62cecdeea5c4c019ce9b709e83a112.png)  
 ![dfgdgdgdfgdfgdfg](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ec594b643165a17a7bd0fa77ac10d3452707f035.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 24, 2023, 12:20pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/17 "2023-04-24T12:20:36Z")

</div>

> [@pacecode](#):
>
> Error Even with the text editor API

You need to specify the content type. Your blocks does not have it.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 24, 2023, 12:32pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/18 "2023-04-24T12:32:41Z")

</div>

This is using the deepdream endpoint

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/4/540fd93cc985da9be12ac51b656294adb1740350.png)

See the blocks

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/50d04a75ac839dbf64e154aa62b78ba00b2c933f.png)

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 24, 2023, 12:43pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/19 "2023-04-24T12:43:44Z")

</div>

This Worked  
 ![hgghjfhjfyhj](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/e/4eab947dde977b7e5a28d85463c9ee7b72833cc2.png)

---

<div class="post-metadata">

### Author: ![pacecode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pacecode/32/209017_2.png) [@pacecode](https://community.thunkable.com/u/pacecode)
#### Post date: [April 24, 2023, 12:46pm UTC](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215/20 "2023-04-24T12:46:01Z")

</div>

Can you Give me the URL which is being used by you?

[Next page](https://community.thunkable.com/t/how-to-add-deep-ai-api-in-thunkable/2362215.md?page=2)
