clarifai-client-go is an unofficial Go client for Clarifai, an amazing, powerful AI image and video recognition service.
- Token refresh on expiry
- Pagination support
- Get predictions
- With a specific model
- Add an image input from URL
- Add an image input from a local file
- Add image with concepts
- Add image with custom metadata
- Add image with crop
- Get a list of all inputs
- Get input by ID
- Get input status
- Get status of all inputs
- Input update adding concepts
- Input update deleting concepts
- Delete single input by ID
- Delete multiple inputs
- Delete all inputs
- Create a model
- Get all models
- Get a model by id
- Get model output info
- Get all model versions
- Get model version by version ID
- Get all model inputs
- Get model inputs used to train a specific version
- Delete model
- Delete model version
- Delete all models
- Model training
- Add model concepts
- Delete model concepts
- Model search by name and/or type
- Add images to a search index
- Search by predicted concepts
- Search by user supplied concept
- Reverse image search
- Search by custom metadata
- Mixed search by concepts and predictions
go get -u github.com/mpmlj/clarifai-client-go
Check directory /examples
for fully-functional examples.
Please note that you need to set the following env variable first:
- CLARIFAI_API_KEY
Or these two if you want to use deprecated auth by Client ID & Secret:
- CLARIFAI_API_ID
- CLARIFAI_API_SECRET
- Improve test coverage
- Go versions: 1.6, 1.7
- Clarifai API: 2.0