Skip to content

Basic python code to interact with Antrhropic (Claude) AI API. Code for testing only, you need a (free) API Key

License

Notifications You must be signed in to change notification settings

georgevio/anthropic-API-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

anthropic-API-python

https://www.anthropic.com/claude

Basic python code to interact with Antrhropic (Claude) AI API. Code for testing only, you need a (free) API Key.

Author: George Violettas

Date: 11/03/2024

This code does connect via API to the anthropic AI library (named Claude) at https://www.anthropic.com/ . The engine currently (2024) provides only such connection (testing purposes) and DOES NOT provide web access. The current code is simplistic (gets the job done) with two text windows, the top for writing the question, and the bottom to fetch the results. You can also try to upload an image or a document (not tested).

IMPORTANT: YOU NEED AN API KEY (FREE Currently)! Code will not work without it. Instructions on how to get it, here https://www.anthropic.com/api

********* LINUX INSTALLATION NOTES ***************** pip install anthropic apt-get install python3-tk apt-get install python3-pil python3-pil.imagetk in ubutnu 20 this is needed pip install Pillow

Code also works in Windows (tested)

About

Basic python code to interact with Antrhropic (Claude) AI API. Code for testing only, you need a (free) API Key

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages