API:Generative AI
API Endpoint Path
required
AI Customer Review Generator
api/3/customer-review-generator
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on AI customer review
token
required
BUYFROMLO API token. Paid subscription API is available: /api/3/customer-review-generator, and accessible to on-site APP on /app/3/customer-review-generator as well
object_name
required
Enter a product name or company name
role
required
Input a role who leave the customer review, such as a housewife who bought a coffee kettle and so on
type
required
2 types of review writing: rewrite, create
quantity
required
Enter total number of customer reviews. Default value is 1, and max. value is 10
language
required
Submit the context content to increase the writing accuracy and content quality
context_materials
required
FALSE
apikey
Optional
For free trial users, please submit OpenAI api key necessarily
rewrite_materials
Optional
Upload a raw existing customer review content to rewrite based on your requirements
llmversion
Optional
Current avalable model are OpenAI GPT, Palm, Gemini, Llama & Claude
AI Customer Review Generator
api/3/customer-review-generator
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/3/customer-review-generator"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
object_name = ""
role = ""
type = ""
quantity = ""
## Optional ##
apikey = ""
context_materials = ""
llmversion = ""
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(
apiendpoint,
json={
"object_name":object_name,
"role":role,
"type":type,
"quantity": quantity,
"apikey": apikey,
"context_materials": context_materials,
"llmversion": llmversion
}, headers=headers
)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"content response",
"token used"
}
The AI Customer Review Generator API is a tool that helps you generate customer reviews for your products or services. It uses artificial intelligence to create realistic and informative reviews that can help you improve your product listings and boost sales.
The benefits of using the AI Customer Review Generator API include:
The AI Customer Review Generator API currently supports English, Japanese, Simplified Chinese, and Traditional Chinese.
The API returns JSON data that includes the generated customer review, the product name, and the product rating.
The API is offered on a subscription basis.
The API has a rate limit of 100,000 tokens per month. This equates to approximately 73,000 English words per month.
Yes, the API can be used with a variety of programming languages, including Python, Ruby, PHP, Node.js, Java, .NET, Rust, Go, and TypeScript.
Yes, we offer support for the API via email and our online documentation.
The terms of service for the API can be found on our website.
To get started with the API, you will need to create an account and obtain an API key. You can then use the API key to make calls to the API.