Analysis Quote
Check whether a media item can be analysed as audio or video, and what that will cost, before running a chat with analysisInput.
This is the only check that reflects both the account's premium opt-in and the platform-wide switch, so treat it as the answer on whether a run will work. An ineligible file is a normal 200 with eligible: false and a plain-English reason, not an error.
The quote shares its eligibility rules, duration cap, model resolution and credit conversion with the run itself, so the figure you get back is the figure the run is charged against.
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/prompt/analysisQuote
- Auth: API key in header x-speakai-key and API key in header x-access-token
Query parameters
The media item you want to price. Must belong to your company.
What the model would take in. Use "audio" to have it hear the recording, or "video" to have it watch the file. Audio on a video file is priced for the extracted audio track, which costs a fraction of a video pass and reaches longer files.
Price the run against a specific model. Optional. Leave it out and your company default is used, which is what the run itself would use.
Response
OK
Changes
No recorded changes to this operation across all 2 revisions of this API.