Install
openclaw skills install falimagegenCall 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.
openclaw skills install falimagegenUse 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.
prompt, optional negative_prompt, size/aspect, steps, seed, safety options.run/submit method with an input object.Use these as templates only. Replace placeholders after checking the docs.
# 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 = "<model-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)
// Pseudocode: replace with the exact fal SDK import + call pattern from docs
// import { client } from "@fal-ai/client";
const MODEL_ID = "<model-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);
# Pseudocode: replace endpoint, headers, and payload schema from docs
curl -X POST "https://<fal-api-base>/<model-endpoint>" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a cinematic photo of a red fox"
}'
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.