POST
/
models
/
v2
/
allenai
/
specter2_base
curl --request POST \
  --url https://api.bytez.com/models/v2/allenai/specter2_base \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "The Eiffel Tower is the tallest structure in Paris."
}'
{
  "output": [
    0.1,
    0.2,
    0.3,
    0.4
  ]
}

Authorizations

Authorization
string
header
required

Provide your API key as Key your-key-here in the Authorization header.

Body

application/json
text
string
required

Input text to extract features.

Example:

"The Eiffel Tower is the tallest structure in Paris."

Response

200 - application/json
Successful response with extracted features.
output
any[]

Extracted feature vectors.