





API:Generative AI
API Endpoint Path
required
AI Blog Content Generator API
https://www.buyfromlo.com/api/3/blogchain
Call Method
Required
POST
Type of Data Return
JSON
JSON output structured data for AI blog content
Token
required
BUYFROMLO API token. Subscription API is available on www.buyfromlo.com/apis, and accessible to on-site APP on www.buyfromlo.com/app as well
originalContent
required
Input the main theme or topic regarding this blog content
topic_name
required
Set who is writing this blog article, such as Lawyer, Marketer, Engineer, etc
role
required
Enter an expected tone of this article, such as positive, suspicious, etc
language
Optional
input the outcome content language. Current available language has en, ja, sc, fr, ru
llmModel
Optional
For free api trial users only, input a LLM model. Current avalable model has openai, hugging face version llama
apikey
Optional
For free api trial users only, input a LLM api key. Current available model has openai, hugging face api key
AI Blog Content Generator API
https://www.buyfromlo.com/api/3/blogchain
Python Code Sample
import requests
apiendpoint = "https://www.buyfromlo.com/api/3/blogchain"
## Required Arguments & Parameters ##
originalContent = "raw content materials or context for reference"
topic_name = "topic idea"
role = "who writes this content"
tableofcontentquantity = "how many subtitles are included. Max. is 8 subtitles"
## Optional Arguments & Parameters ##
language = "Input a language. Default is en"
## Optional and For free trial users only ##
llmModel = "Input openAI or hugging face llama. Paid users unnecessarily input this value."
apikey = "Input openai api key or hugging face api key. Paid users unnecessarily input this value."
## Call the api ##
response = requests.post(apiendpoint + "?token=" + token, json={"originalContent":"", "topic_name":"", "role": "", "tableofcontentquantity": "", "language":language, "llmModel": llmModel, "apikey":apikey})
print(response.status)
print(response.json())
JSON Response Sample
{
"Totaltokenused":"",
"Title":"",
"excerpt":"",
"table of contents": [],
"content body": []
}