AI

Run an AI video helper function

Run read-only helper functions for public video generation, such as estimating Veo credit cost or validating a prospective generation request. This endpoint does not generate video or spend credits.

post/api/v1/ai/video-function

Request

  • Base URL: https://www.poster.ly
  • URL: https://www.poster.ly/api/v1/ai/video-function
  • Auth: HTTP bearer

Request body

identifier'google_veo' | 'veo3' | 'xai_grok' | 'grok_imagine' required
functionName'list_input_modes' | 'estimate_cost' | 'validate_request' required
paramsobject

Example request

{
  "identifier": "google_veo",
  "functionName": "estimate_cost",
  "params": {
    "model": "fast",
    "duration_seconds": 8,
    "resolution": "720p",
    "output": "vertical"
  }
}

Response

Video helper function completed

VideoFunctionResponse required

Example response

{
  "identifier": "google_veo",
  "functionName": "estimate_cost",
  "model": "fast",
  "duration_seconds": 8,
  "resolution": "720p",
  "aspect_ratio": "9:16",
  "output": "vertical",
  "credit_cost": 16,
  "spend_required": false
}

Changes

No recorded changes to this operation across all 1 revision of this API.