CLIP-as-service
Announcing CLIP-as-service: Free tier
Restructuring CLIP-as-service and the release of our free tier
For some time, Jina AI has hosted a free instance of CLIP-as-service — a production ready, scalable and robust CLIP implementation that can generate text and image embeddings, provide image captions and do many visual reasoning tasks. So far that server was accessible directly via cURL or gRPC.
In the next step, we are moving to turning CLIP-as-service into a real service, with uptime and reliability guarantees as well as advanced features, such as model selection and usage analytics. The first step will be our free tier, which will secure our API endpoint using authentication tokens.
What does it mean for me?
If you’ve been accessing our free CLIP-as-service server, that will keep working as usual until 15 September 2022. If you’d like to continue using CLIP-as-service for free, keep reading.
How can I continue using CLIP-as-service for free?
- Install CLIP-client 0.6.1 or higher:
pip install clip_client>=0.6.1
2. Create a Jina AI account on the CLIP-as-service website:
3. Generate an API key and adapt your code to follow the snippet on that page:
Can I still run my own CLIP-as-service server?
You sure can! CLIP-as-service remains open-source — we’re just providing a hosted version that handles all the overhead of deployment and upkeep.
How can I query via cURL?
Here’s some sample code. Just change token_string
to your token.
curl \
-X POST https://api.clip.jina.ai:8443/post \
-H 'Content-Type: application/json' \
-H 'Authorization: token_string' \
-d '{"data":[{"text": "First do it"},
{"text": "then do it right"},
{"text": "then do it better"},
{"uri": "https://picsum.photos/200"}],
"execEndpoint":"/"}'
Sign up for CLIP-as-service now
Head over to our new CLIP-as-service website, sign up, and start generating those embeddings!