Generate a full video via the Kodisc API.
POST https://api.kodisc.com/generate/video
Required
apiKey
(string): API key generated via the Kodisc Dev dashboard.prompt
(string): Prompt used to generate the video.Optional
aspectRatio
(string?): Aspect ratio of generation. Must be 16:9 or 9:16 (mobile)colors
(string?): A JSON object stringified. Colors must be hex code. All color fields:
fps
(string?): Number representing the framerate of the videoBody must be FormData in order to work.
success
(boolean): Whether the request succeeded or not. It can fail due to multiple factors including invalid API key, insufficient credits, failed video generation (rare, also will not charge API key for a failed request)error
(string?): Error message if success is false
.video
(string?): If the request succeeded, this is the URL of the generated video on Kodisc’s CDN.code
(string?): If the request succeeded, this is the code used to generate the video.Generate a full video via the Kodisc API.
POST https://api.kodisc.com/generate/video
Required
apiKey
(string): API key generated via the Kodisc Dev dashboard.prompt
(string): Prompt used to generate the video.Optional
aspectRatio
(string?): Aspect ratio of generation. Must be 16:9 or 9:16 (mobile)colors
(string?): A JSON object stringified. Colors must be hex code. All color fields:
fps
(string?): Number representing the framerate of the videoBody must be FormData in order to work.
success
(boolean): Whether the request succeeded or not. It can fail due to multiple factors including invalid API key, insufficient credits, failed video generation (rare, also will not charge API key for a failed request)error
(string?): Error message if success is false
.video
(string?): If the request succeeded, this is the URL of the generated video on Kodisc’s CDN.code
(string?): If the request succeeded, this is the code used to generate the video.