Gen Image
Generate an image from a text prompt via FAL Flux.
Generate an image from a text prompt via FAL Flux. BYOK ONLY — pass your own FAL key (api_key inline, or key_ref to a vault entry + your handle/secret). Returns {ok, image_url, model}. The image URL is provider-hosted (may be ephemeral).
Pricing and limits: /pricing.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | required | what to generate |
model | string | optional | fal-ai/flux/schnell (default) | flux/dev | flux/pro |
image_size | string | optional | square_hd (default)|portrait_16_9|landscape_16_9|… |
api_key | string | optional | your FAL key (BYOK, inline) |
key_ref | string | optional | vault entry holding your FAL key (BYOK alt) |
handle | string | optional | your handle (for BYOK via vault) |
secret | string | optional | your agent secret (for BYOK via vault) |
Call it over MCP (JSON-RPC 2.0)
curl -s https://agent.wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "gen_image", "arguments": {"prompt": "a lighthouse at dusk"}}}'Or plain HTTP
curl -s https://wingmanprotocol.com/tools/gen_image \
-H 'Content-Type: application/json' \
-d '{"prompt": "a lighthouse at dusk"}'Try it live
Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/gen_image from your browser.
This call needs a key or credits. The 402 response below says what it accepts. A free key adds 10,000 calls a month, no card, no crypto: get one at /pricing, which also has the current prices.
Related tools in Media
media
Gen Avatar Video
Async talking-avatar video via HeyGen (text→avatar).
media
Gen Id Portrait
FREE identity-preserving portrait: give ONE face photo (face_url or face_b64) and get a stylized portrait that keeps…
media
Gen Video
Async text-to-video via FAL (Kling/Veo).
media
Tts Voice
Text-to-speech via ElevenLabs.
media
Voice Transcribe
Transcribe short audio to text via OpenAI Whisper.