Design & media

bytedance-visual-recognition

Try it

Multimodal visual recognition via Doubao-Seed (6 models) + Zhipu GLM (2 free models). Image/video to text/code, auto-fallback, batch directory processing, follow-up conversations, local media caching (Temp/), persistent history (vision_history.json), auto IAM console sync. First-run privacy notice, plaintext config.json, cross-platform.

What it does

Multimodal visual recognition via Doubao-Seed (6 models) + Zhipu GLM (2 free models). Image/video to text/code, auto-fallback, batch directory processing, follow-up conversations, local media caching (Temp/), persistent history (vision_history.json), auto IAM console sync. First-run privacy notice, plaintext config.json, cross-platform.

The skill document

ByteDance Visual Recognition — Doubao-Seed + GLM

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.

Privacy & Data Notice

  • Network: Selected images/videos and prompts are base64-encoded and sent to Volcengine (Doubao) or Zhipu (GLM) cloud APIs.
  • Local cache: Media files temporarily copied to Temp/YYYYMMDD/, default 7-day retention (temp_retention_days in config.json, range 1-3650).
  • History: Recognition history stored in 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.
  • Credentials: API Keys stored in plaintext config.json. Do not use personal keys on shared machines.
  • IAM sync: Automatically syncs token usage from Volcengine IAM console on each recognition when IAM credentials are configured.
  • First run: A privacy notice is displayed once. Continuing past it acknowledges data handling practices.

Setup (pick one)

Doubao (Volcengine)

  1. Join the Collaboration Rewards Program for free quota, then get your API Key
  2. Create inference endpoints, pick from:
config keymodelpriority
doubao_seed_21p_idDoubao-Seed-2.1-Proprimary
doubao_seed_21t_idDoubao-Seed-2.1-Turbosecondary
doubao_seed_20p_idDoubao-Seed-2.0-Protertiary
doubao_seed_20c_idDoubao-Seed-2.0-Codecode-first
doubao_seed_20l_idDoubao-Seed-2.0-Litefallback
doubao_seed_20m_idDoubao-Seed-2.0-Minilow-cost
  1. Edit config.json, replace "" with actual endpoint IDs.

GLM (Zhipu, free)

  1. https://open.bigmodel.cn → get API Key
  2. Edit config.json: "zhipu_api_key": "your-key"

Provider filter

provider_mode in config.json:

  • 0 = all (default)
  • 1 = Zhipu only
  • 2 = Doubao only

Test

python doubao_vision_recognize.py --help
python doubao_vision_recognize.py status

Commands

commandpurposeexample
rec --image|--video --text|--coderecognizerec a.jpg --image --text
rec --batch --image|--video --text|--codebatchrec ./img/ --batch --image --text
ask --text|--code --prompt "..."follow-upask --text -p "details"
statususage stats
syncmanual console sync
history7-day history

Parameters

paramdesc
--imageimage input
--videovideo input
--texttext output
--codecode output
--prompt / -pextra instruction
--batchdirectory batch

Behavior Rules

1. Trigger only on listed patterns

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.

2. Parameter inference

  • "recognize/analyze image" → --image --text
  • "recognize/analyze video" → --video --text
  • "convert to code / UI to code / design to code" → --code
  • extra requirements → --prompt "..."
  • unsure → ask once if image or video

3. Credential safety

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.


Limits

  • Doubao: 180W tokens per model per day, auto-fallback
  • GLM: free, auto-retry on failure (4.6V: 10 retries, 4.1V: 5 retries)
  • Image ≤ 15MB, Video ≤ 50MB

Related skills

Vision/image understanding for agents whose model can't read images (returns "model does not support images", empty/unknown output, low confidence, or user-reported failure). Calls an OpenAI-compatible vision API (doubao or any OpenAI-compatible provider), returns structured JSON. Use whenever an image must be understood. Do NOT substitute with local OCR (tesseract) - OCR extracts text only, not layout/visual understanding.

1 stars

Generate videos using the Volcengine Doubao Seedance 2.0 model series.

3 installs

Full version of the Doubao image model, generating 2K/3K/4K images from prompts and reference images. Suited to key visuals, posters and anything meant for large-format print.

1 installs

Fast image generation with Doubao Seedream 5.0 Lite. Supports text-to-image and image-to-image. 使用豆包 Seedream 5.0 Lite 极速生成图像,支持文生图与图生图。

63 installs

Generate high-quality images with Doubao Seedream 4.5. Supports text-to-image and image-to-image. 使用豆包 Seedream 4.5 模型生成高质量图像,支持文生图与图生图。

65 installs

Use when understanding images with Alibaba Cloud Model Studio Qwen VL models (qwen3-vl-plus/qwen3-vl-flash and latest aliases). Use when building image Q&A,...

16 installs