Image Caption Generator

免费增值
通过 Fantascat | 已更新 לפני יומיים | Artificial Intelligence/Machine Learning
人气

9.3 / 10

延迟

6,996ms

服务等级

98%

Health Check

100%

关注者:13
资源:
产品网站
API 创建者:
Rapid account: Fantascat
Fantascat
fantascatllc
登录并给 API 打分
打分:4.3 - 投票:3

README

Python example:

import requests

url = "https://image-caption-generator2.p.rapidapi.com/v2/captions"
params = {
    "imageUrl": "https://i.pinimg.com/564x/26/c7/35/26c7355fe46f62d84579857c6f8c4ea5.jpg",
    "useEmojis": "true",
    "useHashtags": "true",
    "limit": 3,
}
headers = {
    "X-RapidAPI-Key": "YOUR-API-KEY",
    "X-RapidAPI-Host": "image-caption-generator2.p.rapidapi.com",
}

response = requests.get(url, headers=headers, params=params)
print(response.json())

Output (beautified):

{"captions": [
    "Just another lazy day on the couch, catching up on some much-needed rest 😴🐱 #lazyday #yawning",
    "This kitty knows how to relax in style 😎🛋️ #catlife #couchpotato #yawn",
    "When you realize it's only Monday and you're already exhausted 😩🐾 #mondayblues #catnap #yawningcat"
]}