← Back to Skills Marketplace
xxmzdxxxm

falimagegen

by xxmzdxxxm · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1600
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install falimagegen
Description
Call fal.ai model APIs for image generation (text-to-image and image-to-image). Use when a user asks to integrate fal, construct requests, run jobs, handle auth, or return image URLs from fal model APIs.
README (SKILL.md)

Fal Image Gen

Overview

Use this skill to implement text-to-image or image-to-image calls against fal model APIs. Prioritize correctness by checking the current docs for the selected model’s required inputs/outputs and authentication requirements.

Quick Start

  1. Identify the target model ID from the fal model API docs.
  2. Collect inputs from the user.
  • Text-to-image: prompt, optional negative_prompt, size/aspect, steps, seed, safety options.
  • Image-to-image: source image URL, strength/denoise, plus prompt/options above.
  1. Pick the calling method.
  • If the user prefers SDKs: provide Python and/or JavaScript examples.
  • If the user prefers REST: provide a curl/HTTP example.
  1. Execute the request and return image URL(s) from the response.

Workflow: Text-to-Image

  1. Resolve the model ID and schema.
  • Open the fal model API docs and confirm the exact input fields and output format.
  1. Validate inputs.
  • Ensure prompt is non-empty and size/aspect settings are supported by the model.
  1. Build the request.
  • SDK: call the SDK’s run/submit method with an input object.
  • REST: call the model endpoint with a JSON body that matches the schema.
  1. Execute and parse output.
  • Extract image URL(s) from the response fields defined by the model.
  1. Return URLs.
  • Provide a clean list of URLs and note any metadata the user asked for (seed, size, etc.).

Workflow: Image-to-Image

  1. Resolve the model ID and schema.
  2. Validate inputs.
  • Ensure the source image is reachable by URL (or converted to the required format).
  • Confirm any strength/denoise range constraints from docs.
  1. Build the request.
  • Include source image + prompt + other options as required by the model.
  1. Execute and parse output.
  • Extract image URL(s) from the response fields defined by the model.
  1. Return URLs.

SDK vs REST Guidance

  • Prefer SDKs for simpler auth and retries.
  • Prefer REST when the user needs raw HTTP examples, or when running in environments without SDK support.
  • Never hardcode API keys. Follow the docs for the required environment variable or header name.

Minimal Examples (Fill From Docs)

Use these as templates only. Replace placeholders after checking the docs.

Python (SDK)

# Pseudocode: replace with the exact fal SDK import + call pattern from docs
import os
# from fal import client  # or the current SDK import

MODEL_ID = "\x3Cmodel-id-from-docs>"
input_data = {
    "prompt": "a cinematic photo of a red fox",
    # "image_url": "https://..."  # for image-to-image
    # "negative_prompt": "...",
    # "width": 1024,
    # "height": 1024,
}

# result = client.run(MODEL_ID, input=input_data)
# urls = extract_urls(result)

JavaScript (SDK)

// Pseudocode: replace with the exact fal SDK import + call pattern from docs
// import { client } from "@fal-ai/client";

const MODEL_ID = "\x3Cmodel-id-from-docs>";
const input = {
  prompt: "a cinematic photo of a red fox",
  // image_url: "https://..." // for image-to-image
};

// const result = await client.run(MODEL_ID, { input });
// const urls = extractUrls(result);

REST (curl)

# Pseudocode: replace endpoint, headers, and payload schema from docs
curl -X POST "https://\x3Cfal-api-base>/\x3Cmodel-endpoint>" \
  -H "Authorization: Bearer \x3CAPI_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a cinematic photo of a red fox"
  }'

Resources

  • references/fal-model-api-checklist.md: Checklist for gathering inputs and validating responses.
  • references/fal-model-examples.md: Example templates for text-to-image, image-to-image, and REST usage.
Usage Guidance
This skill appears to be what it says: guidance for calling Fal image-generation APIs and returning image URLs. The main issue is metadata transparency: the SKILL.md and example files reference an API key (FAL_KEY) and SDK storage upload, but the skill registry entry does not declare any required environment variables or primary credential. Before installing or enabling this skill: 1) insist the publisher declare the required credential (e.g., FAL_KEY) in requires.env and set primaryEnv appropriately so you know where the key will be read from; 2) avoid pasting API keys into chat — supply keys via secure agent configuration only; 3) be careful about uploading private images (the skill's examples call fal.storage.upload — that will send image bytes to Fal's storage); 4) verify the endpoints/domains in the references (queue.fal.run, fal.run, ws.fal.run) are the official endpoints you expect; and 5) if you need stronger assurance, ask the publisher for a version that explicitly documents required env vars, expected request/response shapes, and any retry/timeout behavior. The skill is coherent with its purpose but the missing credential declaration is a meaningful omission to fix.
Capability Analysis
Type: OpenClaw Skill Name: falimagegen Version: 1.0.0 The skill is designed to interact with the fal.ai image generation API, which inherently involves making network requests and handling API keys. All instructions and code examples consistently direct the agent to use environment variables for API keys (e.g., `$FAL_KEY`, `process.env.FAL_KEY`) and to verify model schemas, promoting secure and correct usage. Network calls are exclusively directed to legitimate `fal.run` domains. There is no evidence of data exfiltration to unauthorized endpoints, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts to subvert the agent's intended purpose across `SKILL.md`, `agents/openai.yaml`, `references/fal-model-api-checklist.md`, and `references/fal-model-examples.md`.
Capability Assessment
Purpose & Capability
Name and description describe Fal image-generation calls and all guidance/examples are about constructing requests to Fal model endpoints — purpose and capability align. However, examples and docs repeatedly reference an API key (FAL_KEY / Authorization header) even though the registry metadata declares no required credentials; that mismatch should be fixed.
Instruction Scope
SKILL.md stays on-topic: it instructs the agent to resolve model IDs, validate inputs, build SDK/REST requests, execute them, and return image URLs. It does not instruct reading unrelated system files, other credentials, or contacting unexpected endpoints. It does include notes about uploading image bytes (storage.upload) which implies handling user-supplied images but remains within the image-generation scope.
Install Mechanism
Instruction-only skill with no install spec and no code files — nothing is written to disk by an installer and there is no external package download to evaluate.
Credentials
Examples and references use environment variables (e.g., FAL_KEY / process.env.FAL_KEY, Authorization: Key $FAL_KEY) but the skill metadata lists no required env vars or primary credential. This is an inconsistency: the skill will need an API key to function, so the absence of declared credential requirements reduces transparency about what secrets the agent will need and where they'd be stored/provided.
Persistence & Privilege
No elevated persistence requested (always: false). The skill does not request system config paths or modify other skills. Autonomous invocation is allowed but that is the platform default and not by itself a red flag.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install falimagegen
  3. After installation, invoke the skill by name or use /falimagegen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of fal-image-gen skill: - Provides structured guidance for integrating fal.ai model APIs for both text-to-image and image-to-image generation. - Includes detailed step-by-step workflows for validating inputs, constructing requests, executing calls, and handling responses. - Covers SDK and REST usage, recommending best practices for authentication and environment configuration. - Offers Python, JavaScript, and curl request templates to help users get started quickly. - References additional resource files with checklists and example templates.
Metadata
Slug falimagegen
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is falimagegen?

Call fal.ai model APIs for image generation (text-to-image and image-to-image). Use when a user asks to integrate fal, construct requests, run jobs, handle auth, or return image URLs from fal model APIs. It is an AI Agent Skill for Claude Code / OpenClaw, with 1600 downloads so far.

How do I install falimagegen?

Run "/install falimagegen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is falimagegen free?

Yes, falimagegen is completely free (open-source). You can download, install and use it at no cost.

Which platforms does falimagegen support?

falimagegen is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created falimagegen?

It is built and maintained by xxmzdxxxm (@xxmzdxxxm); the current version is v1.0.0.

💬 Comments