Metatext API
Metatext provides a series of APIs capable of simplifying the training and deployment of NLP models. They are efficient and scalable APIs to support any type of work and volume that your use case needs. This documentation presents the settings needed to call the APIs and how to use them. Any questions or feedback you can send to help@metatext.io
You can interact with the API through HTTP requests from any language.
Authentication
The Metatext API uses API keys for authentication. Visit your API Keys page to retrieve the API key you'll use in your requests.
To make a request to any endpoint, you must pass in the x-api-key header and the request must be made thought a POST method. Data are sent through JSON content type.
The request header should be in the shape of the example bellow:
# Create a Metatext account to get your model_id and api_key
# https://app.metatext.ai
import requests
api_key = "YOUR_API_KEY"
headers = { "content-type": "application/json", "x-api-key": api_key }
response = requests.post(url=url, json=payload, headers=headers)
Parameter | Value |
---|---|
x-api-key string | Your API Key (alphanumeric format up to 63 characters) |
content-type string | application/json |
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.