embeddingForVideo
Query
Generate an embedding vector of a video at the specified timestamp
Response
Returns EmbeddingResponse
Arguments
| Name | Type | Description |
|---|---|---|
videoId | ID! | The ID of the video |
timestamp | DateTimeOffset! | The time at which the embedding vector will be generated |
options | EmbeddingOptionsInput | Optional embedding parameters. |
Example
query embeddingForVideo( $videoId: ID!, $timestamp: DateTimeOffset!, $options: EmbeddingOptionsInput) { embeddingForVideo( videoId: $videoId, timestamp: $timestamp, options: $options ) { results { embedding regionIndex } }}{ "videoId": "531b0fdd-4cec-8ed7-ac0f-edfe1f876e2a", "timestamp": "2025-01-01T00:00:00.000Z"}{ "data": { "embeddingForVideo": { "results": [ { "embedding": [ 361.13 ], "regionIndex": 459 } ] } }}