xxxxxxxxxx
1
curl --request POST \
2
--url https://cloud.leonardo.ai/api/rest/v1/generations \
3
--header 'accept: application/json' \
4
--header 'content-type: application/json' \
5
--data '
6
{
7
"height": 512,
8
"modelId": "6bef9f1b-29cb-40c7-b9df-32b51c1f67d3",
9
"prompt": "An oil painting of a cat",
10
"transparency": "disabled",
11
"width": 512
12
}
13
'
xxxxxxxxxx
RUN IN WARP
curl -H 'Content-Type: application/json' \
-d '{ "title":"foo","body":"bar", "id": 1}' \
-X POST \
https://example.com/posts