Create embeddings
POST {{baseUrl}}/embeddings
Creates an embedding vector representing the input text.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status OK
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.0028667077,
0.018867997,
-0.030135695,
-0.004034549,
0.024676088,
-0.0030139843,
-0.012645043,
0.0063681565,
0.007314046,
-0.021091666,
-0.004127893,
0.019979833,
0.020792965,
0.030384613,
0.01447874,
-0.013682202,
-0.007085871,
-0.02077637,
0.026335543,
0.04732764,
0.13069864,
0.03191131,
0.005542578,
-0.0015619616,
-0.0035947934,
-0.0041444874,
-0.056686968,
-0.0140887685,
-0.036773514,
-0.010512644,
0.008218449,
0.015764818,
0.00985716,
-0.017789353,
0.012827584,
-0.014196633,
0.032541905,
-0.02314939,
-0.002360574,
-0.029123427,
0.0073970184,
0.01356604,
0.03547914,
-0.020311723,
-0.030285046,
0.02300004,
-0.01150002,
0.032044068,
-0.015565683,
0.024062091,
-0.019730914,
0.008048355,
-0.0030222815,
0.0001533699,
0.026335543,
0.040457502,
0.014080471,
0.027463973,
0.011275994,
0.060370956,
0.0026385328,
-0.019266266,
0.028077971,
0.009649728,
0.027497161,
0.029057048,
0.01861908,
0.026219381,
-0.008985946,
0.012346341,
0.0046049864,
0.011450237,
0.009052324,
0.025489222,
0.025406249,
0.008637461,
-0.006413792,
-0.02704911,
0.02266815,
-0.0025223708,
0.022551987,
-0.02756354,
-0.007911449,
0.02457652,
-0.004770932,
-0.014470443,
-0.018137839,
0.0022195205,
-0.014636389,
0.029040454,
0.02358085,
-0.029073643,
-0.004239906,
0.004787526,
0.01934924,
0.029671047,
0.019432213,
0.06103474,
-0.0001505177,
0.0013918675,
0.011748938,
-0.006650264,
0.020162372,
-0.0032753483,
-0.02570495,
-0.03161261,
0.010379888,
0.03172877,
0.008259935,
0.0020846897,
0.00611509,
-0.018867997,
-0.033471197,
-0.0012103646,
-0.022917068,
0.010047997,
0.042183332,
0.007928044,
-0.038001508,
0.022170313,
-0.007961233,
-0.024178252,
-0.03760324,
-0.023813173,
-0.0075920043,
0.01679368,
0.00035522698,
0.01971432,
-0.021672476,
0.019083727,
0.0045012706,
0.018453134,
0.0246429,
-0.017125571,
-0.03401882,
0.020610426,
0.009965024,
0.017075786,
0.0063059274,
-0.03245893,
0.014312795,
0.0038354143,
-0.05074612,
-0.019963238,
0.0121886935,
-0.0419842,
0.015101036,
0.027231649,
-0.0070319385,
-0.013823256,
0.03976053,
-0.02902386,
-0.011632776,
0.019979833,
0.024360793,
0.023381714,
-0.0033541725,
-0.02318258,
-0.001297486,
0.016071817,
0.0246429,
-0.047360834,
0.011466831,
0.013350312,
0.0061773197,
0.009160189,
-0.0029579776,
0.042880304,
0.028758347,
-0.01648668,
0.019382428,
0.0006233326,
0.008720433,
-0.007770396,
0.01828719,
0.032575093,
0.033902656, Curl curl -X POST 'https://api.openai.com/v1/embeddings' -d '{"model":"text-similarity-babbage-001","input":"I was looking for something interesting to write about when it came to technology..."}' ENDPOINTS |