Generate (PikaArt 2.0)
POST
https://api.pixapi.pro/api/generate
Last modified:2024-12-22 08:10:30
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.pixapi.pro/api/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
"ai": "pika2.0",
"accountId": 11376,
"rotationGroupId": null,
"imageUrl": "https://img.freepik.com/premium-photo/natural-beauty-portrait-woman-autumn-forest_1351942-2475.jpg",
"ingredientsMode": "precise",
"ingredients": ["https://hnsfpau.imgix.net/5/images/detailed/74/Soho-Coffee-Table.jpg", "https://i5.walmartimages.com/seo/Fresh-Red-Delicious-Apple-Each_7320e63a-de46-4a16-9b8c-526e15219a12_3.e557c1ad9973e1f76f512b34950243a3.jpeg", "https://misen.com/cdn/shop/products/chefs-knife-black-191015-shoppage_63c5525d-e6a0-4e39-a59a-6e10ee351fd4_3311x.jpg"],
"promptText": "there is an apple on the table, a man cuts it with a knife",
"options": {
"aspectRatio": "16:9",
"frameRate": 24,
"camera": {},
"parameters": {
"guidanceScale": 12,
"motion": 1,
"negativePrompt": "",
"seed": null
},
"extend": false
},
"webhookUrl": "https://vewapnew.online/api/testWebhook"
}'
Response Response Example
{
"error": false,
"message": null,
"data": {
"jobId": "32f5fc8b-2712-45b1-ac33-d2bc30d2df00",
"jobStatus": "new",
"payload": {
"ai": "pika2.0",
"accountId": 11376,
"rotationGroupId": null,
"imageUrl": "media/Zuj6cz6a23NChAa-natural-beauty-portrait-woman-autumn-forest_1351942-2475.jpg",
"ingredientsMode": "precise",
"ingredients": [
"media/31Gk90hYXFHyQS9-Soho-Coffee-Table.jpg",
"media/jBaS0jjF3LnNzWN-Fresh-Red-Delicious-Apple-Each_7320e63a-de46-4a16-9b8c-526e15219a12_3.e557c1ad9973e1f76f512b34950243a3.jpeg",
"media/SM99BKg4zGTGr4e-chefs-knife-black-191015-shoppage_63c5525d-e6a0-4e39-a59a-6e10ee351fd4_3311x.jpg"
],
"promptText": "there is an apple on the table, a man cuts it with a knife",
"options": {
"aspectRatio": "16:9",
"frameRate": 24,
"camera": [],
"parameters": {
"guidanceScale": 12,
"motion": 1,
"negativePrompt": null,
"seed": null
},
"extend": false
},
"webhookUrl": "https://example.com/api/result"
},
"generationError": null,
"resultError": null,
"generationResponse": {
"id": "01250d62-dd64-4df8-99af-ae91575a9a56",
"generation": {
"id": "01250d62-dd64-4df8-99af-ae91575a9a56",
"promptText": "there is an apple on the table, a man cuts it with a knife",
"params": {
"options": {
"aspectRatio": null,
"frameRate": 24,
"camera": null,
"parameters": {
"motion": 1,
"guidanceScale": 12,
"negativePrompt": "",
"seed": null
},
"extend": false,
"ingredients-mode": null
},
"userId": "68b485e6-d492-4974-83b4-235e123a651a",
"promptText": "there is an apple on the table, a man cuts it with a knife",
"model": "2.0",
"duration": 5
},
"adjusted": false,
"upscaled": false,
"extended": 0,
"hasSfx": false,
"lipSynced": false,
"videos": [
{
"id": "01250d62-dd64-4df8-99af-ae91575a9a56",
"status": "queued"
}
]
}
},
"resultResponse": []
}
}
Request
Body Params application/json
Responses
Modified at 2024-12-22 08:10:30