Run with API
See our complete quickstart for how to get started with our API in minutes.
from clarifai.client.model import Model
prompt = "What's the future of AI?"
model_url="https://clarifai.com/clarifai/main/models/CLIP-ViT-L-14-DataComp-XL-s13B-b90K"
model_prediction = Model(url=model_url, pat="YOUR_PAT_HERE").predict_by_bytes(prompt.encode())
print(model_prediction.outputs[0].data.text.raw)