API:Generative AI
API Endpoint Path
required
AI Blog Content Generator API
api/3/blogchain
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on AI blog content
token
required
BUYFROMLO API token. Free and paid subscription API are available: /api/3/blogchain, and accessible to on-site APP on /app/3/blogchain as well
originalContent
required
Raw content materials or context for blog generation
topic_name
required
Input the main theme or topic regarding this blog content
role
required
Set who is writing this blog article, such as Lawyer, Marketer, Engineer, etc
tableofcontentquantity
required
Enter a core keyword related to this blog content
coreKeywords
required
FALSE
language
Optional
Input the content language. Current available language has en, ja, sc, fr, ru
llmModel
Optional
Current avalable model are OpenAI GPT, Palm, Gemini, Llama & Claude
apikey
Optional
Free trial API is required to input a LLM api key. Current available model is OpenAI GPT.
potentialkWss
Optional
Submit a list of target keywords. Max. length of the list is 10 keywords
AI Blog Content Generator API
api/3/blogchain
Python Code Sample
import requests
apiendpoint = "https://api.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 Gemini, Llama. Paid users unnecessarily input this value."
apikey = "Input openai api key or hugging face api key. Paid users unnecessarily input this value."
data={"originalContent":"", "topic_name":"", "role": "", "tableofcontentquantity": "", "language":language, "llmModel": llmModel, "apikey":apikey}
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(apiendpoint, json=data, headers=headers)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"Totaltokenused":" " (integer),
"Title":" " (string),
"excerpt":" " (string),
"table of contents": [] (array),
"content body": [] (array),
}
The AI Blog Chain API is a tool that can generate full pieces of articles, including topic ideas, openings, tables of content, each body section, and images.
The AI Blog Chain API can save you time and effort by automatically generating high-quality content.
You can generate blog posts, articles, website content, social media posts, and more.
The AI Blog Chain API supports English, Japanese, Simplified Chinese, and Traditional Chinese.
You can sign up for a free API key on the BUYFROMLO website.
The AI Blog Chain API offers both free and paid subscription plans.
The free plan has a usage limit of 100,000 tokens per month. The paid plans offer higher usage limits and additional features.
You can integrate the API using the code snippets provided on the BUYFROMLO website.
Yes, the API uses industry-standard security measures to protect your data.
You can get support by contacting the BUYFROMLO team through the website or email.