Create a Genjutsu task
curl --request POST \
--url https://gengen.farm/v1/contents/generations/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "higgsfield-genjutsu",
"mode": "motion_transfer",
"assets": {
"sourceVideo": "<string>",
"referenceImages": [
"<string>"
]
},
"controls": {
"resolution": "720p"
}
}
'import requests
url = "https://gengen.farm/v1/contents/generations/tasks"
payload = {
"model": "higgsfield-genjutsu",
"mode": "motion_transfer",
"assets": {
"sourceVideo": "<string>",
"referenceImages": ["<string>"]
},
"controls": { "resolution": "720p" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'higgsfield-genjutsu',
mode: 'motion_transfer',
assets: {sourceVideo: '<string>', referenceImages: ['<string>']},
controls: {resolution: '720p'}
})
};
fetch('https://gengen.farm/v1/contents/generations/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "higgsfieldgenjutsu:12345678-1234-4234-8234-123456789abc",
"model": "higgsfield-genjutsu",
"status": "queued",
"outputs": {
"videos": [],
"images": []
}
}Genjutsu
Create a Genjutsu task
POST
/
contents
/
generations
/
tasks
Create a Genjutsu task
curl --request POST \
--url https://gengen.farm/v1/contents/generations/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "higgsfield-genjutsu",
"mode": "motion_transfer",
"assets": {
"sourceVideo": "<string>",
"referenceImages": [
"<string>"
]
},
"controls": {
"resolution": "720p"
}
}
'import requests
url = "https://gengen.farm/v1/contents/generations/tasks"
payload = {
"model": "higgsfield-genjutsu",
"mode": "motion_transfer",
"assets": {
"sourceVideo": "<string>",
"referenceImages": ["<string>"]
},
"controls": { "resolution": "720p" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'higgsfield-genjutsu',
mode: 'motion_transfer',
assets: {sourceVideo: '<string>', referenceImages: ['<string>']},
controls: {resolution: '720p'}
})
};
fetch('https://gengen.farm/v1/contents/generations/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "higgsfieldgenjutsu:12345678-1234-4234-8234-123456789abc",
"model": "higgsfield-genjutsu",
"status": "queued",
"outputs": {
"videos": [],
"images": []
}
}Select one of the three modes. Read the limits and billing rules before submitting. Submit once and retrieve the returned task ID. An interrupted submission can have an uncertain outcome; do not automatically submit another task.
For pending tasks, poll the returned ID. The successful task detail includes
usage with billable seconds and the applicable price row. See usage fields.Authorizations
Body
application/json
Response
Task accepted.