Baiyin Open Platform Image Generation Assistant
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md to install @user_7b3c719e/baiyin-image-generate-skill.
About this skill
Problem
Calling image-generation APIs can stall on ambiguous parameters, local reference images, and task polling. This skill wraps the Baiyin open-platform image task flow with stricter model, parameter, and upload rules.
How It Works
- Fixed scope: creates and queries image generation tasks only; it does not handle video or digital-human tasks.
- Fixed models:
nano-banana-2andkling_v3_omni_image; if the user does not choose one, it guides selection between these two only. - Required inputs:
prompt,resolution(1/2/4), andaspect_ratio, with model-specific allowed ratios. - Reference images:
multi_imageaccepts only an array of public image URLs, up to 3 items; local paths are uploaded through the Baiyin file-upload endpoint and replaced withdata.url. - Task results: returns
taskIdandstatusafter creation, then polls forimageUrlor the fullimagesarray when available.
Boundaries
It requires BAIYIN_API_KEY and uses the fixed Baiyin open-platform BASE_URL. It will not create a task until required parameters are confirmed, and it will not query extra model lists. Errors such as 400, 401, 404, or failed should be handled by correcting parameters, API credentials, task ownership, or backend errors.
Use Cases
- Confirm model, resolution, and aspect ratio before creating a poster image task.
- Upload a local product image to a public URL before submitting it as multi_image.
- Poll the created task and return the final imageUrl once it succeeds.
- Validate up to 3 reference URLs and reject base64 or local paths.
Best For
- Backend engineers calling Baiyin image APIs: create and poll image tasks consistently.
- Design-collaboration engineers making posters or product images: collect model, resolution, and ratio.
- Agent developers integrating multimodal workflows: upload local reference images to public URLs first.
- Integration-test engineers handling task polling: query task status and extract imageUrl.
Related Skills
Converts image sequences, videos, or screen recordings into GIFs with Python, supporting timing, looping, optimization, and quick command-line use.
Adds white text, a yellow bar, and optional translucent masks to photos using OpenCV and Pillow.
Call Mew image and design APIs in two stages to create an emotional background and compose a share-ready quote check-in poster.
Generate felt-craft pendant designs, part breakdowns, and structured analysis from a product image or Base64 input.