so i'm setting up [insert company]'s img-to-vid API right? realized it's expensive, way too expensive

i'm talking thousands of dollars for the lowest tier/plan, not worth it

i check every resource (docs, terms & conditions, discord) and all signs point to "not changing api pricing"

so i do some digging on their site and think hmm i wonder if their "create video" endpoints are exposed (they are) and i realize it's different than endpoint in the api docs (that's good)

i watch the network requests come in as i create a video, i see the request and copy & paste it into postman, and boom it works

so that's fantastic, so i try to adding a random image url in the request and the response returns invalid host

so this means their "create video" endpoint only accepts images on their server, i need to upload my image to their cdn and pass that new image url into the "creste video" request, and 2 hours later, i got it

not only did i have to spoof some weird type of oauth in order to upload images to their cdn, but i was also able to create videos from an exposed endpoint (even though their api costs minimum thousands of dollars)

in the end, i created an endpoint to do all that for me in order to use their img-to-video service without spending $

hehe