Create video
Before using this endpoint, call one of the following endpoints to generate and review your video's content:
Once you (or your LLM) are happy, you can pass the content to this endpoint to create and render the video.
Custom
Possible values: Locale for the generated video.
auto
Possible values: The ID of the image style to use. Use the List image styles endpoint to get a list of available image styles. If left empty, the AI chooses.
Image model for the generated video.
Image quality for the generated video.
Whether to use the raw image style mode. If true, the image style will be ignored.
Custom prompt for the image style. If you provide a custom prompt, the image style will be ignored.
Default animation model for scene images when not specified individually.
Default animation preset for scene images when not specified individually.
List of publishing connection ids. Use the List connections endpoint to get a list of available connections
Aspect ratio of the video. Not required for News videos.
9:16
Possible values: Voice playback speed percentage.
100
Voice volume percentage.
100
Soundtrack playback speed percentage.
100
Soundtrack volume percentage.
100
The title of the video.
The description shown beside the video when posted to social media.
The voice to use for speech generation. See the List voices endpoint. If left empty, the AI chooses.
Id of the soundtrack to use for background music. See the List music endpoint for available genres, and the List music tracks endpoint for available soundtracks. If left empty, the AI chooses.
Scheduled time for publishing the video. Format in ISO 8601. If left empty, it will be published 1 hour after the video is created.
Successful response
Invalid request
Unauthorized request
POST /api/v1/videos HTTP/1.1
Host: shortgenius.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 1265
{
"content_type": "Custom",
"locale": "auto",
"image_style_id": "123e4567-e89b-12d3-a456-426614174000",
"image_model": "OpenAI",
"image_quality": "low",
"image_style_raw_mode": true,
"image_style_custom_prompt": "text",
"animation_model": "None",
"animation_model_preset": "fully_animated",
"connection_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"aspect_ratio": "9:16",
"voice_playback_rate": 100,
"voice_volume": 100,
"soundtrack_playback_rate": 100,
"soundtrack_volume": 100,
"title": "text",
"caption": "text",
"scenes": [
{
"title": null,
"caption": "text",
"image_query": null,
"first_image_description": null,
"second_image_description": null,
"first_image_animation_model": "None",
"second_image_animation_model": "None"
}
],
"quiz": {
"questions": [
{
"question": "text",
"options": [
{
"text": "text",
"correct": true
}
]
}
],
"results": {
"header": "text",
"explanation": "text",
"categories": [
{
"score_range": "text",
"title": "text"
}
]
}
},
"ad": {
"product_id": "123e4567-e89b-12d3-a456-426614174000",
"type": "JustTheHook",
"ugc_media": {
"url": null,
"deletedAt": null,
"metadata": null,
"lastError": null,
"type": "text",
"source": "Ugc",
"category": "text",
"data": {
"id": "text",
"hook": null
},
"state": "text"
},
"media_id": "123e4567-e89b-12d3-a456-426614174000"
},
"voice_id": "text",
"soundtrack_id": "123e4567-e89b-12d3-a456-426614174000",
"publish_at": "text"
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": null,
"caption": null,
"created_at": "text",
"updated_at": null,
"series_id": "123e4567-e89b-12d3-a456-426614174000",
"publishing_state": "pending",
"publish_at": null
}
Last updated