Hi everyone, I’ve been working on a school project that involves using DeepAI’s deep dream API. I want my app to take a photo that the user uploads and sends it to the API, and returns the image processed by it. I’ve been having a bit of trouble getting the syntax formatted properly, and it’s been causing me a lot of trouble.
This is how the documentation describes using the API, and I’ve been trying to the best of my ability to make it work in thunkable. I’ve set the my webAPI URL to https://api.deepai.org/api/deepdream, and have created a header called “Api-key” set to my API key. Yet, I’m still evidently missing something and it’s been causing me trouble. Online cURL converters have helped me somewhat, but I’m still stuck.
This is really helpful information that you provided. I haven’t worked with the -F flag for API calls. It’s apparently form data as explained a bit here and here. I just tried to Post the data several different ways (as header, as body, as query parameter; with and without a leading “@” symbol for the image path) and each time it returned the error “error processing given inputs from request.”
So I’m not sure and I know that’s not very helpful but I’ll let you know if I get it working. Here’s the curl command that works in Terminal on a Mac:
I’ve run out of free calls with the quickstart API key I used above. But I’m sure I tried that combination and got the same error. I also can’t get this to work at all in Postman. Only in Terminal.
It’s just the one displayed in the documentation so I think it’s something anyone can use. I didn’t have to generate it in any way… just copied and pasted. But it only allowed maybe 5 calls.
i think the api-key has no limit - i’ve used it in and out of postman several times for 2 days and i get 200 return codes (see below) for the same reason i think the same api-key should also work in thunkable.
but i can’t seem to make thunkable to do this. i’ve tried your suggestion, and other settings.
can you (@muneer or anyone else) try to make my project (see below) work? thanks.