call-fal-image-generation-api
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…
от rondoflow★ 37 звёзд на GitHub
Установить call-fal-image-generation-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
- Identify the target model ID from the fal model API docs.
- Collect inputs from the user.
- Text-to-image:
prompt, optionalnegative_prompt, size/aspect, steps, seed, safety options. - Image-to-image: source image URL, strength/denoise, plus prompt/options above.
- 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.
- Execute the request and return image URL(s) from the response.
Workflow: Text-to-Image
- Resolve the model ID and schema.
- Open the fal model API docs and confirm the exact input fields and output format.
- Validate inputs.
- Ensure prompt is non-empty and size/aspect settings are supported by the model.
- Build the request.
- SDK: call the SDK’s
run/submitmethod with aninputobject. - REST: call the model endpoint with a JSON body that matches the schema.
- Execute and parse output.
- Extract image URL(s) from the response fields defined by the model.
- Return URLs.
- Provide a clean list of URLs and note any metadata the user asked for (seed, size, etc.).
Workflow: Image-to-Image
- Resolve the model ID and schema.
- Validate inputs.
- Ensure the source image is reachable by URL (or converted to the required format).
- Confirm any strength/denoise range constraints from docs.
- Build the request.
- Include source image + prompt + other options as required by the model.
- Execute and parse output.
- Extract image URL(s) from the response fields defined by the model.
- 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 = "<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)
JavaScript (SDK)
// 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);
REST (curl)
# 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"
}'
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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл call-fal-image-generation-api?
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.
Как установить скилл call-fal-image-generation-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл call-fal-image-generation-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…