generate_imageLABSCO SUMMARY
Transparent backgrounds without a second step.
It is a thin wrapper, and that is the appeal: one call, four options, no image pipeline to maintain. The background argument is the detail worth knowing — asking for transparent up front saves the cut-out work that usually follows a generated asset. Note that both keys are yours, so generation bills to your own accounts.
What it is
A small FastMCP server in TypeScript that wraps fal.ai's text-to-image API. It exists to make image generation a single tool call from a client, with the fal.ai account and your own OpenAI key behind it.
What you get
generate_image— the one tool, taking a text prompt and returning generated images- Size control — auto, or 1024x1024, 1536x1024 and 1024x1536
- A count argument to generate several variations from one prompt in one call
- Quality selectable as auto, low, medium or high
- Background selectable as auto, transparent or opaque, which is what you want for assets that sit on a page
Requirements
Two credentials, both set in the environment: FAL_KEY for fal.ai, and OPENAI_API_KEY, which this uses as a bring-your-own-key setup. Then npm install, npm run build, and point your client at dist/index.js with those keys in the env block — or run it in development mode from the project directory.
Setup effort
Build from source — git clone https://github.com/htakeda777/fal_openai_image1.git
USE CASES
Getting an asset with no background
Ask for a transparent background at generation time instead of cutting one out afterwards.
Trying several takes on one prompt
Raise the image count and compare variations in a single call rather than repeating the prompt.
Matching an image to a layout
Pick the landscape or portrait size that fits the slot you are filling and generate straight into it.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation.
Requires
- npm on PATH
- FAL_KEY in your environment
- OPENAI_API_KEY in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
git clone https://github.com/htakeda777/fal_openai_image1.git
cd fal_openai_image1
npm install
npm run buildMCP Clients
Claude Code
{
"mcpServers": {
"fal-openai-image": {
"command": "node",
"args": [
"<YOUR_PATH_TO_FAL_OPENAI_IMAGE1>/dist/index.js"
],
"env": {
"FAL_KEY": "<YOUR_FAL_KEY>",
"OPENAI_API_KEY": "<YOUR_OPENAI_API_KEY>"
}
}
}
}