Skip to main content
POST
/
api
/
public
/
v1
/
asset
/
pricing
curl -X POST "https://app.hoox.video/api/public/v1/asset/pricing" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "veo-3.1",
    "duration": 8,
    "resolution": "1080p",
    "generation_count": 2
  }'
{
  "model": "veo-3.1",
  "cost_per_generation": 80,
  "total_cost": 160,
  "currency": "credits",
  "generation_count": 2
}

Overview

Returns the exact credit cost for a generation with the given parameters, without submitting a job and without debiting credits. Useful to display a price preview before letting the user submit.

Authentication

This endpoint requires API key authentication. Include your API key in the Authorization header.

Request Body

model
string
required
Model identifier (e.g. veo-3.1).
duration
integer
Duration in seconds (e.g. 8). Used by video models. See the model’s supported durations via Get Model.
resolution
string
Resolution (e.g. 720p, 1080p, 2K).
model_settings
object
Custom model settings such as generateAudio. Some settings affect cost — see the model page.
image_count
number
Number of reference images. Used by models with per-image pricing (e.g. reve-fast).
generation_count
number
default:"1"
Number of variations. Multiplies cost_per_generation.

Response

model
string
cost_per_generation
number
Credits for one generation.
total_cost
number
cost_per_generation × generation_count.
currency
string
Always credits.
generation_count
number
normalized
object
Present only when the engine coerced one of your inputs to a different supported value (e.g. an unsupported duration snapped to the nearest valid one). Each field appears only if it differs from what you sent. Omitted entirely when nothing was changed.

Example

curl -X POST "https://app.hoox.video/api/public/v1/asset/pricing" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "veo-3.1",
    "duration": 8,
    "resolution": "1080p",
    "generation_count": 2
  }'
{
  "model": "veo-3.1",
  "cost_per_generation": 80,
  "total_cost": 160,
  "currency": "credits",
  "generation_count": 2
}