Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Video creation is asynchronous. Two patterns:

**Block until done (recommended):**
```bash
heygen video-agent create --prompt "Demo video" --wait --timeout 5m
heygen video-agent create --prompt "Demo video" --wait
# stdout: final resource JSON with video_url when complete
```

Expand Down Expand Up @@ -92,7 +92,7 @@ Both output valid JSON Schema. Available on all create/update commands (`--reque

## Notes

- `--wait` handles polling with exponential backoff (2s to 30s). Default timeout is 10 minutes.
- `--wait` handles polling with exponential backoff (2s to 30s). Default timeout is 20 minutes.
- The CLI retries transient errors (429, 5xx) automatically.
- Video download writes to `{video-id}.mp4` by default. Override with `--output-path`.
- For the full API reference (concepts, limits, pricing), see https://developers.heygen.com
2 changes: 1 addition & 1 deletion cmd/heygen/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func buildCobraCommand(spec *command.Spec, ctx *cmdContext) *cobra.Command {
}
if pollConfigs[spec.Group+"/"+spec.Name] != nil {
cmd.Flags().Bool("wait", false, "Poll until the operation completes or fails")
cmd.Flags().Duration("timeout", 10*time.Minute, "Max time to wait when using --wait")
cmd.Flags().Duration("timeout", 20*time.Minute, "Max time to wait when using --wait")
}
// Add -d/--data for commands with JSON request bodies
if spec.BodyEncoding == "json" {
Expand Down
Loading