Skip to main content

Quick Start

3 Steps to Call Embedding API

Step 1: Get API Credentials

Contact admin to get client_id and client_secret.

Step 2: Get Token

curl -X POST https://api.hubnode.uk/oauth2/token -H 'Content-Type: application/json' -d 'client_id=YOUR_ID&client_secret=YOUR_SECRET&grant_type=client_credentials'

Step 3: Call API

curl -X POST https://api.hubnode.uk/embed -H 'Authorization: Bearer TOKEN' -H 'Content-Type: application/json' -d 'texts=hello+world'

Response Example

Returns 512-dimension vectors:

FieldDescription
embeddingsVector representation of text
modelModel name
tokens_usedTokens consumed

Next Steps

  • View full API Reference
  • Learn about authentication
  • Explore example projects in Lab