Quick Start
Our API is straightforward and easy to use. All you need to start is our main API endpoint, Bearer Token, and your input data.
Good to know: Most Authorization tokens are limited in scope and depend on the level of access. API with limited scope tokens can generate only a limited number of content with limited throughput. For details about your level of access and your token please reach out at [email protected]
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can get your API key by emailing us at [email protected]
You only need one endpoint to generate content for different use cases. The only thing that changes is the request body. For details on what request body to use for different content, check out our Tools section for different use cases. Below is an example of generating product descriptions.
post
https://api.semantir.com/v1/client-generate
Content Generation
Take a look at how you might call our API in Python to generate engaging questions to include inside your landing page.
Python
curl
import requests
url = "https://api.semantir.com/v1/client-generate"
token = 'YOUR_TOKEN'
payload = {
"inputs": {
"var_topic": "Bonaqua",
"var_audience": "people that love to drink water",
"var_tone": "humorous"
},
"tool_category": "engaging_questions"
}
headers = {'Authorization': f'Bearer {token}'}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
curl -X POST "https://api.semantir.com/v1/client-generate" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"inputs\":
{
\"var_topic\":\"Bonaqua\",
\"var_audience\":\"people that love to drink water\",
\"var_tone\":\"humorous\"},
\"tool_category\":
\"engaging_questions\"
}"
Continue to our Tools section to learn about other tool categories you can use to generate various content.
Last modified 1yr ago