AI Agent Hub
Back to skills
Doubao Image Generation icon

Doubao Image Generation

Design & Media Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_1707615b/t-h-i-n-g-o-2026 into your AI assistant according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

This skill targets a concrete workflow gap: you already have an OpenAI-compatible Doubao Seedream relay, but you do not want to hand-roll images/generations requests, convert reference images to base64, download remote files, retry network errors, or expose a clean result path for downstream scripts. It is intended for relay-based image generation, not direct official Ark API access.

How it works

The skill wraps image generation in a callable script. After configuring ARK_BASE_URL, ARK_API_KEY, model, and save directory, gen.py can be invoked from a CLI or function and prints a single JSON object that is easy to parse with json.loads. The main capabilities are:
- Text-to-image: pass a prompt and size; for the default Seedream model, use 2K or larger to avoid upstream minimum-pixel failures.
- Image-to-image: accept public URLs or local file paths; local images are converted to base64 before submission, and multiple references can be mixed.
- Sequential images: use n to generate a set of related images and return multiple local paths.
- Multi-image fusion: feed several reference images into the model to produce a fused image or a fused series.

Configuration and boundaries

Before calling the API, verify that api_key exists; if it is missing, ask the user to provide it or run the setup flow. By default, generated images are downloaded locally while the remote URL is also preserved; if download is disabled, only the URL is returned. Different relays may rename models or enforce different size constraints. Generated image URLs often expire after roughly 24 hours, so persistence should rely on local files. This skill is not intended for reading, analyzing, editing existing images, video generation, or speech tasks.

Use Cases

  • Generate 2K blog covers per section and let the script save PNGs into a local assets folder for the editor.
  • Tell WorkBuddy "draw a cartoon orange cat" and have the agent call generate_image to insert the local path into a PPT.
  • Fuse one product sketch with three style references into four e-commerce hero variants in a single call.
  • Use n=8 to generate a continuous storyboard set and save the images in return-array order for a shot list.

Best For

  • Independent developers who ship illustrations for blogs and decks and want a local PNG from a one-line prompt.
  • Engineers building image tools for WorkBuddy / OpenClaw-style agents that need a clean JSON-returning call.
  • E-commerce designers turning one sketch into multiple style variants with mixed local and URL references.
  • Visual planners producing storyboards who need a related image set saved to a fixed directory in one call.