Video to Sound API (0.2)
API documentation for Video to Sound - the AI-powered sound design platform.
This version corrects the documentation to match how the API already behaves. The API itself has not changed.
- Session IDs are 16-character hex strings (e.g.
2876638c8e3a53f5), not UUIDs. Chunked upload IDs are UUIDs. - The upload limit is checked when the upload is finished (the
POSTthat creates the session) and returns400witherror_codeUPLOAD_LIMIT_EXCEEDED, not403. - Validation errors that carry an
error_codereturn their top-level values as one-item lists and the values indetailsas strings. processing_arguments.user_promptis limited to 250 characters. All acceptedprocessing_argumentskeys are now listed; unknown keys are rejected.- The API key security scheme uses the
Authorizationheader (Authorization: Api-Key <api_key>). cancelledis a terminal session status, alongsidecompletedandfailed.- The full session object and all output files are documented.
- "Rerun a session" is deprecated: use "Regenerate session" instead.
All API endpoints except "Get a video" require the krotos-client header value to be set to "v2s".
All API endpoints except "Get a video" require authentication. Authentication must be done either by using an API key or using a JWT. Do not use both.
Obtain tokens via the "Obtain JWT token pair" endpoint.
Include the access token in the Authorization header:
Authorization: Bearer <access_token>
API requests are rate-limited per account. Chunk uploads have their own limit of 100 requests per minute. When rate limited, a request will receive a 429 Too Many Requests response with a Retry-After header.
Errors return JSON in one of these shapes:
{"detail": "..."}: authentication, permission, not found, rate limiting, and chunk upload errors.{"error": "..."}: a request that is not allowed in the session's current state (e.g. regenerating a session that has not completed).- Validation errors: an object keyed by field name, each with a list of messages, e.g.
{"processing_arguments": ["Unknown argument: foo"]}. Plan limit errors (UPLOAD_LIMIT_EXCEEDED,VIDEO_TOO_LONG) also come in this shape, witherror,error_codeanddetailskeys.
Authenticated requests that are not allowed to use Video to Sound (for example a missing or wrong krotos-client header, or an account without access) receive 403 Forbidden.