Doubao-Seed (6 models) + Zhipu GLM (2 free models). First run auto-generates config.json, fill in one API Key to start. IAM console usage syncs automatically on each recognition.
Temp/YYYYMMDD/, default 7-day retention ( temp_retention_days in config.json, range 1-3650).vision_history.json, follow-up context in .last_response, auto-cleaned after 7 days. GLM follow-up reuses full message history including base64 media data; Doubao follow-up uses previous_response_id without re-transmitting files.config.json. Do not use personal keys on shared machines.config keymodelprioritydoubao_seed_21p_idDoubao-Seed-2.1-Proprimarydoubao_seed_21t_idDoubao-Seed-2.1-Turbosecondarydoubao_seed_20p_idDoubao-Seed-2.0-Protertiarydoubao_seed_20c_idDoubao-Seed-2.0-Codecode-firstdoubao_seed_20l_idDoubao-Seed-2.0-Litefallbackdoubao_seed_20m_idDoubao-Seed-2.0-Minilow-cost
config.json, replace "" with actual endpoint IDs.config.json: "zhipu_api_key": "your-key"provider_mode in config.json:
0 = all (default)1 = Zhipu only2 = Doubao onlybash
python doubao_vision_recognize.py --help
python doubao_vision_recognize.py status
commandpurposeexamplerec <file> --image|--video --text|--coderecognizerec a.jpg --image --text``rec <dir> --batch --image|--video --text|--codebatchrec ./img/ --batch --image --text``ask --text|--code --prompt "..."follow-upask --text -p "details"``statususage statssyncmanual console synchistory7-day history
paramdesc--imageimage input--videovideo input--texttext output--codecode output--prompt / -pextra instruction--batchdirectory batch
Activate only when the user's message matches one of the trigger_patterns above. Do NOT activate on loosely related text. If uncertain, ask before executing.
--image --text--video --text--code--prompt "..."API keys are stored in plaintext config.json. Warn users not to use high-value keys on shared machines. First-run privacy notice already discloses plaintext storage.