Use case
AI image and video API for ad creative
Ad teams need many variants: different hooks, crops and visuals, tested against each other. An API lets you generate them in a loop instead of by hand, and per-unit pricing tells you the cost of a test before you run it.
Prices checked Nov 26, 2026
What you can build
- A variant generator: one brief in, 20 image and 10 video variants out
- Auto-crops for 1:1, 4:5 and 9:16 by changing the aspect_ratio parameter
- A review queue where a person approves what ships
Models to start with
These are starting points to test on your own inputs, chosen by price and listed capabilities. We publish no quality or speed benchmarks.
| Task | Model | Price | Why start here |
|---|---|---|---|
| Static ad images | Nano Banana 2.1 | $0.03 per image (2K) | The lowest price at 2K among the image models, with up to 10 reference images for brand style. |
| Images with text in them | GPT Image 2 | $0.05 per image (2K) | OpenAI's image model, positioned for legible text inside the image. Test it on your headline copy. |
| Short video variants | Seedance 2.5 | $0.315 per second (720p) | Per-second billing, so a 5-second hook costs a fixed 5 times the rate. |
Worked cost example
200 ad variants: 150 images and 50 five-second videos. Nano Banana 2.1 at 2K for the images and Seedance 2.5 at 720p for the videos. Retries not counted.
| Item | Model and tier | Quantity | Cost |
|---|---|---|---|
| Image variants | Nano Banana 2.1, 2K | 150 images | $4.50 |
| Video variants (5 s each) | Seedance 2.5, 720p | 250 seconds | $78.75 |
| Total | $83.25 |
Prices checked 2026-11-26, in dollars at 100 credits = $1. Failed tasks are not charged. Put your own numbers into the media cost calculator or the LLM cost calculator.
How to build it
- Write the brief as a prompt template with slots for hook, product and style.
- Generate a small batch and have a person pick the style.
- Scale the batch, keeping the winning prompt and seed settings in your code.
- Log every task id next to the ad id so you can trace results back.
A request to Nano Banana 2.1 looks like this. Same key and endpoint for every model; see the API docs for the full reference.
curl https://api.tapmodels.com/v1/tasks \
-H "Authorization: Bearer $TAPMODELS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-2-1",
"input": {
"prompt": "A matte white ceramic mug on grey stone, soft window light",
"aspect_ratio": "1:1",
"resolution": "1K",
"output_format": "jpg"
},
"callback_url": "https://your.app/hooks/tapmodels"
}'Frequently asked questions
Can I use generated images in paid ads?
Each ad platform and each model provider has its own rules on generated media. Read both before you run paid campaigns; we do not give legal advice.
How do I budget a test?
Multiply the per-unit price by the number of variants, then add 20 to 30 percent for retries while you tune. The media cost calculator does the arithmetic for any model.
Keep reading
- Nano Banana API pricingWhat Nano Banana costs per unit, with a worked example
- Nano Banana vs GPT ImagePrice, limits and which to pick
- Image and video API cost calculatorFree tool
- Text to image APIEvery model we sell for this, ranked by price
- AI video API for ecommerce product videos
- AI API for social media content: images, video and voice