Name of SD1.x checkpoints, you can call the /v3/models endpoint to retrieve the sd_name_in_api field as the model_name.
heightintegerRequired
height of video, range [256, 1024]
widthintegerRequired
width of video, range [256, 1024]
seedintegerRequired
seed, Minmum -1
stepsintegerRequired
steps, Range [1. 50]
negative_promptstring
Negtive prompt word, divided by `,`, Range [1, 1024]
prompts[object]Required
The total number of frames in prompts need less than or equal to 128, where the total number of frames is the cumulative sum of all prompt frames.
Show properties
guidance_scalenumber
This setting says how close the server will listen to your prompt. Range: [1, 30]
loras[object]
Lora options, currenlty supports up to 5 Lora
Show properties
embeddings[object]
Textual Inversion options, currenlty supports up to 5 embeddings
Show properties
closed_loopboolean
closed_loop lets you control how the animation loops back to the first frame.
clip_skipnumber
This parameter indicates the number of layers to stop from the bottom during optimization, so clip_skip on 2 would mean, that in SD1.x model where the CLIP has 12 layers, you would stop at 10th layer, Range [1, 12]
This API helps to generate video with text. The returned video can be access by API /v3/async/task-result with task_id.
Please set the Content-Type header to application/json in your HTTP request to indicate that you are sending JSON data. Currently, only JSON format is supported.
curl--location'https://api.novita.ai/v3/async/txt2video'\--header'Authorization: Bearer {{key}}'\--header'Content-Type: application/json'\--data'{
"model_name": "darkSushiMixMix_225D_64380.safetensors",
"height": 512,
"width": 512,
"steps": 20,
"seed": -1,
"prompts": [
{
"frames": 32,
"prompt": "in the wintry dusk, a little girl, holds matches tightly"
},
{
"frames": 32,
"prompt": "a little girl, barefoot on the frosty pavement, she seeks solace."
},
{
"frames": 32,
"prompt": "a little girl, with each match, a fleeting dance of warmth and hope."
},
{
"frames": 32,
"prompt": "a little girl,in the quiet night, her silent story unfolds."
}
],
"negative_prompt": "nsfw,ng_deepnegative_v1_75t, badhandv4, (worst quality:2),(low quality:2), (normal quality:2), lowres,((monochrome)), ((grayscale)),watermark"
}'
HTTP status codes in the 2xx range indicate that the request has been successfully accepted, while status codes in the 5xx range indicate internal server errors.
You can get videos url in videos of response.
Request:
curl--location--request GET 'https://api.novita.ai/v3/async/task-result?task_id=fa20dff3-18cb-4417-a7f8-269456a35154'\--header'Authorization: Bearer {{key}}'