https://github.com/hitthecodelabs/llms_apis
A collection of Python scripts for interfacing with various Large Language Models (LLMs) and their APIs
https://github.com/hitthecodelabs/llms_apis
api claude deepseek gemini gemini-api huggingface llama llm openai
Last synced: about 1 month ago
JSON representation
A collection of Python scripts for interfacing with various Large Language Models (LLMs) and their APIs
- Host: GitHub
- URL: https://github.com/hitthecodelabs/llms_apis
- Owner: hitthecodelabs
- Created: 2025-01-26T01:48:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-24T14:01:33.000Z (over 1 year ago)
- Last Synced: 2025-03-22T07:53:26.177Z (about 1 year ago)
- Topics: api, claude, deepseek, gemini, gemini-api, huggingface, llama, llm, openai
- Language: Jupyter Notebook
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLMs_apis
This repository contains a collection of Python scripts for interfacing with various Large Language Models (LLMs) and their APIs. The scripts are designed to simplify access to these powerful models and provide functionality for text and image-based tasks.
# Table of Contents
- Overview
- Installation
- Usage
- Scripts Overview
- Contributing
- License
# Overview
This repository contains implementations of APIs for popular Large Language Models, including OpenAI's ChatGPT, Claude, Gemini, DeepSeek, LLaMA, and others. It also supports image generation and manipulation APIs for some of these models.
# Installation
Clone the repository:
```bash
git clone https://github.com/hitthecodelabs/LLMs_apis.git
cd LLMs_apis
```
Install dependencies: Make sure you have Python 3.8+ installed. You may need additional packages for specific APIs. Install them as required, e.g.:
```
pip install -r requirements.txt
```
Set up API keys: Ensure you have the necessary API keys for the services you're working with. Refer to the individual scripts for the required key names and environment variables.
# Usage
Run the scripts from the command line or integrate them into your project. Here's an example of running a script:
```
python chatgpt_api.py
```
Update environment variables for API keys or configuration as needed:
```
export API_KEY="your_api_key_here"
```
# Scripts Overview
Here’s a brief description of each script:
- chatgpt_api.py: Interface for OpenAI's ChatGPT API, providing text-based generation and conversation capabilities.
- chatgpt_image_api.py: Connects to OpenAI's image generation API, allowing you to create images from text prompts.
- claude_api.py: Integration with Claude's API for text-based interactions and analysis.
- deepseek_api.py: Provides access to DeepSeek's LLM services, including advanced querying and data analysis.
- gemini_api.py: Implements API calls for Google's Gemini model, focusing on text generation and advanced NLP tasks.
- llama_api.py: Interacts with the LLaMA model, offering high-performance NLP capabilities.
- llama_hf_api.py: A Hugging Face-powered LLaMA implementation for local inference and custom use cases.
- llama_image_api.py: Access image-related functionalities of the LLaMA model.
# Contributing
Contributions are welcome! Feel free to fork the repository, make changes, and submit a pull request. Please ensure your contributions align with the project's scope and maintain code quality.
# License
This project is licensed under the MIT License. See the LICENSE file for details.