🚀 Text to Video API Endpoint Overview 🚀
🎥 Generate Videos from Text Descriptions!
Endpoint:
Make a POST request to:
https://api.abhibhai.com/api/v6/video/text2video
📝 Request Body Attributes:
- key: Your API key for authorization.
- model_id: Choose from models like zeroscope, dark-sushi-mix-vid, etc.
- prompt: Text description for the video.
- negative_prompt: Items to exclude from the video.
- seed: For reproducibility; use null for random.
- height & width: Maximum 512 pixels.
- num_frames: Max 25 frames (default: 16).
- num_inference_steps: Max 50 steps (default: 20).
- guidance_scale: Range from 0 to 8.
- output_type: Choose mp4 or gif.
📡 Python Request Example:
import requests
import json
url = "https://api.abhibhai.com/api/v6/video/text2video"
payload = json.dumps({
"api_key": "",
"model_id": "zeroscope",
"prompt": "A flying car",
"negative_prompt": "low quality",
"height": 512,
"width": 512,
"num_frames": 16,
"num_inference_steps": 20,
"guidance_scale": 7,
"output_type": "gif"
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
🔗 Get started and create your own videos today!
🎥 Generate Videos from Text Descriptions!
Endpoint:
Make a POST request to:
https://api.abhibhai.com/api/v6/video/text2video
📝 Request Body Attributes:
- key: Your API key for authorization.
- model_id: Choose from models like zeroscope, dark-sushi-mix-vid, etc.
- prompt: Text description for the video.
- negative_prompt: Items to exclude from the video.
- seed: For reproducibility; use null for random.
- height & width: Maximum 512 pixels.
- num_frames: Max 25 frames (default: 16).
- num_inference_steps: Max 50 steps (default: 20).
- guidance_scale: Range from 0 to 8.
- output_type: Choose mp4 or gif.
📡 Python Request Example:
import requests
import json
url = "https://api.abhibhai.com/api/v6/video/text2video"
payload = json.dumps({
"api_key": "",
"model_id": "zeroscope",
"prompt": "A flying car",
"negative_prompt": "low quality",
"height": 512,
"width": 512,
"num_frames": 16,
"num_inference_steps": 20,
"guidance_scale": 7,
"output_type": "gif"
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
🔗 Get started and create your own videos today!
🔑 Get your API from @abhibotsbot!© Copyright And API Credit: Abhiraj