π¦ ClawHub
Phosor AI
by @jasonstarlight
Generate AI videos (text-to-video, image-to-video) with optional custom LoRA styles via the Phosor AI platform. Supports importing images and LoRA models fro...
π‘ Examples
Text-to-Video
# Submit T2V job (480p, 81 frames, 16fps)
python3 scripts/phosor_client.py submit "A cat walking on a beach at sunset" \
--width 854 --height 480 --num-frames 81 --fps 16Check status
python3 scripts/phosor_client.py status Get result (video URL)
python3 scripts/phosor_client.py result
Image-to-Video
Two-step flow: upload image first, then submit with the returned S3 key.
# Step 1: Upload image
python3 scripts/phosor_client.py upload-image /path/to/photo.jpg
Returns: {"file_id": "img-xxx", "s3_key": "images/img-xxx.jpg", ...}
Step 2: Submit I2V job using the s3_key as image_url
python3 scripts/phosor_client.py submit "The person in the photo starts dancing" \
--image-url "images/img-xxx.jpg" --width 854 --height 480
With Custom LoRA
Upload your own LoRA model, then use it in video generation.
# Upload LoRA (two .safetensors: high_noise + low_noise)
python3 scripts/phosor_client.py upload-lora high_noise.safetensors low_noise.safetensors --name "My Style"Check upload status
python3 scripts/phosor_client.py lora-status Use in inference
python3 scripts/phosor_client.py submit "A person walking" --lora-id --lora-scale 1.0Or import LoRA from URLs
python3 scripts/phosor_client.py import-lora \
"https://example.com/high_noise.safetensors" \
"https://example.com/low_noise.safetensors" \
--name "My Style"
βοΈ Configuration
1. Sign up or log in at phosor.ai 2. Go to Settings β API Keys to generate your API key 3. Set it as an environment variable:
export PHOSOR_API_KEY="your-api-key-here"
> Keep your API key secret. Do not commit it to version control or share it publicly. All API calls are authenticated and billed through this key.
The CLI script is at scripts/phosor_client.py. All commands output JSON to stdout.
Local files used by the CLI:
phosor-pending.json to track pending job states locallyTERMINAL
clawhub install phosor-ai