credits_balance
ChatGPTHow many credits the account has left. Spend against total: the buckets underneath it are drawn down in the order the answer gives, so on a subscription the monthly allowance goes first and the daily free grant sits untouched. Reporting free as the budget tells a subscriber they have 90 credits when they have tens of thousands. Call this before a run so you can say what it will cost and whether it fits.
files_upload
ChatGPTGet a link to upload one file from your own machine, such as a photo to use as a reference or the song for a music video, and the link to use it by afterwards. PUT the bytes to uploadUrl with the Content-Type header it names (the curl field is a ready command, put your file path in place of FILE), then pass url to any tool that takes a link. Free. The file is deleted after a day.
images_edit
ChatGPTChange images you supply, following a prompt. Answers with a job id; call images_get_job until it is done.
images_generate
ChatGPTMake an image from a prompt. Answers with a job id; call images_get_job until it is done. The API key decides which account pays.
images_get_job
ChatGPTReport on an image job. When completed, generated pictures are attached as image content for display in chat. Download links last an hour; do not embed those links as permanent images.
images_list_models
ChatGPTThe image models you can name, and what one image costs on each.
videos_add_audio
ChatGPTLay a sound file over a clip, replacing whatever sound it had. The clip decides the length, so a longer track is cut off. Answers with a job id; call videos_get_edit until it is done.
videos_compose
ChatGPTJoin pictures and clips end to end into one video, in the order you list them. Each picture stays on screen for the seconds you give it. Use it to build a video out of the shots you generated one at a time. Answers with a job id; call videos_get_edit until it is done.
videos_generate
ChatGPTMake a short clip from a prompt, or animate an image you supply. Answers with a job id; call videos_get_job until it is done. A clip takes minutes.
videos_get_edit
ChatGPTReport on an editing job from videos_extract_frame, videos_compose, videos_trim, videos_add_audio, videos_render_timeline or videos_join. Once it is completed the result carries a download link, good for an hour. A frame comes back as a picture, everything else as a clip.
videos_get_job
ChatGPTReport on a video job. Once it is completed the result carries a download link, good for an hour.
videos_join
ChatGPTPut parts from videos_render_timeline end to end without encoding them again, and lay a song under the whole run. Up to 30 parts, which have to share one size and fps. Answers with a job id; call videos_get_edit until it is done. 10 credits.
videos_list_models
ChatGPTThe video models you can name, the clip lengths each allows and what they cost.
videos_make_storyboards
ChatGPTDraw storyboards for a clip before making it. Each storyboard is a grid of pencil sketches, one panel per shot, drawn from the prompt. Answers with a job id; call images_get_job until it is done, then show the person the storyboards and let them pick one, or pick one yourself. Pass the chosen one's url to videos_generate as storyboardUrl, with the same prompt, within the hour the link lasts. Each storyboard costs 112 credits.
videos_render_timeline
ChatGPTCut a video from a list of shots the way an editor does: each shot on screen for the seconds you give it, taken from the point in its clip you choose, with a transition into it, a colour grade, grain, and lyrics burned in from an ASS file. Up to 60 seconds and 150 cuts per call at up to 1080p. For a whole song, render it in parts, each with subtitlesOffsetSeconds set to where it starts in the song (the parts render side by side), then put them together with videos_join and the song. A cut can name a clip by videoJobId, a picture by imageJobId, or anything by url. Answers with a job id; call videos_get_edit until it is done. 50 credits per call.
videos_trim
ChatGPTCut a clip down to one stretch of it. Answers with a job id; call videos_get_edit until it is done.