Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The contract of this API is as follows:

POST

...

/embedding

Expected parameters:

Record as json body

Expected headers:

Code Block
x-apikey: <optional api key>

Output

Array of float (vector) with size equal to dimensions. The vector is normalized

...

Code Block
languagejson
{ "Embedding": [ 
  -0.006929283495992422,
  -0.005336422007530928,
  ... (omitted for spacing)
  -4.547132266452536e-05,
  -0.024047505110502243 
  ]
}

POST

...

/describe

Expected parameters:

Record as json body

Expected headers:

Code Block
x-apikey: <optional api key>

Output

Textual string

Ex.

Code Block
languagejson
{ "Description": This is an image of a cat"}

...