Skip to main content

Contributors Forks Stargazers Issues MIT License


Logo

GPT4

GPT4-API
· Report Bug · Request Feature

About The Project

GPT4

Watch the video

The GPT-4 API is an interface for interacting with the powerful GPT-4 language model. It allows you to generate natural language text, perform question-answering tasks, and more. Whether you're building chatbots, content generators, or creative writing tools, GPT-4 has got you covered!

Here's why:

  • Free access to GPT-4.😀
  • Seamless integration into your code.😋
  • Generate text and images effortlessly.😮
  • Explore the GPT-4 API on GitHub.🌟
  • Don't forget to give it a star, fork, and contribute. 😎

(back to top)

Table of Contents

Prerequisites

Make sure you have the following installed-

  • Python: You'll need Python installed on your system.
  • Selenium: We'll be using Selenium for web automation.

Installation

  1. Clone this repository:

    git clone https://github.com/anupammaurya6767/GPT4.git
    
  2. Install dependencies:

    pip install -r requirements.txt
    

    Or

pip install api-gpt4
  1. Set up your GPT-4 credentials (Microsoft account username, password, etc.) in config.ini.

Usage

  1. Initialize the GPT-4 API:

    from api.gpt4 import GPT4
    
    ap = GPT4(config_file='config.ini')
    
  2. Log in to the GPT-4 service:

    ap.login()
    
  3. Ask questions or generate text:

    question = 'What is the meaning of life?'
    ap.ask_question(question)
    response = ap.get_response()
    
  4. Image Generation:

    prompt = 'A man on bike'
    response = ap.design(prompt)
    
  5. Close the API connection when done:

    ap.close()
    

Features

  • Natural Language Generation: Create human-like text.
  • Question-Answering: Get accurate answers to queries.
  • Customizable: Fine-tune GPT-4 for specific tasks.
  • Scalable: Handle large volumes of requests.

Contributing

Contributions are welcome! If you find a bug or have an enhancement idea, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for api-gpt4 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for api-gpt4 1.0.7
File Size Uploaded Provenance
api_gpt4-1.0.7.tar.gz 9.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for api-gpt4 1.0.7
File Interpreter ABI Platform
api_gpt4-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / api_gpt4-1.0.7.tar.gz

Download URL api_gpt4-1.0.7.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
44b1662dc8753bbfd650bbf21f5b4afb8dcc14eaaa65d2171f31a357d4e9c8cf
BLAKE2b-256 checksum
How to use checksums
868e42e4d2a7b029537ee942dc3b09211e37646479ae6c446e37375b7d605863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / api_gpt4-1.0.7-py3-none-any.whl

Download URL api_gpt4-1.0.7-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
262937a5088b84d0dbd99f434b6e6a768ebb2334862e23655eb70bb3a63b33d1
BLAKE2b-256 checksum
How to use checksums
b96a829cd7f7e255ff208afd03aa443686b15d2953833247b560429b5c164ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Security for api-gpt4 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page