image to text
blip-image-captioning-large
by Salesforce
pipeline_tag: image-to-text
563,474 downloads1,500 likes
Get API KeyAPI Usage
Endpoint
POST https://api.gpu.fm/v1/inferenceRequest
curl -X POST https://api.gpu.fm/v1/inference \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Salesforce/blip-image-captioning-large",
"inputs": "Your input here",
"parameters": {
"max_new_tokens": 256
}
}'Response
{
"result": "Model output",
"usage": {
"inputTokens": 12,
"outputTokens": 128
},
"pricing": {
"total": "0.000018"
}
}Python SDK
import requests
response = requests.post(
"https://api.gpu.fm/v1/inference",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "Salesforce/blip-image-captioning-large",
"inputs": "Your input here",
"parameters": {"max_new_tokens": 256}
}
)
result = response.json()
print(result["result"])Model Documentation
Full documentation available on HuggingFace →
Pricing
Per Request$0.0007/request
Billed from your prepaid credits. No minimum commitment.
Details
- Model ID
- Salesforce/blip-image-captioning-large
- Library
- transformers
- Pipeline
- image to text
- Updated
- 2/3/2025
Tags
transformerspytorchtfsafetensorsblipimage-text-to-textimage-captioningimage-to-textarxiv:2201.12086license:bsd-3-clause