Create Embedding of User Input
POST https://api.openai.com/v1/embeddings
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Content-Type
|
string | ||
Authorization
|
string |
RESPONSES
status OK
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
-0.0142941205,
0.019290362,
-0.052887026,
-0.031025432,
-0.009468484,
-0.035729207,
-0.02248308,
0.05444683,
0.010315408,
-0.0033267646,
0.025858589,
-0.0063306014,
0.007634498,
-0.043138266,
0.016901914,
0.011192796,
-0.013404546,
-0.014623141,
-0.07097098,
-0.010077782,
0.00539533,
0.030001812,
0.044527464,
-0.041944046,
-0.06292825,
0.046964657,
-0.04165158,
-0.02434753,
0.013550778,
-0.036338508,
0.0077746366,
-0.024566878,
0.009998573,
-0.0061843703,
-0.034096293,
-0.00094136473,
0.017864604,
0.041578464,
0.028661357,
0.020253051,
-0.010656614,
0.016792241,
0.0063549737,
-0.01164977,
0.032609604,
0.0034425312,
-0.028417638,
0.041334745,
0.020021517,
0.027491506,
-0.0036375064,
0.037776448,
-0.024786225,
0.030708596,
-0.029587489,
0.0135995215,
0.051327225,
0.019936217,
0.027247787,
-0.027247787,
0.06546293,
-0.038288258,
-0.026589746,
0.024213485,
-0.004651987,
-0.07579662,
0.012722133,
0.044235002,
-0.0047555673,
-0.051522203,
0.009559879,
0.024323158,
0.00023781645,
-0.049767423,
0.009748761,
-0.009754854,
-0.012319997,
-0.029806836,
0.020594258,
-0.0030068834,
-0.055957887,
-0.028515127,
-0.0093344385,
-0.019339105,
-0.024627807,
-0.029124424,
-0.051960897,
0.05556794,
-0.007159246,
0.018632319,
-0.007055666,
0.061075985,
0.036216646,
0.023701675,
0.010510383,
0.008816536,
-0.041529723,
0.011850838,
-0.0228121,
0.067607656,
0.06897248,
0.00008720571,
0.009383182,
0.0082437955,
0.034559358,
-0.05459306,
-0.014525654,
-0.011954418,
-0.016231688,
-0.032268398,
-0.054105625,
-0.081645876,
-0.009724389,
0.0117 Curl curl -X POST 'https://api.openai.com/v1/embeddings' -H 'Content-Type: application/json' -H 'Authorization: Bearer vault:OpenAIKey' -d '{"input":"","model":"text-embedding-3-small"}' ENDPOINTS |