Endpoint Examples
Video Generation
Generate high-quality short-form videos
POST
/
v1
/
video
curl --request POST \
--url https://nano-gpt.com/api/v1/video \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"prompt": "Create a whimsical animated story about a young inventor who creates a flying bicycle",
"script": "A young inventor'\''s workshop filled with whimsical contraptions and floating gears.",
"framework": "default",
"targetLengthInWords": 70,
"directorNotes": "Use warm, golden lighting and make the workshop scenes feel cozy and inviting",
"imageConfig": {
"model": "recraft",
"style": "realistic_image/studio_portrait",
"loraConfig": {
"loraSlug": "ghibsky-comic-book"
}
},
"voice": "pNInz6obpgDQGcFmaJgB",
"captionsShow": true,
"captionsStyle": "default",
"effects": {
"transition": "fade",
"floating": false
},
"quality": "medium",
"motion": {
"enabled": false,
"strength": 3
},
"music": "video-creation/music/dramatic_cinematic_score.mp3"
}'
{
"runId": "<string>",
"projectId": "<string>",
"cost": 123,
"paymentSource": "<string>",
"status": "PENDING"
}
Authorizations
Body
application/json
Parameters for video generation
The body is of type object
.
The body is of type object
.
The body is of type object
.
Response
200
application/json
Video generation request submitted successfully
The response is of type object
.
curl --request POST \
--url https://nano-gpt.com/api/v1/video \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"prompt": "Create a whimsical animated story about a young inventor who creates a flying bicycle",
"script": "A young inventor'\''s workshop filled with whimsical contraptions and floating gears.",
"framework": "default",
"targetLengthInWords": 70,
"directorNotes": "Use warm, golden lighting and make the workshop scenes feel cozy and inviting",
"imageConfig": {
"model": "recraft",
"style": "realistic_image/studio_portrait",
"loraConfig": {
"loraSlug": "ghibsky-comic-book"
}
},
"voice": "pNInz6obpgDQGcFmaJgB",
"captionsShow": true,
"captionsStyle": "default",
"effects": {
"transition": "fade",
"floating": false
},
"quality": "medium",
"motion": {
"enabled": false,
"strength": 3
},
"music": "video-creation/music/dramatic_cinematic_score.mp3"
}'
{
"runId": "<string>",
"projectId": "<string>",
"cost": 123,
"paymentSource": "<string>",
"status": "PENDING"
}
Assistant
Responses are generated using AI and may contain mistakes.