CAPTION-STUDIO (PRODUCT)
Upload an image and get an AI-generated caption using BLIP.
Description
## CaptionStudio
A Flask-based image captioning app powered by Salesforce BLIP.
### How it works
- Upload any image via the web UI
- BLIP model generates a natural language caption
- Caption is displayed instantly
### Requirements
- Python 3.8+
- pip install flask transformers torch Pillow
### Run locally
python app.py
Visit: http://127.0.0.1:5000
API Integration Guide
curl -X POST https://python.aimodelplace.com:5000/api/v1/predict \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "model_slug=caption-studio" \
-F "file=@/path/to/your/file"
Successful response format (JSON):
{
"balance_remaining": 630,
"latencyMs": 69,
"predictions": [
{
"confidence": 0.9464548230171204,
"label": "Sample Label"
}
],
"recognized_object": "Sample Label",
"success": true,
"tokens_consumed": 10
}
For more detailed parameters and SDK examples, visit our Full API Documentation.
Post Your Comments
Login to comment