GoogleFree
Imagen 4
API model name: imagen-4
Imagen 4 is Google's image generation model, served on the Api.Airforce unified API. It is available on the free tier at no per-token cost. Access it through the OpenAI-compatible API with one key, alongside 65+ other models on Api.Airforce.
Pricing
Specifications
- Provider
- Type
- image generation model
Use Imagen 4 via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass imagen-4 as the model.
cURL
curl https://api.airforce/v1/images/generations \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "imagen-4",
"prompt": "a red panda coding"
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
img = client.images.generate(model="imagen-4", prompt="a red panda coding")
print(img.data[0].url)JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const img = await client.images.generate({ model: "imagen-4", prompt: "a red panda coding" });
console.log(img.data[0].url);Live performance
Real throughput and latency across the suppliers serving this model.
Loading live metrics…
Related models
Gemini 2.5 FlashGoogle · $0.40 / 1MGemini 2.5 ProGoogle · $0.70 / 1MGemini 3 FlashGoogle · $0.15 / 1MGemini 3 ProGoogle · $0.90 / 1MGemini 3.1 Flash LiteGoogle · $0.14 / 1MGemini 3.1 ProGoogle · $0.90 / 1MGemini 3.5 FlashGoogle · $1.20 / 1MGemma3 270mGoogle · FreeImagen 3Google · FreeNano Banana 2Google · $30.00 / 1MNano Banana ProGoogle · $40.00 / 1MClaude 3 7 Ch ExpAnthropic · Free