API:Components
API Endpoint Path
required
AI Prompt Generator
api/1/ai-prompt-generator
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on AI prompt templates
token
required
BUYFROMLO API token. Free and paid subscription APIs are available: /api/3/ai-prompt-generator, and accessible to on-site APP on /app/3/ai-prompt-generator as well
originalBrief
required
Input a image type and several core keywords which are up to 20 and up to 500 English characters. Here are the image type options: Portrait, Interior Design, City View, Animal Photo, Drink Photo, Comicbook, Pixel, Pixar, Food Photo, Anime Character, Nature, Flat, Sticker, Logo, Product Photo, Icon, Fashion, Gradient, Dragon, Vehicle, Character, Character with text, Cartoon with text, Event, Plant Photo, Toy Photo, Cartoon Character, Cyberpunk photoshoot, Drawing, Travel, eCommerce, futuristic, Cinematic art, Cultural art, Urban Architecture
keywords
Optional
Input "no" if you don't have any specific keywords. Or Add some specific keyword that is taken account
negativeprompt
Optional
Input "no" if you don't have any negative prompts. Or Add the negative prompt to enrich the image effect and shape a better dimension if it's applicable
AI Prompt Generator
api/1/ai-prompt-generator
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/1/ai-prompt-generator"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
originalBrief = ""
keywords = ""
## optional arguments and parameters ##
negativeprompt=""
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(
apiendpoint,
json={
"originalBrief": originalBrief,
"keywords": keywords,
"negativeprompt": negativeprompt,
}, headers= headers
)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"Image Prompt": "",
"Text Prompt": ""
}
This AI Prompt Generator API streamlines your content creation by automatically generating high-quality prompts for both text and image generation, saving you time and effort while boosting your creative output.
The API supports a wide range of popular AI image generators, including DALL-E 3, Midjourney, Meta AI, Stability AI, Leonardo AI, and Google Gemini.
Absolutely! This API caters to both your text and visual content needs. It can generate prompts for captivating marketing copy, as well as stunning images, all tailored to your specific requirements.
The API offers extensive integration options, supporting popular languages like cURL, JavaScript, Python, Ruby, PHP, Node.js, Java, .NET, Rust, Go, and Typescript.
Yes, the API offers both free and paid subscription tiers. You can make up to 500 requests per month on the free plan. Paid plans likely offer higher limits and additional features.
The API returns data in a structured JSON format, making it extremely easy to parse and integrate into your applications and workflows.
You can find comprehensive information regarding the API's usage terms and conditions, including obligations and liabilities, in the Legal Terms of Service & Conditions document.
The AI Prompt Generator API has a rate limit of 2 requests per minute to ensure responsible usage and prevent service abuse.
Yes, the API is incredibly versatile! It empowers you to generate prompts for a wide array of tasks, spanning marketing materials, emails, social media content, and more.
While the prompt doesn't explicitly mention documentation, it's highly likely that BuyfromLo provides detailed documentation and code examples on their website to facilitate easy and rapid integration of the API.