Text to Vector API

The Text to Vector API transforms text into vectors using cutting-edge NLP machine learning models. It fuels semantic search, text comparison tools, recommendation engines, and more. Explore its potential alongside our Text Similarity API for enhanced text analysis and application across diverse domains.

About the API:  

 

The Text to Vector API employs advanced NLP machine learning models to encode text into vectors, facilitating semantic search, text comparison, and recommendation systems. Seamlessly integrating with our Text Similarity API, it enhances text analysis across various applications. Whether powering intelligent search engines, refining content recommendations, or enabling precise text comparisons, this API offers unparalleled accuracy and efficiency. Developers can leverage its capabilities to unlock insights from textual data, drive personalized user experiences, and streamline information retrieval processes. With its robust feature set and versatility, the Text to Vector API is a cornerstone for applications demanding sophisticated text processing and analysis

 

 What this API receives and what your API provides (input/output)?

Returns a 768-dimensional vector as an array that encodes the meaning of any given input text.

 

What are the most common uses cases of this API?

 

  • Semantic Search Engines: Implement the Text to Vector API to power semantic search engines capable of understanding the context and meaning of user queries. By encoding text into vectors, the API facilitates more accurate and relevant search results, enhancing user satisfaction and engagement.

  • Document Clustering and Classification: Utilize the API to cluster and classify large collections of documents based on their semantic similarities. By converting text into vectors, the API enables efficient organization and categorization of documents, streamlining information retrieval and analysis processes.

  • Content Recommendation Systems: Enhance content recommendation systems by leveraging the Text to Vector API to understand the semantic relationships between different pieces of content. By encoding text into vectors, the API enables the identification of relevant content for users based on their preferences and interests.

  • Sentiment Analysis and Opinion Mining: Employ the API to perform sentiment analysis and opinion mining tasks on textual data. By transforming text into vectors, the API facilitates the analysis of sentiment and emotion expressed in user reviews, social media posts, and other forms of textual content.

  • Personalized Product Recommendations: Integrate the API into e-commerce platforms to deliver personalized product recommendations to users. By encoding product descriptions and user preferences into vectors, the API enables the generation of tailored recommendations that match the semantic similarities between products and user preferences.

 

 

 

Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation.

API Documentation

Endpoints


Returns a 768-dimensional vector as an array that encodes the meaning of any given input text.

 


                                                                            
POST https://zylalabs.com/api/4247/text+to+vector+api/5178/generate
                                                                            
                                                                        

Generate - Endpoint Features

Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"embeddings": [0.022502584382891655, -0.07829175889492035, -0.023030739277601242, -0.0051000090315938, -0.08034040033817291, 0.03913218155503273, 0.011342836543917656, 0.0034648010041564703, -0.029457414522767067, -0.018893009051680565, 0.09474341571331024, 0.029274793341755867, 0.03948595002293587, -0.04631657898426056, 0.02542460709810257, -0.03219998627901077, 0.062192872166633606, 0.015559187158942223, -0.04677954688668251, 0.05039012059569359, 0.01461136806756258, 0.023141343146562576, 0.012206641025841236, 0.025069614872336388, 0.002936502918601036, -0.041982151567935944, -0.004010356497019529, -0.022784406319260597, -0.0076859560795128345, -0.03310907632112503, 0.03221183270215988, -0.02099923975765705, 0.011673103086650372, -0.09850738942623138, 1.7793261122278636e-06, -0.022993190214037895, -0.0131140798330307, -0.028022274374961853, -0.06999702751636505, 0.02593141607940197, -0.028950177133083344, 0.08763360232114792, -0.012091899290680885, 0.03986050561070442, -0.03313817083835602, 0.03591080382466316, 0.034609925001859665, 0.06497839093208313, -0.030081775039434433, 0.06981883943080902, -0.003995161037892103, -0.001015992253087461, -0.03501847758889198, -0.04365672916173935, 0.050802573561668396, 0.04687576740980148, 0.05396635830402374, -0.04030090197920799, 0.0032014083117246628, 0.013661866076290607, 0.03821883723139763, -0.003238445147871971, -0.0007845857180655003, -0.01711883209645748, 0.006904410198330879, -0.010923718102276325, 0.00863308273255825, -0.018235811963677406, 0.018793178722262383, 0.015499051660299301, 0.010215045884251595, -0.002483787015080452, 0.010315326042473316, 0.06248869001865387, 0.003603207878768444, -0.006266260053962469, -0.02034061774611473, -0.006723427679389715, -0.035477105528116226, 0.03435384854674339, 0.06722819060087204, 0.09068730473518372, 0.013244078494608402, 0.020659221336245537, -0.02786853536963463, 0.0429694764316082, -0.04668600484728813, 0.0150116216391325, -0.06622843444347382, -0.022759350016713142, -0.062499068677425385, -0.025845518335700035, 0.000731295149307698, 0.011465327814221382, 0.05663831904530525, 0.0020624427124857903, -0.04092491418123245, -0.045505113899707794, 0.016695775091648102, -0.08315562456846237, 0.0020906678400933743, -0.008709234185516834, 0.00010764430044218898, 0.033744506537914276, 0.0056034293957054615, -0.016698049381375313, 0.044791001826524734, 0.0063180578872561455, -0.06459043174982071, 0.052910320460796356, 0.01930190622806549, -0.006201551295816898, -0.11876000463962555, 0.0355963408946991, -0.022886380553245544, -0.015187290497124195, -0.0059265936724841595, -0.0001571462635183707, 0.010706988163292408, 0.0038608312606811523, -0.06870150566101074, -0.016975291073322296, -0.027972958981990814, 0.028048157691955566, 0.024779368191957474, 0.012027915567159653, -0.06863930076360703, 0.04927651584148407, 0.018757643178105354, -0.024234363809227943, -0.02052910067141056, -0.010793384164571762, 0.024649329483509064, -0.03333233669400215, -0.03283984959125519, 0.02919778600335121, 0.04920333996415138, -0.007133624982088804, -0.016338994726538658, 0.0017858651699498296, 0.02180694043636322, -0.08902313560247421, -0.03370516002178192, 0.005772259086370468, -0.04565652832388878, 0.03398904949426651, 0.03527846559882164, -0.0312628448009491, 0.00810833740979433, 0.02686147950589657, -0.0022389995865523815, 0.028126735240221024, -0.01753837615251541, -0.014458956196904182, -0.033348120748996735, -0.016295524314045906, 0.09700381010770798, -0.008110702969133854, -0.02466694265604019, -0.058745674788951874, 0.0008749003172852099, 0.016723545268177986, 0.009153857827186584, -0.0011798877967521548, -0.0029302160255610943, 0.004224610980600119, -0.021652908995747566, 0.04293052479624748, -0.05860952287912369, 0.0313417911529541, -0.0012951440876349807, -0.011129804886877537, -0.02820192277431488, 0.0877324566245079, 0.020688137039542198, 0.014139873906970024, 0.013823005370795727, -0.01941837929189205, -0.09010353684425354, -0.0038147594314068556, -0.0029114943463355303, 0.03097536228597164, -0.011876962147653103, 0.018828971311450005, -0.0459066778421402, 0.04982098564505577, -0.008391810581088066, -0.04297132045030594, -0.03235987201333046, -0.03838014602661133, -0.029974840581417084, 0.03698815405368805, -0.004445925354957581, -0.01947844959795475, -0.027152758091688156, 0.024324601516127586, 0.0009164100629277527, 0.05850048363208771, 0.019271427765488625, -0.025729123502969742, 0.040867775678634644, 0.004368599504232407, 0.05135202035307884, 0.015708114951848984, -0.024632973596453667, -0.009796042926609516, 0.002061194274574518, -0.04666443541646004, 0.031958505511283875, -0.03734268248081207, 0.09351524710655212, 0.018542103469371796, -0.02602153643965721, 0.008057662285864353, -6.387007306329906e-05, -0.00474147591739893, 0.02173624373972416, -0.040362365543842316, -0.03972342982888222, 0.06605050712823868, -0.032018546015024185, -0.015235623344779015, -0.015309504233300686, 0.0055815246887505054, 0.03967845067381859, -0.05988806113600731, -0.02949107252061367, -0.015347952954471111, -0.03329818323254585, -0.013585635460913181, -0.02236953191459179, 0.0018112803809344769, -0.0002535232633817941, 0.007309270091354847, -0.04963283985853195, 0.037463344633579254, -0.04424870014190674, -0.08778814226388931, -0.019552558660507202, -0.07446201145648956, -0.005283639300614595, -0.008599535562098026, 0.01656584069132805, 0.019917964935302734, -0.00994193833321333, -0.00285216118209064, 0.07214537262916565, -0.01990295574069023, 0.02951403707265854, -0.059720151126384735, 0.0500880591571331, -0.025491174310445786, 0.023391684517264366, -0.007126794196665287, 0.007386762648820877, -0.07179390639066696, 0.0009150873520411551, 0.02198733761906624, 0.004159102216362953, 0.017954381182789803, 0.06322137266397476, -0.0024793711490929127, -0.005265782121568918, 0.02349715307354927, -0.02619553543627262, -0.03712289035320282, 0.021567795425653458, -0.058535538613796234, -0.017957786098122597, -0.012000484392046928, 0.0008964621811173856, -0.014768925495445728, 0.04969446733593941, 0.006979559548199177, 0.02643679454922676, 0.046177417039871216, 0.032043423503637314, -0.03660064935684204, -0.0050842552445828915, 0.0688665509223938, 0.05680043622851372, -0.014677781611680984, -0.04784739762544632, 0.012187196873128414, -0.025042042136192322, 0.03124428726732731, -0.017944026738405228, -0.030582627281546593, 0.001717127626761794, 0.07021261751651764, 0.05673833191394806, -0.01793675683438778, 0.024400077760219574, -0.028652558103203773, -0.011586768552660942, -0.02704085037112236, 0.039513107389211655, 0.042995698750019073, 0.029097286984324455, 0.02808394283056259, -0.04627488553524017, -0.004282901529222727, 0.011990219354629517, -0.012022530660033226, -0.009469372220337391, 0.023506544530391693, -0.030062736943364143, -0.0169608686119318, -0.0015973638510331511, -0.013061029836535454, 0.05358842387795448, 0.02537827007472515, 0.026025012135505676, 0.06274133920669556, -0.022646378725767136, 0.006586718373000622, -0.03487791121006012, -0.008889899589121342, -0.03322669118642807, -0.018160000443458557, -0.006454478017985821, 0.010202087461948395, -0.012516405433416367, 0.042016319930553436, 0.011215202510356903, -0.021334517747163773, 0.010562121868133545, 0.019982047379016876, 0.018380336463451385, 0.003296906128525734, -0.008704381063580513, 0.01907626911997795, -0.044101353734731674, 0.09577155858278275, 0.02736155316233635, 0.01765339821577072, -0.02204172872006893, 0.03706309199333191, -0.0006526523502543569, -0.014451135881245136, 0.010979065671563148, -0.008404902182519436, -0.00326203228905797, -0.022072020918130875, -0.01903471164405346, -0.016055796295404434, -0.04081476479768753, 0.011160886846482754, -0.06024225801229477, -0.06966809928417206, -0.017330387607216835, 0.028793510049581528, -0.06796228885650635, -0.03137589246034622, -0.055135659873485565, -0.02035827748477459, 0.02890130504965782, 0.013779422268271446, 0.006805076263844967, -0.0024321561213582754, 0.07215306907892227, -0.0011746273376047611, -0.035721518099308014, 0.03547871857881546, -0.0019637125078588724, -0.007766361813992262, 0.030193906277418137, 0.018542280420660973, -0.05399944260716438, 0.033243026584386826, 0.005730288103222847, 0.013399339281022549, 0.004516166634857655, 0.04889204353094101, -0.03143474459648132, 0.03621687367558479, 0.03654488921165466, -0.04792097210884094, -0.01448764931410551, 0.04931260272860527, 0.028697902336716652, -0.0551462396979332, 0.02747434750199318, 0.012780463322997093, -0.07046318799257278, 0.007690646219998598, -0.005246848799288273, -0.05339225009083748, -0.01708088256418705, 0.04776766896247864, 0.023806465789675713, -0.04097969830036163, -0.012740685604512691, 0.04663427919149399, 0.0050347973592579365, 0.006605570204555988, 0.029057161882519722, 0.041597411036491394, -0.0382126122713089, -0.011438881047070026, 0.017164034768939018, 0.005708710290491581, 0.010728604160249233, -0.018059352412819862, -0.05063796043395996, 0.045492447912693024, 0.014073798432946205, 0.04255836829543114, -0.032235123217105865, 0.04176722466945648, 0.011498680338263512, 0.003923969343304634, 0.0204459335654974, 0.015254535712301731, 0.03804020583629608, 0.025458117946982384, -0.004692708142101765, 0.018321523442864418, 0.02760154753923416, -0.028915656730532646, -0.049898166209459305, -0.016193997114896774, 0.0987023264169693, -0.042636141180992126, -0.01884782314300537, -0.010701232589781284, -0.032141461968421936, 0.04153214395046234, -0.023870021104812622, 0.008399300277233124, -0.001009016647003591, -0.031134014949202538, -0.038649026304483414, -0.030674301087856293, -0.03889007493853569, -0.036561716347932816, 0.0032941936515271664, 0.020093847066164017, 0.023073220625519753, -0.04774652421474457, 0.008559761568903923, 0.02219409868121147, 0.14923103153705597, -0.019177203997969627, 0.014347637072205544, 0.04399494081735611, -0.0022775910329073668, 0.001381106791086495, 0.032316043972969055, 0.0657534971833229, 0.02269971929490566...
                                                                                                                                                                                                                    
                                                                                                    

Generate - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/4247/text+to+vector+api/5178/generate' --header 'Authorization: Bearer YOUR_API_KEY' 
--data-raw '{ "text": "This is an example sentence." }'

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Text to Vector API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

The Text to Vector API is designed to encode textual data into numerical vectors using advanced Natural Language Processing (NLP) techniques, enabling applications to analyze and understand the semantic relationships between texts.

The API utilizes state-of-the-art NLP machine learning models to convert input text into high-dimensional numerical vectors. These vectors represent the semantic meaning and context of the text, allowing for efficient processing and analysis.

The API employs a variety of NLP models, including Word Embedding models like Word2Vec, GloVe, and FastText, as well as Transformer-based models like BERT, RoBERTa, and GPT, depending on the specific use case and requirements.

Key features include text embedding capabilities, semantic similarity computation, support for text classification and clustering, and compatibility with downstream NLP tasks such as sentiment analysis and named entity recognition.

The API leverages pre-trained NLP models trained on large datasets to capture semantic relationships between words and phrases accurately. Additionally, it may employ techniques like fine-tuning on domain-specific data to enhance performance for specific tasks.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
710ms

Category:

NLP

Related APIs