# Teachable Machine + Web API

**URL:** <https://community.thunkable.com/t/teachable-machine-web-api/587646>\
**Category:** Questions about Thunkable X\
**Tags:** webapi\
**Created:** [May 24, 2020, 5:01am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646 "2020-05-24T05:01:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)\
**Post date:** [May 24, 2020, 5:01am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/1 "2020-05-24T05:01:30Z")

</div>

Hello! I have been using Thunkable for a while now and one of the biggest mysteries to me is still Web APIs, mostly due to lack of experience. Now that there is more time with the current situations, I am trying to learn how to use it.

For one of my projects I am planning on using [Teachable Machine by Google](https://teachablemachine.withgoogle.com/train/image), specifically the images model. I found it recently and it has been super fun to play around with. The problem is I have no idea how to implement it into my Thunkable app via Web API.

I understand how to connect the URL and I watched the Thunkable X Tutorial’s video about Web API’s so I sort of understand calling…? I was also able to find the model.json page. I just don’t know how to “send” a photo (rather than a live webcam) from the user and get the result. It says on the github page `// Refer to tmImage.loadFromFiles() in the API to support files from a file picker or files from your local hard drive` but I can’t find the file.

Other resources  
That may help: [FAQ](https://teachablemachine.withgoogle.com/faq) & [GitHub Page](https://github.com/googlecreativelab/teachablemachine-community/tree/master/libraries/image)

I am aware this may be a lot to ask for and may take some time, so thank you very much for any help you can provide 🙂.

Bonus: Can anyone figure this out? [Wizard thing](https://glitch.com/edit/#!/tm-wizard?path=README.md%3A1%3A0)

---

<div class="post-metadata">

**Author:** ![Amsler\_eye](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Amsler\_eye](https://community.thunkable.com/u/Amsler_eye)\
**Post date:** [June 5, 2020, 8:39am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/3 "2020-06-05T08:39:14Z")

</div>

Hi,

I had been exploring Teachable Machine by Google for a while. Do you mind to share any sample project using Web Api to access Teachable Machine?

---

<div class="post-metadata">

**Author:** ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)\
**Post date:** [June 5, 2020, 4:51pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/4 "2020-06-05T16:51:11Z")

</div>

That would be great, thanks!

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [June 5, 2020, 5:29pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/5 "2020-06-05T17:29:38Z")

</div>

Hey @Amsler_eye and @mythi

I haven’t had a chance to look at this particular API, but we have a great playlist with lots of detailed explanations on how to use the Web API component and how to connect to several different APIs:

https://www.youtube.com/embed/videoseries?list=PLB89L9PPGIry11IQq0dyVG_aK6kUMHP1F&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1

---

<div class="post-metadata">

**Author:** ![aryan.gupta18ph8pc5](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@aryan.gupta18ph8pc5](https://community.thunkable.com/u/aryan.gupta18ph8pc5)\
**Post date:** [June 17, 2020, 9:37pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/6 "2020-06-17T21:37:28Z")

</div>

Hey Mythi!  
Have you got the solution of how to use models trained on Teachable Machine inside the thunkable application framework? I’m actually needing for one of my project. If possible please guide me!!

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [June 17, 2020, 10:58pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/7 "2020-06-17T22:58:40Z")

</div>

Wow!! I didn’t know this existed. OMG! I’ll try to look into it and post a tutorial if it’s possible 😃

---

<div class="post-metadata">

**Author:** ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)\
**Post date:** [June 18, 2020, 4:29am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/8 "2020-06-18T04:29:38Z")

</div>

Hi @aryan.gupta18ph8pc5! I still have no idea how to connect it to Thunkable. Hopefully @Sofia can help 🙂

---

<div class="post-metadata">

**Author:** ![adbonds007z5obui](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@adbonds007z5obui](https://community.thunkable.com/u/adbonds007z5obui)\
**Post date:** [June 18, 2020, 9:18am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/9 "2020-06-18T09:18:55Z")

</div>

Hello, well you wanted to train the model with Web Api or use the model to get results?  
Because the Git you linked is saying -

> Library for using image models created with Teachable Machine.

So if you were willing to train models, then I think currently it’s not possible to train via Rest Api as they haven’t released any Official Api.

---

<div class="post-metadata">

**Author:** ![aryan.gupta18ph8pc5](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@aryan.gupta18ph8pc5](https://community.thunkable.com/u/aryan.gupta18ph8pc5)\
**Post date:** [June 18, 2020, 12:11pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/10 "2020-06-18T12:11:57Z")

</div>

That would be great! @Sofia , if possible please help me with it soon na! I’ve a urgent need for that and I’m clueless as of now!

---

<div class="post-metadata">

**Author:** ![aryan.gupta18ph8pc5](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@aryan.gupta18ph8pc5](https://community.thunkable.com/u/aryan.gupta18ph8pc5)\
**Post date:** [June 18, 2020, 12:14pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/11 "2020-06-18T12:14:24Z")

</div>

Actually What I’m planning is Google has released Teachable Machine And I’m planning to use that trained model in my app using the link of teachable machine. But how to integrate in the backend of application. Can you please help?

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [June 18, 2020, 2:45pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/12 "2020-06-18T14:45:19Z")

</div>

> [@adbonds007z5obui](#):
>
> So if you were willing to train models, then I think currently it’s not possible to train via Rest Api as they haven’t released any Official API.

That’s true, using the platform to train a model using Thunkable data using specifically Teachable Machine is not possible yet.

> [@aryan.gupta18ph8pc5](#):
>
> using the link of teachable machine

I think this is possible but is not through Teachable Machine but through TensorFlow which is the ‘brains’ of the whole deal. I will try to come up with a tutorial this weekend since I’m using this for a hackathon hehehe

---

<div class="post-metadata">

**Author:** ![aryan.gupta18ph8pc5](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@aryan.gupta18ph8pc5](https://community.thunkable.com/u/aryan.gupta18ph8pc5)\
**Post date:** [June 20, 2020, 1:49pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/13 "2020-06-20T13:49:41Z")

</div>

That’s quite interesting and once if you’re done with it do share me with the updates and links here of your tutorial. Truely Grateful !!

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [June 24, 2020, 4:08pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/14 "2020-06-24T16:08:54Z")

</div>

@aryan.gupta18ph8pc5 @adbonds007z5obui @mythi

Hey all!

I did some further research, would you guys would be comfortable with a tutorial regarding the following:

Teachable Machine + Google Functions

The thing is that the model needs to be deployed somewhere because there is no easy connection yet. Would be this ok or way too complicated? Just as a heads up, for a no-code tool like Thunkable we would be handling code with the google function and the model itself.

---

<div class="post-metadata">

**Author:** ![adbonds007z5obui](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@adbonds007z5obui](https://community.thunkable.com/u/adbonds007z5obui)\
**Post date:** [June 24, 2020, 4:25pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/15 "2020-06-24T16:25:10Z")

</div>

Why not? It would be great to perform Machine Learning on Thunkable.  
Currently thinking of true no code platform is bit hard. So we need codes in the journey!

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [June 24, 2020, 5:43pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/16 "2020-06-24T17:43:34Z")

</div>

Ok sure! I’m comfortable with code but some people are not, that’s why I’m asking.

---

<div class="post-metadata">

**Author:** ![Amsler\_eye](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Amsler\_eye](https://community.thunkable.com/u/Amsler_eye)\
**Post date:** [November 29, 2020, 2:49am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/17 "2020-11-29T02:49:10Z")

</div>

HI Sofia,

Any luck in trying out the Teachable Machine?

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [November 30, 2020, 4:07pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/18 "2020-11-30T16:07:06Z")

</div>

Sorry guys for taking a lot of time… I found way by integrating the keras model in a cloud run flask API.

I’m writing a tutorial on medium about this with all the steps. 🙂

On this note, if anyone would like to become a beta tester of the medium tutorial I would really appreciate it. I can give you credit at the end. This would be my first ever ‘real’ coding tutorial so any help is welcomed.

Contact me through email or social media 🙂 @sogalanbat [sogalanbat@gmail.com](mailto:sogalanbat@gmail.com)  
@adbonds007z5obui @aryan.gupta18ph8pc5 @mythi

---

<div class="post-metadata">

**Author:** ![adbonds007z5obui](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@adbonds007z5obui](https://community.thunkable.com/u/adbonds007z5obui)\
**Post date:** [December 2, 2020, 6:37am UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/20 "2020-12-02T06:37:40Z")

</div>

So it’s like a restful api, to which we will send request, then requests will be processed on server(machine learning) and result will be received.  
Then we polish the raw results to serve users on Thunkabke.  
Am I right? Btw I would love to beta test.

---

<div class="post-metadata">

**Author:** ![Sofia](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sofia/32/50160_2.png) [@Sofia](https://community.thunkable.com/u/Sofia)\
**Post date:** [December 3, 2020, 5:20pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/21 "2020-12-03T17:20:42Z")

</div>

Yea, only the tutorial is how to build that API with GCS. It’s the only way, I got it running for now. If the demand is higher maybe I could set up a service where you can upload the keras model and run it without needing to set up your own API…

Buuuut baby steps! haha first this one and then I can try to scale it.

---

<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:** [December 3, 2020, 7:15pm UTC](https://community.thunkable.com/t/teachable-machine-web-api/587646/22 "2020-12-03T19:15:40Z")

</div>

Does GCS stand for Google Cloud Services?

[Next page](https://community.thunkable.com/t/teachable-machine-web-api/587646.md?page=2)
