← 返回 Skills 市场
alvisdunlop

Ai Image Generation

作者 AlvisDunlop · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ 安全检测通过
72
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install alvis2-ai-image-generation
功能描述
Generate AI images with FLUX, Gemini, Grok, Seedream, Reve and 50+ models via SkillBoss API Hub. Models: FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image...
使用说明 (SKILL.md)

AI Image Generation

Generate images with 50+ AI models via SkillBoss API Hub.

Quick Start

import requests, os

SkillBoss_API_KEY = os.environ["SkillBoss_API_KEY"]
API_BASE = "https://api.SkillBoss.co/v1"

def pilot(body: dict) -> dict:
    r = requests.post(
        f"{API_BASE}/pilot",
        headers={"Authorization": f"Bearer {SkillBoss_API_KEY}", "Content-Type": "application/json"},
        json=body,
        timeout=60,
    )
    return r.json()

# Generate an image (auto-routed to best model)
result = pilot({"type": "image", "inputs": {"prompt": "a cat astronaut in space"}, "prefer": "quality"})
image_url = result["result"]["image_url"]
print(image_url)

Available Models

SkillBoss API Hub �Զ�·��������ͼ������ģ�ͣ�֧�� 50+ ģ�ͣ�������

Model Best For
FLUX Dev LoRA High quality with custom styles
FLUX.2 Klein LoRA Fast with LoRA support (4B/9B)
Gemini 3 Pro Google's latest
Gemini 2.5 Flash Fast Google model
Grok Imagine xAI's model, multiple aspects
Seedream 4.5 2K-4K cinematic quality
Seedream 4.0 High quality 2K-4K
Seedream 3.0 Accurate text rendering
Reve Natural language editing, text rendering
ImagineArt 1.5 Pro Ultra-high-fidelity 4K
Topaz Upscaler Professional upscaling

Browse All Image Models

# Discover ģʽ����ѯ����֧�ֵ�ͼ������ģ��
result = pilot({"discover": True, "keyword": "image"})
print(result)

Examples

Text-to-Image (Quality)

result = pilot({
    "type": "image",
    "inputs": {"prompt": "professional product photo of a coffee mug, studio lighting"},
    "prefer": "quality"
})
image_url = result["result"]["image_url"]

Fast Generation

result = pilot({
    "type": "image",
    "inputs": {"prompt": "sunset over mountains"},
    "prefer": "balanced"
})
image_url = result["result"]["image_url"]

Photorealistic Landscape

result = pilot({
    "type": "image",
    "inputs": {"prompt": "photorealistic landscape with mountains and lake"},
    "prefer": "quality"
})
image_url = result["result"]["image_url"]

With Aspect Ratio

result = pilot({
    "type": "image",
    "inputs": {
        "prompt": "cyberpunk city at night",
        "aspect_ratio": "16:9"
    },
    "prefer": "balanced"
})
image_url = result["result"]["image_url"]

Text Rendering in Image

result = pilot({
    "type": "image",
    "inputs": {"prompt": "A poster that says HELLO WORLD in bold letters"},
    "prefer": "quality"
})
image_url = result["result"]["image_url"]

Cinematic Portrait (4K Quality)

result = pilot({
    "type": "image",
    "inputs": {"prompt": "cinematic portrait of a woman, golden hour lighting"},
    "prefer": "quality"
})
image_url = result["result"]["image_url"]

Image Upscaling

result = pilot({
    "type": "image",
    "inputs": {
        "prompt": "upscale",
        "image_url": "https://example.com/image.jpg"
    },
    "prefer": "quality"
})
image_url = result["result"]["image_url"]

Response ��ʽ

# ��׼ response ����
result = pilot({"type": "image", "inputs": {"prompt": "..."}, "prefer": "quality"})
image_url = result["result"]["image_url"]
# �򣨲���ģ�ͷ��������ʽ��
image_url = result["result"]["images"][0]["url"]

��������

���� ˵��
SkillBoss_API_KEY SkillBoss API Hub ͳһ��Կ
\r
安全使用建议
This skill appears to do what it says: make requests to SkillBoss to generate images. Before installing, confirm the following: (1) the SkillBoss_API_KEY is required at runtime even though registry metadata omitted it — ensure you provide a dedicated API key with limited scope and revoke it if needed; (2) verify the SkillBoss service (https://api.SkillBoss.co) is legitimate and that you accept its privacy/usage terms, since image content and prompts may be logged; (3) avoid putting high-privilege or long-lived secrets into the same environment — use a scoped API key if possible; (4) if you are concerned about autonomous invocation, be aware the agent can call the skill automatically by default; consider restricting or reviewing actions the agent can take with the key. If you need higher assurance, request the skill author/publisher information or a link to an official homepage/source before proceeding.
功能分析
Type: OpenClaw Skill Name: alvis2-ai-image-generation Version: 2.0.0 The skill provides a standard interface for generating AI images via the SkillBoss API Hub (api.SkillBoss.co). It uses a provided API key to make authorized POST requests to the service's endpoint. The code and instructions in SKILL.md are consistent with the stated purpose of image generation and model discovery, and no evidence of data exfiltration, malicious execution, or prompt injection was found.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The skill declares an image-generation purpose via the SkillBoss API Hub and the runtime instructions show exactly that: HTTP calls to https://api.SkillBoss.co/v1 to request image models. Requested capabilities (text2image, img2img, upscaling, LoRA) are consistent with calling a multi-model image API.
Instruction Scope
SKILL.md contains concrete example code that only (a) reads SkillBoss_API_KEY from the environment and (b) posts JSON to the SkillBoss API. It does not instruct the agent to read unrelated files, other environment variables, or to transmit data to other endpoints. No vague 'gather context' instructions are present.
Install Mechanism
This is an instruction-only skill with no install spec and no code files. That is the lowest-risk install model: nothing is downloaded or written to disk by an installer.
Credentials
SKILL.md requires a single API key (SkillBoss_API_KEY), which is appropriate for the declared purpose. However, the registry metadata provided above lists 'Required env vars: none' and 'Primary credential: none' — that metadata omission is an inconsistency that could confuse users or automated installers. No other unrelated credentials are requested.
Persistence & Privilege
The skill does not request always:true and does not require writing system-wide configuration; it is user-invocable and allows autonomous invocation by the agent (the platform default). This is expected for a normal skill and is not combined with broad credential requests.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alvis2-ai-image-generation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alvis2-ai-image-generation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Fixed API to api.skillboss.co
元数据
Slug alvis2-ai-image-generation
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Ai Image Generation 是什么?

Generate AI images with FLUX, Gemini, Grok, Seedream, Reve and 50+ models via SkillBoss API Hub. Models: FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。

如何安装 Ai Image Generation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install alvis2-ai-image-generation」即可一键安装,无需额外配置。

Ai Image Generation 是免费的吗?

是的,Ai Image Generation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ai Image Generation 支持哪些平台?

Ai Image Generation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ai Image Generation?

由 AlvisDunlop(@alvisdunlop)开发并维护,当前版本 v2.0.0。

💬 留言讨论