Welcome to Portkey Forum

Updated 5 months ago

Show the Whole Curl Command

Can you show me the whole curl command, please?
V
e
8 comments
@ekevu. you are using Portkey prompt templates, correct?
Yes! I would like to regulate all parameters within Portkey, I only need to add the image.
@ekevu. confirming that it should work. Here's a curl example:

Plain Text
curl -X POST "https://api.portkey.ai/v1/prompts/pp-luka-image-slug/completions" \
-H "Content-Type: application/json" \
-H "x-portkey-api-key: PORTKEY_API_KEY" \
-d '{
    "stream": false,
    "variables": {"image":"data:image/jpeg;base64,{BASE_64}"}
}'

Also sharing how the prompt looks on Portkey playground
Attachment
CleanShot_2024-06-20_at_23.14.182x.png
So sorry for the delay here!
You know what? I would have never guessed that. My main issue was that I didn't know I had to insert the variable "image" specifically into that field in Portkey.
You were putting the image link outside of that little box in "User" message. 🤯
Just tagging @Sabbyasachi so that he's aware
Add a reply
Sign up and join the conversation on Discord