Imagebot thing?

Hello there in a bit of trobule getting used to mit app inventor,yet i have learned a lot through mit app inventor and a lot about itself too, i was just trying to make a imagebot,tutorials arent for me,can smbd share their project, i will identify it

yall can share anything u want but just make sure its a imagebot thing and if i dont understand and tell you just please tell me i am quite new to this platform and just found out it has a community like this

Welcome

This is all the ImageBot community discussion links

The links contain discussions that may help you do what you want to do.

thank you very much you helped me a lot,after researching ill let you know what i find

hi there, i would like to share with you that my screen time is less than an hour yet i come back after every hour, its still hard for to dig in and search all of this conversation, if i was being honest, i appreciate you hard work you've put in your message but, i was wondering if you could share a aia file maybe. also sorry for too many comas, just getting used to the new computer

this is my current project :
frrrrrr_image_bot.aia (5.2 KB)
but it doesnt work at all

https://appinventor.mit.edu/explore/resources/ai/imageBot

https://appinventor.mit.edu/explore/resources/ai/simpleImageBot

i have a little issue, there is no code in any of these projects and i dont have any issues with the desing as i have shared my project with you, the only problem here is the code, so if u could do something like that it would be a lot better
thank you

It does work on my Android 13. :wink: Why it does not for you I do not know.

  • type cat
  • tap Search Image
  • wait about 10 seconds
  • and I see a cat :grinning:
  • this worked for five more searched; then failed :cry:
  • I tried the app again 24 hours later. The free usage reset and the app worked again. :grinning:

You can exist working like this for demonstration purposes or follow the suggestions in the next post. :thinking: to get your own API which will provide a bit more 'free' usage.

I loaded both tutorials and they seem to have issues; sorry MIT needs to fix them.
Your code WORKS for several searched before you use up the free usage it provides for what appears to be a 24 hour period Try it again. :wink:

Did that work for you?

The imagebot using the MIT control provides a very limited amount of free usage per day.

To get more usage:

  • get an OpenAI key and enter it . Use it in your project or
  • wait a day after your project stops responding and try your existing project again, it should work again. After using the free usage for about five requests, the project stopped working. It started working again after trying the app a day later. :wink:

Getting Your Own OpenAI API Key

You need to get your own OpenAI API key to use MIT App Inventor’s ImageBot component. Follow the steps below to create your OpenAI account and get your OpenAI API key.

Note: Free use credits advice posted with one of the Imagebot tutorials was once true. The terms have changed.

OpenAI basically no longer offers a Free Tier. the program was discontinued earlier 2024

To test the API, you need to add payment details and purchase at least $5 worth of credits. This allows for a “pay-as-you-go” system, so you only pay for what you use​.Oct 13, 2024
need to become a paying customer with a credit card.

  1. signup

  2. Click on the Sign up button

  3. Create your account by entering your email and choosing a password. You can also sign up using your Google, Microsoft and Apple accounts.

  1. You will need to verify your e-mail and phone number during the signup process.
  2. To get your personal OpenAI API key go to https://platform.openai.com/account/api-keys
  3. Click on the API keys tab and the Create new secret key button.

  1. Give your key a name if you wish. This step is optional.

  1. Copy and save your API key somewhere safe on your computer. You will need it while doing the project.

  2. How to enter your API key into your Project:
    You might use Screen.Initialize like this

openAIAPIkey

or like this

openAiAPIkey2

Yeah sorry dude, It cost Dinero to use ChatGPT in MIT app inventor. But there are work arounds I believe.

oh boy i have a new problem,
so basically how do i use my mit app inventor projects on pc since i usually dont have a phone around,
i did search the web but yet found nothing so uhh if you could give mme the direct file instead of the link it would be a little better
i did try to download the emulator from the connect optino but it just times out the download

well i did use a open ai api code for it

Try them with the default settings and see what happens. It takes time to generate the images so be patient.

Then add the additional code in the Screen.Initialize event handlers and if you added money to your OAI account it might work. :thinking:

You use an emulator. If you can't use the MIT linked emulator, try Bluestacks (many here use it instead)