Skip to content
Cortex Docs

Basic instructions to start using the API

Basic instructions to start using the API right way

Step by Step

To access cortex embeddings follow this Link. The following window will be displayed:

Fig1.png

Drop down the “GET” option in management, click on “try it out” and then insert the provided api-Key

fig3.png

Click on the “Execute” option that will appear after clicking on “try it out”

fig4.png

After clicking execute, the “responses” section will change. It is important to verify that the status is set to “healthy”. It is important to note that if you get the code 500, you should contact the support team.

fig6.png

Then you must deploy the “POST” option, select “try it out” and enter again the provided Api-Key

fig7.png

Select the image file (must be at most 512x512 pixels) you want from your computer and then select “Execute”

fig8.png

Finally verify that the code 200 is received as this indicates that the embedding has been processed. In “Response body” you will get the vector.

fig9.png

Examples:

Input Image

ImagenCortexEmbb.jpg

Output Vector

[
  0.23572221398353577,
  0.49218156933784485,
  -0.11135128885507584,
  0.04515078291296959,
  -0.21859747171401978,
  -0.49303290247917175,
  0.4679184556007385,
  0.07680972665548325,
  0.4880993068218231,
  0.6217859983444214,...]