Pricing API

Get the estimated cost for running a model inference based on the provided parameters.

API Information

ItemDescription
API Path/api/v3/model/pricing
HTTP MethodPOST
Content-Typeapplication/json
AuthenticationBearer Token via Authorization header

Request


curl -X POST "https://api.wavespeed.ai/api/v3/model/pricing" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "model_id": "pixverse/pixverse-v5.5/image-to-video",
  "inputs": {
      "aspect_ratio": "16:9",
      "duration": 5,
      "image": "https://example.com/image.jpg",
      "prompt": "A stylish model, fashion show",
      "sound": true
  }
}'

Parameters

Headers

ParameterTypeRequiredDescription
AuthorizationstringYesAccess Key in format: Bearer {access_key}
Content-TypestringYesapplication/json

Body Parameters

ParameterTypeRequiredDescription
model_idstringYesThe model ID to get pricing for
inputsobjectYesThe parameters for model inference (duration, resolution, etc.)

Response

FieldTypeDescriptionExample
codeintegerHTTP status code200
messagestringStatus message"success"
data.model_idstringModel identifier"pixverse/pixverse-v5.5/image-to-video"
data.unit_pricefloatPrice for one inference in USD0.45
data.currencystringCurrency code"USD"

Response Example

{
    "code": 200,
    "message": "success",
    "data": {
        "model_id": "pixverse/pixverse-v5.5/image-to-video",
        "unit_price": 0.45,
        "currency": "USD"
    }
}

Notes

  • Pricing depends on input parameters (e.g., duration, aspect ratio, sound)
  • Different input values affect the final cost
  • unit_price represents the price for one inference request with the provided parameters
© 2025 WaveSpeedAI. All rights reserved.