{"uid":"cap_4HVWQqk3cTBRhP67pP32R","slug":"saylor-innovations-video-frame-calculator-5ef56540","name":"Saylor Innovations Video Frame Calculator","description":"Video frame count and frame interval from frame rate and duration","url":"https://saylorinnovations.com/api/video/frames?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","required":["fps","seconds"],"properties":{"fps":{"type":"string","description":"required positive frames per second (query)"},"seconds":{"type":"string","description":"required positive duration seconds (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["total_frames","scope_note"],"properties":{"fps":{"type":["number","null"]},"formula":{"type":"string","description":"Formula used for the calculation"},"seconds":{"type":["number","null"]},"scope_note":{"type":"string","description":"What this data covers and what it leaves out"},"total_frames":{"type":"number","description":"Total frames"},"duration_seconds":{"type":"number","description":"Duration in seconds"},"frame_interval_ms":{"type":"number","description":"Frame interval, in milliseconds"},"frames_per_second":{"type":"number","description":"Frames per second"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zuIiGzv7y6acbEeAmYv5-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates total frame count and frame interval (in milliseconds) from a given frame rate (fps) and duration (seconds)","exampleAgentPrompt":"How many total frames are in a 30fps video that's 120 seconds long, and what's the frame interval in milliseconds?","exampleUseCases":[{"title":"Video encoding pipeline frame budget","prompt":"I'm encoding a 90-second clip at 24fps — how many total frames will that be and what's the interval between frames in milliseconds?"},{"title":"Game cutscene frame planning","prompt":"My game cutscene runs at 60fps and is 45 seconds long. How many frames is that total, and how many milliseconds apart is each frame?"},{"title":"Slow-motion footage analysis","prompt":"I shot slow-motion footage at 240fps for 10 seconds. Can you tell me the total frame count and the frame interval in milliseconds?"}],"resultDescription":"Returns a JSON object with total_frames (total number of frames), frame_interval_ms (time between frames in milliseconds), frames_per_second (echoed fps), duration_seconds (echoed duration), the formula used, and a scope_note explaining what the calculation covers and excludes.","failureModes":["Missing fps or seconds query parameters returns an error","Non-positive or zero fps/seconds values are rejected","Non-numeric string values for fps or seconds cause validation failure","Very large or very small values may produce unexpected floating-point results"],"whenToPreferThis":"Use this endpoint when you need a quick, reliable server-side computation of video frame count and frame interval from fps and duration — especially inside automated pipelines where you want to avoid implementing the arithmetic yourself and want an auditable formula and scope note returned with the result. It costs $0.01 USDC per call via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:41:20.481Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-video-frame-calculator-5ef56540"}