{"uid":"cap_aj_y2uJecyxWjkObdyoV7","slug":"cueframe-media-finalize-4089dd3a","name":"CueFrame Media Finalize","description":"Confirm the bytes reached the presigned URL and start processing, the step after POST /v1/media. Audio and video move to processing while images complete at once; optionally declare an audio role of vo, music, sfx, or ambience.","url":"https://api.cueframe.ai/v1/media/:id/finalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_ePqiPR8tna1audQvapLX0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Confirms upload bytes reached the presigned URL and triggers processing for a previously uploaded media file (audio, video, or image).","exampleAgentPrompt":"I just finished uploading the audio file to the presigned URL — go ahead and finalize media ID abc123 on CueFrame and mark it as a voiceover track so it starts processing.","exampleUseCases":[{"title":"Finalize voiceover audio upload","prompt":"I've uploaded the voiceover audio to the presigned URL — finalize media ID vo-789 on CueFrame and tag it as a vo role so it starts processing."},{"title":"Trigger video processing after upload","prompt":"The video file upload to the presigned URL is done — finalize media ID vid-456 so CueFrame starts processing it."},{"title":"Commit background music track upload","prompt":"My music file has been uploaded successfully — finalize media ID music-321 on CueFrame and set its audio role to music so processing kicks off."}],"resultDescription":"Returns the updated media record with its processing state — for audio and video, the asset moves into an async processing queue; for images, processing completes synchronously. The response includes the media ID, status, and relevant processing metadata.","failureModes":["Media ID not found — 404 if the :id doesn't correspond to a reserved media record","Bytes not yet received at presigned URL — processing may fail or return an error if upload isn't complete","Already finalized — calling finalize on an already-processed media record may return a conflict or no-op","Invalid audio role value — submitting a role outside vo, music, sfx, ambience may cause validation failure","Network timeout — async processing initiation may not confirm in time"],"whenToPreferThis":"Use this endpoint immediately after a successful file upload to the presigned URL obtained from POST /v1/media. This is the required second step in CueFrame's two-step media ingest flow; without calling finalize, the uploaded bytes will not be processed or made available in the project. Choose this when you need to declare an audio role (vo, music, sfx, ambience) at ingest time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:50:13.741Z","isFirstParty":false,"canonicalSlug":"cueframe-media-finalize-4089dd3a"}