curl and jq.
1
Configure your environment
Use the endpoint provided with your API key.
CAPTIONCRAFT_API_KEY through your secret manager or shell environment. Replace the sample URL below with your own direct video URL:2
Submit your video
This example reserves up to 60 seconds of prepaid credit. Choose a limit at least as long as your video, up to 600 seconds.A successful submission returns 202 Accepted:This confirms the job was accepted. It does not mean the video is ready.
3
Poll and download
Using the cURL submission above, poll until the job reaches a terminal state:Download URLs do not need the API key. Save all three files within 24 hours of completion. If a poll returns
429, wait at least the Retry-After interval and retry that poll.Next steps
Customize your captions
Explore presets, positioning, and colors.
Handle job states
Add progress, cancellation, and safe retries.