Image & Video Generation
Generate images or video inside your product through an API, without running GPUs yourself.
Trends
Gemini API gained the most ground in package downloads: 4.9× against the median npm package over a year.
Public counts each month: pull requests on GitHub, package downloads, stars, Product Hunt followers. They show direction, not market share.
- Oct 8 · Action needed Gemini API shuts down the deep-research-pro-preview-12-2025 agent on October 23 and now routes gemini-3.7-flash and gemini-3.5-flash to their successors; update the agent and model strings.
- Oct 6 · Action needed Gemini API deprecates the gemini-3.1-flash-image model, with no shutdown date yet; move image generation to gemini-nano-banana-2.1.
- Oct 1 · Action needed OpenAI removes gpt-5.1, gpt-5.3-codex and gpt-5.4-nano from the API on April 1, 2027; move to gpt-6-sol or gpt-6-luna.
- Oct 1 · Action needed OpenAI removes the tts-1, tts-1-hd and gpt-4o-mini-tts text-to-speech models on January 6, 2027; move to gpt-realtime-2.1-mini.
The real choice
Model marketplace, the model maker's own API, or open models you run. Marketplaces let you switch between many open and closed models behind one account and try new ones the week they ship. A first-party API gives you one model family directly from its maker, with fewer choices but no middleman. Running open models yourself gives full control over pipelines and fine-tunes, but you provide and manage the GPUs.
Pick by situation
Tap the ones that are you — the tools that fit light up below.- Generation speed is part of the experience and you want many current models on one account
fal
Replicate - You already use OpenAI or Gemini and want image generation and editing on the same key
OpenAI API
Gemini API - You want a specific model family straight from its maker
Black Forest Labs
Stability AI - Your product generates video from text or images
Runway
Gemini API
fal - You need custom multi-step pipelines or fine-tuned models on your own GPUs
ComfyUI
Diffusers
Compare the tools
Grouped by the side of the choice they answer, not ranked. Open a row for when to use it, the trade-off and what makers say.
falapiLow-latency image and video generation across many current models, billed per output.


20+17 open source1.4M/wk3.8× vs npm
Use it whenGeneration speed is part of your product experience.
Trade-offHosted only; you depend on fal adding and keeping the models you use.
In v0Used by Fuser, Keet, Magic Hour, PicMotionAI, BetterPic and 15 more · in 17 open-source projects.
FAL has been a game-changer for inference. Plug-and-play API for top-tier AI models without worrying about infrastructure. It lets me ship fast without dealing with GPUs or weird SDKs.
ReplicateapiA wide catalog of community and open models, plus deploying your own fine-tuned model behind an API.


10+39 open source507.8k/wk−13% vs npm
Use it whenYou need a niche model or want to host a custom one.
Trade-offBilled per second of compute, and cold starts on less-used models add latency.
llms.txtIn LovableUsed by Articos, BetterPic, BrandingStudio.ai®, Macaly, Reloop and 5 more · in 39 open-source projects.
Replicate lets us run AI models without worrying about infrastructure. It’s perfect for testing crowd prediction models without spinning up full cloud stacks.
RunwayapiText-to-video, image-to-video and video-to-video generation through Runway's developer API.


950.4k/wk+117% vs npm
Use it whenVideo generation is the product, not a side feature.
Trade-offPrepaid credits per generation, and video is slow and costly to iterate on.
Used by Fuser, Bbc, Figma, Havas, Musixmatch and 4 more.
Stability AIapi · self-hostableStable Diffusion models from their maker, with open weights you can later run yourself.

3
Use it whenYou want an API now and the option to self-host or fine-tune later.
Trade-offCredit-based pricing, and self-hosting the open weights has its own license terms to check.
Used by Writesonic, AI Game Master- Dungeon RPG, ImageKit.
Excellent Quality at Unbeatable Prices! The quality here surpasses every competitor we've tried, and the pricing is incredibly reasonable. They’ve truly nailed the perfect balance of value and performance. Highly recommended!
Black Forest Labsapi · self-hostableFLUX image models from their maker, through its API or, for some versions, as open weights you can run.No evidence yet21.1k/wk
Use it whenYou want FLUX with the newest versions first, or a path to self-hosting later.
Trade-offOpen-weight licenses differ by model, and some forbid commercial use without a paid license.
No maker's product we track shows it for this yet.
Gemini APIapi · free tierGoogle's image models for generation and editing, and Veo for video, on the same key as Gemini's text models.No evidence yet22.2M/wk4.9× vs npm
Use it whenYou're on the Gemini API already, or need image editing that follows instructions closely.
Trade-offOne vendor's model families only, and video generation is priced per second, so costs rise quickly.
In Lovable, ReplitNo maker's product we track shows it for this yet.
OpenAI APIapiApps already on the OpenAI API that want image generation and editing with strong prompt following, on the same key.No evidence yet37.4M/wk+60% vs npm
Use it whenYou're on OpenAI already and want images without another vendor.
Trade-offOne model family only, with less control over style than open models you can fine-tune.
llms.txtIn Lovable, Replit, RorkNo maker's product we track shows it for this yet.
ComfyUIapp · open sourceBuilding multi-step image and video pipelines — models, LoRAs, control inputs, upscalers — as node graphs you run on your own GPU or on Comfy Cloud.1★ 138k
Use it whenYour output needs a specific chain of models and steps that no single API offers.
Trade-offYou run and maintain GPU servers and custom nodes; turning a workflow into a production API is work of its own.
Used by Xindi Zhang.
Diffuserslibrary · open sourceRunning and fine-tuning open image and video diffusion models from Python code.44 open source1.2M/wk
Use it whenYou write the pipeline in code, fine-tune on your own images, or serve a model on rented GPUs.
Trade-offYou manage GPUs, memory and model licenses yourself.
No maker's product we track shows it for this yet · in 44 open-source projects.
Who switches to what
Public pull requests on GitHub since Oct 2024 whose title says "X to Y" — real code changes, by developers in general rather than makers only. Pick a flow to see its pull requests.
- feat(dh): switch listup web search from OpenAI to Geminigrowthhackerssnu/admin · 2026-10-01
- Switch production thumbnails from OpenAI to Geminikevin4relocate/TripCaution · 2026-09-30
- feat: move OpenAI and Google defaults to GPT-6 and Gemini 3tag1consulting/ai-pr-review · 2026-09-29
- Migrate from OpenAI to Google Gemini for embeddings and LLManiilhr/agentic-ai-rag-chatbot · 2026-09-29
- fix: preserve image parts in OpenAI to Gemini responsesmoeacgx/NewAPI-Mao · 2026-09-27
- Updating from OpenAI to Gemini in llm.py following the potential toke…harpand87/banking-support-agent · 2026-09-27
- Switch the assistant LLM from OpenAI to Geministariik/Mia · 2026-09-26
- port(upstream): #4274 - disambiguate colliding tool call ids in openai to geminibloodf/durindoor · 2026-09-25
- feat(gemini): convert OpenAI Embeddings to Gemini embeddingstbphp/gpt-load · 2026-09-25
- Switch AI provider from OpenAI to Google GeminiOricrew/service-scheduler · 2026-09-24
- Switch Alora Chat from OpenAI to Google Gemini (free tier)vaniabhagania/Alora · 2026-09-24
- Podcast sources: switch from OpenAI to Google Gemininetteran/locreport · 2026-09-23
- fix(translator): disambiguate colliding tool call ids in openai to gemini requestdecolua/9router · 2026-09-23
- Switch the data analysis agent from OpenAI to Geminiluphone04/TalkToData_Data-Analytics-AI-Agent · 2026-09-21
- fix(relaykit): keep generated images when converting OpenAI chat to Geminimrdjango/models-gateway · 2026-09-20
- Switch analysis backend from OpenAI to Gemini APIgelson-ai/datachat-ai · 2026-09-18
- feat: bridge OpenAI Realtime to Gemini Livephongsathornpt/kokekokkor · 2026-09-16
- fix: changed chatbot ai api from openai to gemini due to insufficient…yani-clstn/Koolest · 2026-09-16
- Swap AI report generation from OpenAI to Google Geminirajibr0610/GRC-Quick-scan · 2026-09-14
- feat: translate OpenAI Responses to Geminiphongsathornpt/kokekokkor · 2026-09-13
- gemini fallback to openai fixesmaximhq/bifrost · 2026-10-02
- Switch LLM backend from Gemini to OpenAI gpt-4o-miniPiSquareLabs/PathShala · 2026-09-30
- perf(gemini): Migrate Gemini to OpenAI formattisfeng/Easydict · 2026-09-29
- fixes foreign-function-call-id issue for fallback from gemini to openaimaximhq/bifrost · 2026-09-29
- Switch the model calls from Gemini to OpenAI gpt-5.4-miniMishaMatcharashvili/trip-io · 2026-09-25
- refactor: migrate AI insights service from Gemini API to OpenAI APITkYaLa34/AI-Investment-Research-Platform- · 2026-09-23
- Switch AI provider from Gemini to OpenAI, add dialogue lessons, fix e…aaryashah1010/Fluentify · 2026-09-22
- migrated from gemini to openai llmmohitgarg196/CodeVitals-AI · 2026-09-21
- Fix Gemini adapter to support OpenAI SDK client formatarvindg4u/APIKeyRotator · 2026-09-20
- Fix Gemini chat model + image fallback to OpenAIfabelanorma3010/How--to-wite--a-fiction-book · 2026-09-05
- feat: migrate backend LLM from Gemini to OpenAI (OCR + chat)code-1705/ResolveAI · 2026-08-30
- Migrate BurilLab AI APIs from Gemini to OpenAIhaengjoo123/buril-lab · 2026-08-28
- fix(ts): a bare claude- or gemini- model no longer routes to OpenAIMervinPraison/PraisonAI · 2026-08-27
- Update LLM Advisor model documentation from Gemini to OpenAI gpt-5.4-nanodmboynton56/personal-portfolio · 2026-08-26
- Migrate Gemini providers to OpenAI, revamp dashboard UIsahasprajapati/daily-brief-editorial-ai · 2026-08-26
- fix(translator): preserve functionCall id in Gemini to OpenAI request translationdiegosouzapw/OmniRoute · 2026-08-24
- Switch link description generation from Gemini to OpenAIhectorcflores/my-reading-list · 2026-08-20
- Migrate AI provider from Gemini to OpenAI and update docstharakanst/cultural_food_guide · 2026-08-17
- Swap the production image provider from Gemini to OpenAIKyleMit/Splotch · 2026-08-14
- Migrate Day 11 runtime from Gemini to OpenAIQuocKhanhLuong/K3-Day-11-Guardrails-HITL-Responsible-AI · 2026-08-07
Before you choose
Pick the model by generating the same 20 prompts from your real use case on a few candidates, then pick the platform that hosts it. Generations are slow and cost per output, so run them in a background job and store results in your own object storage. Set per-user limits from day one; image generation is an easy way to get a surprise bill.
- Generating inside the web request, so users stare at a spinner until the function times out.
- Serving the provider's temporary output URLs to users instead of copying results to your own storage, and finding the images gone a day later.
- Launching free generations with no per-user limit, then paying for someone's script that ran all night.
Other options
Real choices most makers here won't need to weigh.
Decided alongside
What the 68 makers' products here chose for their other decisions.