imagen4defaultGoogle Imagen 4 API — how to connect and pay
Google Imagen 4 supports text, image, video generation. Pricing is per image.
Channel comparison
last 7 days
| Channel | Price |
|---|---|
Pixel imagen4default | from $0.026667 per image |
Build the result you need
imagen4What is Google Imagen 4
Google Imagen 4 supports text, image, video generation. Pricing is per image.
Contract at a glance
- Input
- text
- Output
- image
- Mode
- async (job + polling)
- Status polling
- every 3 s · up to 90 s
Strengths
- Pricing: per image
- Inputs: text, image, video
- 5 configurable options
- One API key for media generation
Where it is used
- Article and social media illustrations
- Product images
- Banners and covers
- Design prototypes
API contract
Generation runs asynchronously: create a job, then poll its status until completion.
- Create job
- POST /api/media/generate
- Check status
- GET /api/media/jobs/{jobId}
- Input
- text
- Output
- image
- Polling
- every 3 s · up to 90 s
- Authentication
- Authorization: Bearer sk-pv-…
Example request
Pass your key in the Bearer header. The API returns jobId for polling the status.
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"imagen4","prompt":"a beautiful landscape","opts":{"aspect_ratio":"1:1","tier":"standard"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "imagen4",
"prompt": "a beautiful landscape",
"opts": {
"aspect_ratio": "1:1",
"tier": "standard"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);API request parameters
Parameters for requests to Google Imagen 4 via the GetVibe API.
promptreq.aspect_ratiotiernegative_promptseed| Parameter | Type | Values | Default | Price |
|---|---|---|---|---|
promptreq. | text | text description | required | — |
aspect_ratio | option selection | 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4 | 1:1 | Included in the base price |
tier | option selection | Fast · Standard (default) · Ultra (max quality) | Standard | Fast: $0.026667, Standard: $0.053333, Ultra (max quality): $0.08 |
negative_prompt | text / number | any value | — | Included in the base price |
seed | text / number | any value | — | Included in the base price |
Request: POST https://getvibeapi.com/api/media/generate. Prices in USD.
Price of Google Imagen 4
The cost of Google Imagen 4: from $0.026667 per image. The price is calculated dynamically at the current exchange rate, and the final charge is shown in the API response (priceRub). Payment in USD, no subscriptions.
What a default request costs
With no parameters sent, the request uses these values: Version and quality — Standard, Frame format — 1:1. That request costs $0.053333.
“from $0.026667” is the cheapest parameter set, not the price of a default request.
Channels and prices for every parameter combination
For every channel, the price of every parameter combination. It is exactly the amount a successful generation is charged, and the same figure as in the machine-readable table linked below.
Pixelimagen4from $0.026667exact prices
| Quality | Fast | Standard | Ultra (max quality) |
|---|---|---|---|
| Pixel | $0.026667 | $0.053333 | $0.08 |
Every combination as JSON: /api/media/price-table?model=imagen4
README
The machine-readable contract for Google Imagen 4 contains the request schema, operations, limits, polling and response examples.
# Google Imagen 4
Public model: imagen4
Create job: POST /api/media/generate
Check status: GET /api/media/jobs/{jobId}
## Input parameters
- `prompt` (text): text description; default: required
- `aspect_ratio` (option selection): 1:1 (default) · 16:9 · 9:16 · 4:3 · 3:4; default: 1:1
- `tier` (option selection): Fast · Standard (default) · Ultra (max quality); default: Standard
- `negative_prompt` (text / number): any value; default: —
- `seed` (text / number): any value; default: —
## Public variants
- `imagen4`: PixelFAQ about the Google Imagen 4 API
How much does Google Imagen 4 cost?
The price of Google Imagen 4: from $0.026667 per image. The price is calculated dynamically at the current exchange rate.
Is it compatible with the OpenAI SDK?
Yes, the API is fully OpenAI-compatible. Just change base_url to https://getvibeapi.com/v1 and set your key — the rest of the code stays the same.
Connect Google Imagen 4 right now
Sign up in a minute, pay per use, ready-made code above.
Get API key