vibetoken-cli

Scripts and AI agents

JSON output

With --json, results go to stdout as JSON and progress goes only to stderr. Errors are printed to stderr as {"error": {...}}.

url=$(vibetoken image create -m bytedance/seedream-5.0-flash "a fox" --json -q | jq -r '.data[0].url')

Teach an agent the CLI

vibetoken commands --json                # every command, option, and example
vibetoken models schema <model> --json   # the parameters a model accepts

Exit codes

Code Meaning
0 Success
1 Other error
2 Invalid arguments or parameters
3 Authentication failed
4 Not found
5 Too many requests
6 Insufficient balance or credit limit
7 Generation failed
8 Timed out waiting (the task is still running; resume with wait)
9 Network error
130 Interrupted

Preview a request

--dry-run prints the request instead of sending it, so nothing is charged:

vibetoken video create -m bytedance/seedance-2-t2v "a cat" --dry-run

Retry safely

Retrying the same submission never charges twice. If the connection drops before you get a task id, find the task with the client_request_id printed on stderr when you submitted:

vibetoken video find <client_request_id>