AI Video Script Generator API

API Endpoint Specifications

  • Endpoint Path: /api/3/video-content-script-generator
  • Type of Data: JSON & 2/minute
  • Data Source: BUYFROMLO
  • Request Limit: 100,000 tokens/month (Approximate 73,000 English words)
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
AI Video Script Generator API Endpoint Basic Info

API Endpoint Path

required

AI Video Production Content Script Generator

api/3/video-script-generator


Call Method

Required

POST

Type of Data Return

JSON

Output structured JSON data on AI video scripts


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Free and paid subscription APIs are available: /api/3/video-script-generator, and accessible to on-site APP on /app/3/video-script-generator as well

content_briefing

required

Submit a brief of the video content

role

required

Role of writhing this video content script

channel

required

channel the video would be used on. Current available options: Youtube, Instagram, Tiktok, Facebook

duration

required

Length of the video content. Min. minute is 1 and Max. minute is 15

type

required

FALSE


context_materials

Optional

Submit a brief context regarding the video content script

llmversion

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 for free trial user account is OpenAI GPT.


AI Video Production Content Script Generator

api/3/video-script-generator


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.buyfromlo.com/api/3/video-script-generator"

## Required Arguments & Parameters ##

token = "your buyfromlo token"
content_briefing = "briefing of the video content script"
role = "a specific type of email sender, such as email marketing specialist, HR, influencer marketing expert, etc"
typ2 = "type of video, such as Youtube video, Youtube short, Tiktok video, etc"
channel = "a specific channel, such as Youtube, Tiktok, Instagram, Facebook"
duration = "length of the video"
llmversion = "For paid users, select a LLM version. Current available options: openai, palm, Gemini, Llama, claude"

## optional arguments and parameters ##
context_materials="the context regarding the email campaign"
apiKey = "For free trial users, plug in the OpenAI api key"

headers={"Authorization": "Bearer " + token}

## Call the api ##
response = requests.post(
    apiendpoint, 
    json={
            "content_briefing":content_briefing, 
            "role": role, 
            "typ2": typ2, 
            "channel": channel, 
            "duration":duration, 
            "llmversion": llmversion, 
            "context_materials":context_materials,
            "apiKey":apiKey
        }, headers=headers
    )
print(response.status_code)
print(response.json())
                        

JSON Response Sample


{
    "video content script response",
    "token spent"
}