I’m trying to hook the bubbe api connector up with Stable Diffusion via the replicate.com api.
The API docs seem relatively straightforward (link ).
I have my API Connector (in a plugin) set up as the following:
But keep getting the following error:
Am I doing something obviously wrong here? Could be the way I’m dealing with the child arguments?
Any help would be much appreciated!
This is a long shot but try adding this as a shared header:
or try “Content-Type” with a capital T
tried that but same result im afraid
keith
September 15, 2022, 9:24pm
4
Don’t send those using the “parameters” interface. Construct the post body as JSON, as in this example:
The issue you’re having is that (as the docs state) “input” is a JSON-formatted parameter. There’s literally an example in the docs:
{
"version": "5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
"input": {
"text": "Alice"
}
}
See how input is itself a JSON object? Just set it up that way.
PRO TIP: See this link? Just click it and you can use the example calls in the docs and Bubble will do most of the setup for you.
Look:
Generates:
Then just fill in the missing pieces (what things you need to be dynamic, the endpoint URL in this case, etc.
2 Likes
Maybe switch back to the JSON body format instead of the Form-data so you can manually format how Replicate likes it. NVM Keith beat me to it
2 Likes
honoured to have a Bubble GOAT respond to one of my cries for help!
That worked a treat. much appreciated
1 Like
keith
September 15, 2022, 9:44pm
7
I brake for StableDiffusion…
1 Like
keith
September 15, 2022, 9:46pm
9
I was in the beta, but haven’t messed with all the new stuff that people are releasing every 5 minutes.
space seems to be evolving at the speed of light.
open-sourcing the Stability Diffusion model was a bold move…
How would we incorporate webhooks via replicate.com results?
keith
November 25, 2022, 2:43am
12
@danielnn , umm, just tell replicate what endpoint in your app you want it to hit. (Create a backend/API workflow and set it to be publicly accessible. Then give replicate the URL to that endpoint as the “webhook_completed” value.)
Like, in this example, my endpoint will be https://list-shifter-dev-test.bubbleapps.io/version-test/api/1.1/wf/your_ai_porn_complete
3 Likes
Any idea on image-image generation for stabillity diffusion? been struggling with these for weeks