curl https://api.portkey.ai/v1/images/variations \
-H "x-portkey-api-key: $PORTKEY_API_KEY" \
-H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
-F image="@otter.png" \
-F n=2 \
-F size="1024x1024"
{
"created": 123,
"data": [
{
"b64_json": "<string>",
"url": "<string>",
"revised_prompt": "<string>"
}
]
}
curl https://api.portkey.ai/v1/images/variations \
-H "x-portkey-api-key: $PORTKEY_API_KEY" \
-H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
-F image="@otter.png" \
-F n=2 \
-F size="1024x1024"
{
"created": 123,
"data": [
{
"b64_json": "<string>",
"url": "<string>",
"revised_prompt": "<string>"
}
]
}
OK
The response is of type object
.
Was this page helpful?