Skip to main content
POST

Request Parameters

Body

string
The image url.
string
The key used to store the image on Jigsawstack file. Learn more about how to handle files in Jigsawstack’s Handling Files section.
string
The text content to generate embeddings for. Optional if providing content through another method.
string
required
The type of content being processed. Must be one of the following values:
  • text: Plain text input
  • text-other: Other text format
  • image: Image content
  • audio: Audio content
  • pdf: PDF document
string
default:"error"
Determines behavior when input exceeds token limits:
  • error: Return an error (default)
  • truncate: Truncate the input to fit within token limits
string
required
Your JigsawStack API key

Response Structure

boolean
Indicates whether the call was successful.
object
Usage information for the API call.
string
A unique identifier for the request
array<array<number>>
The vector embedding representation of the input content. This is an array of arrays of floating-point numbers.
array<string> | array<object>
Array of text chunks with timestamps. Only available for text and audio content types.