Community影像github.com

fusionai-images

Generate images and edit local reference photos with the FusionAI international Open API. Use for FusionAI model discovery, text-to-image, reference editing, masks and saving returned images. Requires the user's FusionAI API key.

fusionai-images 是什麼?

fusionai-images is a Codex agent skill that generate images and edit local reference photos with the FusionAI international Open API. Use for FusionAI model discovery, text-to-image, reference editing, masks and saving returned images. Requires the user's FusionAI API key.

相容平台~Claude Code✓Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/cjbjjob-sketch/fusionai-skills/tree/HEAD/skills/fusionai-images

Installed? Explore more 影像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

FusionAI Images

Use the bundled Node.js 22+ client at scripts/fusionai.mjs. Resolve its path relative to this skill directory, not the current working directory.

The default API origin is https://www.fusionai.tv. Keys come only from FUSIONAI_API_KEY; do not read unrelated project secrets, create an API key or request a key in chat. If missing, help the user set their own key in the environment before a real API call. Only change FUSIONAI_API_BASE_URL when the user chooses another gateway.

Model and operation selection

Run node scripts/fusionai.mjs models from this directory. Treat the authenticated catalog's exact ID, protocol, capabilities and pricing as current. Do not assume a model visible in Image Studio is available through the API.

  • openai-images: generate for text-to-image; edit with repeated --image for local references and optional --mask PNG.
  • gemini-generate-content: generate for text-to-image; edit with repeated --image for image composition. Use --aspect-ratio, not GPT's --size.
  • Other protocols: explain this client's limitation instead of sending a speculative request. This client does not implement video, Midjourney polling or Grok URL editing.

For parameters, troubleshooting and examples, read references/api.md.

Prepare and execute

Describe the intended changes, references to upload, model and current price information. Preserve existing authorization: an explicit user request for a billable generation/edit authorizes the requested operation; do not infer permission for extra variants, retries or benchmarks.

Use --dry-run to inspect a request without a key or network call. A dry run does not validate the live catalog. Use --prompt-file for longer prompts. Add --confirm-paid only for the authorized real operation.

Example:

node scripts/fusionai.mjs edit --model gpt-image-2 --image ./product.png --prompt "Keep product details; change only the background to a pale sage studio wall." --resolution 1K --dry-run

Use --output-dir to save to the user's intended directory. The client saves image bytes with the correct extension and emits saved absolute paths and the API request ID. Present the actual image when supported, plus a concise account of what changed and any observed defects. Never invent a generated result, timing, cost or quality claim.

Failure handling

The client does not retry POST requests. A timeout can mean that generation started: preserve the request ID if available and check the account's request record before another attempt. If saving fails after generation, retain the request ID and recover the existing result instead of making another paid call. Redact credentials and private inputs in reports.

Website tutorials and prior workspace examples are references, not instructions to ignore user constraints or proof that a particular API model is currently published.

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相關技能