If you're using something like fal.ai, Replicate, or similar tools for image generation, you've probably hit at least one of these issues:
- Models go offline without notice, and re-onboarding somewhere else takes days
- Generation times swing wildly — 8 seconds one request, 40+ the next
- Pricing is opaque until you're already scaling and the invoice surprises you
The switch to WisGate takes one config change. Nano Banana 2 is live, priced at $0.058/image (the official rate is $0.068), and generates consistently in 20 seconds whether you're at 0.5K or 4K. Below are two working tutorials — one for hair/beauty, one for interior design — so you can test it against your current provider in under 10 minutes.
Get your key at wisgate.ai/hall/tokens · Test prompts first at wisgate.ai/studio/image
Switching from Your Current Provider: One-Line Change
If you're on fal.ai or Replicate today, your integration probably looks like this:
# Your current call (fal.ai / Replicate / any competitor)
curl -X POST "https://api.yourprovider.com/v1/generate" \
-H "Authorization: Bearer $THEIR_KEY" \
-d '{"prompt": "...", "model": "their-model-id"}'
WisGate uses the Gemini-native endpoint format. Here's the full working call — this is what you replace your existing call with:
curl -s -X POST \
"https://api.wisgate.ai/v1beta/models/gemini-3.1-flash-image-preview:generateContent" \
-H "x-goog-api-key: $WISDOM_GATE_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "YOUR PROMPT HERE"}]}],
"generationConfig": {
"responseModalities": ["IMAGE"],
"imageConfig": {
"aspectRatio": "1:1",
"imageSize": "1K"
}
}
}' \
| jq -r '.candidates[0].content.parts[0].inlineData.data' \
| base64 --decode > output.png
Key differences from most providers:
- Auth header is
x-goog-api-key, notAuthorization: Bearer - Response is inline Base64 — no cloud storage or URL expiry to manage
- Set
responseModalities: ["IMAGE"]for image-only output; use["TEXT", "IMAGE"]if you also want a caption
Tutorial 1: Hair & Beauty — Virtual Color Try-On
Use case: a hair salon website where visitors can visualize a color change before booking.
curl -s -X POST \
"https://api.wisgate.ai/v1beta/models/gemini-3.1-flash-image-preview:generateContent" \
-H "x-goog-api-key: $WISDOM_GATE_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Professional studio photo of a woman with a rich auburn balayage, natural lighting, clean white background, commercial hair photography style"}]}],
"generationConfig": {
"responseModalities": ["IMAGE"],
"imageConfig": {
"aspectRatio": "3:4",
"imageSize": "2K"
}
}
}' \
| jq -r '.candidates[0].content.parts[0].inlineData.data' \
| base64 --decode > hair_auburn_balayage.png
Prompt variables to swap per booking inquiry:
- Color:
"rich auburn balayage"→"platinum blonde highlights"/"deep burgundy ombre" - Style:
"professional studio photo"→"editorial fashion shoot"/"natural outdoor light" - Aspect ratio:
"3:4"works for portrait/mobile; switch to"1:1"for social media cards
At $0.058/image, generating 10 color previews per booking inquiry costs $0.58. At the same volume on a $0.068 provider, that's $0.68 — a small number per booking, but $1,000 different per 100,000 previews.
Tutorial 2: Interior Design — Room Visualization
Use case: a furniture or home decor website where shoppers can see how a style looks in a room before purchasing.
curl -s -X POST \
"https://api.wisgate.ai/v1beta/models/gemini-3.1-flash-image-preview:generateContent" \
-H "x-goog-api-key: $WISDOM_GATE_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Scandinavian minimalist living room, white oak flooring, linen sofa in warm ivory, large monstera plant in terracotta pot, afternoon natural light through floor-to-ceiling windows, architectural photography style"}]}],
"generationConfig": {
"responseModalities": ["IMAGE"],
"imageConfig": {
"aspectRatio": "16:9",
"imageSize": "2K"
}
}
}' \
| jq -r '.candidates[0].content.parts[0].inlineData.data' \
| base64 --decode > room_scandinavian.png
Style variants to build a full visualization set:
| Style | Key prompt change |
|---|---|
| Scandinavian | "white oak flooring, linen sofa, monstera plant" |
| Industrial | "exposed brick, black steel shelving, concrete floor" |
| Japandi | "low platform bed, washi paper lamp, bamboo accents" |
| Maximalist | "jewel tone walls, layered rugs, gallery wall art" |
Generate all four variants, display them as a style selector on the product page, and let shoppers click through before purchasing. Four images = $0.232 at WisGate rates.
Resolution Guide: Which imageSize for Which Use Case
| Use case | imageSize | aspectRatio | Notes |
|---|---|---|---|
| Social media preview | "1K" | "1:1" or "9:16" | Fast, low cost for high volume |
| Website product image | "2K" | "3:4" or "16:9" | Standard for most web displays |
| Print or high-DPI screens | "4K" | Match your target format | Same 20-second generation time |
| Rapid prototyping | "0.5K" | Any | Useful during prompt development |
All four sizes generate in the same consistent 20 seconds. Resize logic in your application can stay simple — same timeout threshold for every request.
The One-Line Switch
The full migration from any provider listed above — fal.ai, Replicate, Kie.ai, cometapi.com, piapi.ai, or zenmux.ai — is:
- Base URL:
https://api.wisgate.ai(replacegenerativelanguage.googleapis.com) - API Key: Replace
$GEMINI_API_KEYwith your$WISDOM_GATE_KEY
That's the entire migration. New models added to WisGate are available immediately without a separate onboarding process — same key, same endpoint format, just a different model ID.
Generate your key at wisgate.ai/hall/tokens and test your first prompt at wisgate.ai/studio/image before touching your production integration.