gpti


Namegpti JSON
Version 2.0 PyPI version JSON
download
home_pagehttps://github.com/yandricr/gpti-py/
SummaryThis package simplifies your interaction with various GPT models, removing the need for tokens or other methods to access GPT
upload_time2024-04-27 17:59:56
maintainerNone
docs_urlNone
authoryandricr
requires_pythonNone
licenseMIT
keywords gpt gpt-3 gpt-3.5 gpt-4 gpti gpt-free ai generate-image prodia bing chat stream dalle dalle-2 llama-2 stable-diffusion pixart emi render3d pixel-art playground animagine-xl
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# GPTI

![Downloads](https://img.shields.io/pypi/dw/gpti?style=for-the-badge) ![License](https://img.shields.io/pypi/l/gpti?style=for-the-badge) [![Contributors](https://img.shields.io/github/contributors/yandricr/gpti-py?style=for-the-badge)](https://github.com/yandricr/gpti-py/graphs/contributors) [![Size Package](https://img.shields.io/github/languages/code-size/yandricr/gpti-py?style=for-the-badge)](https://github.com/yandricr/gpti-py) ![Python](https://img.shields.io/badge/python-%233776AB.svg?style=for-the-badge&logo=python&logoColor=white) [![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/yandricr)

This package simplifies your interaction with various GPT models, eliminating the need for tokens or other methods to access GPT. It also allows you to use three artificial intelligences to generate images: DALL·E, Prodia and more, all of this without restrictions or limits

## Installation

You can install the package via PIP

```bash
pip install gpti
```

## Available Models

GPTI provides access to a variety of artificial intelligence models to meet various needs. Currently, the available models include:

- [**ChatGPT**](#gpt)
- [**ChatGPT v2**](#gpt-v2)
- [**ChatGPT Web**](#gptweb)
- [**Bing**](#bing)
- [**LLaMA-2**](#llama2)
- [**DALL·E**](#dalle)
- [**DALL-E 2**](#dalle2) (PRO)
- [**DALL-E Mini**](#dalle-mini)
- [**Prodia**](#prodia)
- [**Prodia Stable-Diffusion**](#prodia-stablediffusion)
- [**Prodia Stable-Diffusion XL**](#prodia-stablediffusion-xl) (PRO)
- [**Pixart-A**](#pixart-a) (PRO)
- [**Pixart-LCM**](#pixart-lcm) (PRO)
- [**Stable-Diffusion 1.5**](#stablediffusion-1.5)
- [**Stable-Diffusion 2.1**](#stablediffusion-2.1)
- [**Stable-Diffusion XL**](#stablediffusion-xl) (PRO)
- [**EMI**](#emi)
- [**Render3D**](#render3d) (PRO)
- [**PixelArt**](#pixelart) (PRO)
- [**Animagine-XL**](#animagine-xl) (PRO)
- [**Playground**](#playground) (PRO)

## Api key

If you want to access the premium models, enter your credentials. You can obtain them by [clicking here](https://nexra.aryahcr.cc/api-key/en).

```python
from gpti import nexra

nexra("user-xxxxxxxx", "nx-xxxxxxx-xxxxx-xxxxx");
```

<a id="gpt"></a>
## Usage GPT

```python
import json
from gpti import gpt

res = gpt.v1(messages=[
    {
        "role": "assistant",
        "content": "Hello! How are you today?"
    },
    {
        "role": "user",
        "content": "Hello, my name is Yandri."
    },
    {
        "role": "assistant",
        "content": "Hello, Yandri! How are you today?"
    }
], prompt="Can you repeat my name?", model="GPT-4", markdown=False)

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "model": "gpt-4",
    "gpt": "Of course, Yandri. How can I assist you today?",
    "original": null
}
```

#### Models

Select one of these available models in the API to enhance your experience.

- gpt-4
- gpt-4-0613
- gpt-4-32k
- gpt-4-0314
- gpt-4-32k-0314
- gpt-3.5-turbo
- gpt-3.5-turbo-16k
- gpt-3.5-turbo-0613
- gpt-3.5-turbo-16k-0613
- gpt-3.5-turbo-0301
- text-davinci-003
- text-davinci-002
- code-davinci-002
- gpt-3
- text-curie-001
- text-babbage-001
- text-ada-001
- davinci
- curie
- babbage
- ada
- babbage-002
- davinci-002

<a id="gpt-v2"></a>
## Usage GPT v2

It's quite similar, with the difference that it has the capability to generate real-time responses via streaming using gpt-3.5-turbo.

```python
import json
from gpti import gpt

res = gpt.v2(messages=[
    {
        "role": "assistant",
        "content": "Hello! How are you today?"
    },
    {
        "role": "user",
        "content": "Hello, my name is Yandri."
    },
    {
        "role": "assistant",
        "content": "Hello, Yandri! How are you today?"
    },
    {
        "role": "user",
        "content": "Can you repeat my name?"
    }
], markdown=False, stream=False)

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "model": "ChatGPT",
    "message": "Of course, Yandri! How can I assist you today?",
    "original": null
}
```

## Usage GPT v2 Streaming

```python
import json
from gpti import gpt

res = gpt.v2(messages=[
    {
        "role": "assistant",
        "content": "Hello! How are you today?"
    },
    {
        "role": "user",
        "content": "Hello, my name is Yandri."
    },
    {
        "role": "assistant",
        "content": "Hello, Yandri! How are you today?"
    },
    {
        "role": "user",
        "content": "Can you repeat my name?"
    }
], markdown=False, stream=False)

if res.error != None:
    print(json.dumps(res.error))
else:
    for chunk in res.stream():
        print(json.dumps(chunk))
```

#### JSON

```json
{"message":"","original":null,"finish":false,"error":false}
{"message":"Of","original":null,"finish":false,"error":false}
{"message":"Of course","original":null,"finish":false,"error":false}
{"message":"Of course,","original":null,"finish":false,"error":false}
{"message":"Of course, Yand","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri!","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How can","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How can I","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How can I assist","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How can I assist you","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How can I assist you today","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How can I assist you today?","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How can I assist you today?","original":null,"finish":false,"error":false}
{"message":"Of course, Yandri! How can I assist you today?","original":null,"finish":false,"error":false}
{"message":null,"original":null,"finish":true,"error":false}
```

<a id="gptweb"></a>
## Usage GPT Web

GPT-4 has been enhanced by me, but errors may arise due to technological complexity. It is advisable to exercise caution when relying entirely on its accuracy for online queries.

```python
import json
from gpti import gpt

res = gpt.web(prompt="Are you familiar with the movie Wonka released in 2023?", markdown=False)

if res.error != None:
    print(json.dumps(res.error))
else: 
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "gpt": "Yes, I am familiar with the movie Wonka released in 2023. Wonka is a musical fantasy film directed by Paul King, adapted from the character at the center of Roald Dahl's iconic children's book, \"Charlie and the Chocolate Factory.\" The film follows the story of a young and poor Willy Wonka as he dreams of opening a shop in a chocolate-renowned city and discovers that the industry is controlled by a greedy cartel. The film has a rating of 7.1/10 and has received positive reviews with a score of 83% on Rotten Tomatoes. It was released on December 15, 2023, and has earned $552.1 million at the box office. The cast includes actors such as Timothée Chalamet. Unfortunately, I couldn't find information on whether the movie is available on Netflix.",
    "original": null
}
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "items": [
        {
            "id": "e90a6598",
            "title": "Suggest fun activities",
            "description": "to do indoors with my high-energy dog",
            "prompt": "What are five fun and creative activities to do indoors with my dog who has a lot of energy?",
            "category": "idea"
        },
        {
            "id": "974d4604",
            "title": "Help me pick",
            "description": "a birthday gift for my mom who likes gardening",
            "prompt": "Help me pick a birthday gift for my mom who likes gardening. But don't give me gardening tools – she already has all of them!",
            "category": "shop"
        },
        {
            "id": "d1c0099d",
            "title": "Help me study",
            "description": "vocabulary for a college entrance exam",
            "prompt": "Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option.",
            "category": "teach-or-explain"
        },
        {
            "id": "a36cb799",
            "title": "Write a letter to future me",
            "description": "reflecting on my mental health",
            "prompt": "Can you help me craft a letter to my future self? Start by asking me about the key milestones and struggles in my mental health journey I'd like to include.",
            "category": "write"
        }
    ],
    "total": 4,
    "limit": 4,
    "offset": 0,
    "lang": "en"
}
```

<a id="bing"></a>
## Usage Bing

```python
import json
from gpti import bing

res = bing(messages=[
    {
        "role": "assistant",
        "content": "Hello! How can I help you today? 😊"
    },
    {
        "role": "user",
        "content": "Hi, tell me the names of the movies released in 2023."
    },
    {
        "role": "assistant",
        "content": "Certainly! Here are some movies that were released in 2023:\n\n1.  **About My Father** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n2.  **The Little Mermaid** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n3.  **Fast X** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n4.  **Spider-Man: Across the Spider-Verse** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n5.  **The Machine** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n6.  **Book Club: The Next Chapter** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n7.  **Guardians of the Galaxy Vol. 3** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n8.  **John Wick: Chapter 4** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n9.  **Are You There God? It's Me, Margaret** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n10.  **Evil Dead Rise** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n11.  **The Super Mario Bros. Movie** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n12.  **Love Again** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n13.  **Kandahar** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n14.  **Dungeons & Dragons: Honor Among Thieves** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n15.  **Shin Kamen Rider** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n16.  **Knights of the Zodiac** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n17.  **The Pope's Exorcist** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n18.  **Shazam! Fury of the Gods** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n19.  **All That Breathes** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n20.  **Sailor Moon Cosmos** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n21.  **Hypnotic** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n22.  **Sound of Freedom** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n23.  **The Boogeyman** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n24.  **Chicken Run: Dawn of the Nugget** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n25.  **A Lot of Nothing** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n26.  **Followers** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n27.  **Big George Foreman** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n28.  **Asterix & Obelix: The Middle Kingdom** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n29.  **Ant-Man and the Wasp: Quantumania** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n30.  **Transformers: Rise of the Beasts** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n31.  **Follow Her** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n32.  **Prom Pact** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n33.  **God Is a Bullet** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n34.  **Still: A Michael J. Fox Movie** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n35.  **Nefarious** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n36.  **Nanny Dearest** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n37.  **Monica** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n38.  **Wild Life** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n39.  **Palm Trees and Power Lines** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n40.  **What's Love Got to Do with It?** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n41.  **Creed III** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n42.  **One True Loves** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n43.  **BlackBerry** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n44.  **Suzume** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n45.  **Rock Dog 3: Battle the Beat** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n46.  **Gridman Universe** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n47.  **Digimon Adventure 02: The Beginning** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n48.  **Woman of the Photographs** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n49.  **El Tonto** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n50.  **Seriously Red** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n\nI hope this helps! Let me know if you have any other questions."
    },
    {
        "role": "user",
        "content": "Can you tell me how many movies you've told me about?"
    }
], conversation_style="Balanced", markdown=False, stream=False)

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "model": "Bing",
    "message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?"
    "original:": null
}
```

## Usage Bing Streaming

```python
import json
from gpti import bing

res = bing(messages=[
    {
        "role": "assistant",
        "content": "Hello! How can I help you today? 😊"
    },
    {
        "role": "user",
        "content": "Hi, tell me the names of the movies released in 2023."
    },
    {
        "role": "assistant",
        "content": "Certainly! Here are some movies that were released in 2023:\n\n1.  **About My Father** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n2.  **The Little Mermaid** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n3.  **Fast X** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n4.  **Spider-Man: Across the Spider-Verse** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n5.  **The Machine** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n6.  **Book Club: The Next Chapter** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n7.  **Guardians of the Galaxy Vol. 3** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n8.  **John Wick: Chapter 4** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n9.  **Are You There God? It's Me, Margaret** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n10.  **Evil Dead Rise** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n11.  **The Super Mario Bros. Movie** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n12.  **Love Again** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n13.  **Kandahar** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n14.  **Dungeons & Dragons: Honor Among Thieves** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n15.  **Shin Kamen Rider** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n16.  **Knights of the Zodiac** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n17.  **The Pope's Exorcist** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n18.  **Shazam! Fury of the Gods** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n19.  **All That Breathes** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n20.  **Sailor Moon Cosmos** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n21.  **Hypnotic** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n22.  **Sound of Freedom** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n23.  **The Boogeyman** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n24.  **Chicken Run: Dawn of the Nugget** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n25.  **A Lot of Nothing** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n26.  **Followers** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n27.  **Big George Foreman** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n28.  **Asterix & Obelix: The Middle Kingdom** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n29.  **Ant-Man and the Wasp: Quantumania** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n30.  **Transformers: Rise of the Beasts** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n31.  **Follow Her** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n32.  **Prom Pact** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n33.  **God Is a Bullet** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n34.  **Still: A Michael J. Fox Movie** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n35.  **Nefarious** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n36.  **Nanny Dearest** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n37.  **Monica** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n38.  **Wild Life** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n39.  **Palm Trees and Power Lines** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n40.  **What's Love Got to Do with It?** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n41.  **Creed III** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n42.  **One True Loves** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n43.  **BlackBerry** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n44.  **Suzume** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n45.  **Rock Dog 3: Battle the Beat** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n46.  **Gridman Universe** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n47.  **Digimon Adventure 02: The Beginning** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n48.  **Woman of the Photographs** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n49.  **El Tonto** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n50.  **Seriously Red** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\n\nI hope this helps! Let me know if you have any other questions."
    },
    {
        "role": "user",
        "content": "Can you tell me how many movies you've told me about?"
    }
], conversation_style="Balanced", markdown=False, stream=True)

if res.error != None:
    print(json.dumps(res.error))
else:
    for chunk in res.stream():
        print(json.dumps(chunk))
```

#### JSON

```json
{"message": "I", "original": null, "finish": false, "error": false}
{"message": "I have", "original": null, "finish": false, "error": false}
{"message": "I have told", "original": null, "finish": false, "error": false}
{"message": "I have told you", "original": null, "finish": false, "error": false}
{"message": "I have told you about", "original": null, "finish": false, "error": false}
{"message": "I have told you about \\*\\*", "original": null, "finish": false, "error": false}
{"message": "I have told you about \\*\\*50", "original": null, "finish": false, "error": false}
{"message": "I have told you about \\*\\*50 movies", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies**", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 202", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023.", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can help", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can help you", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?", "original": null, "finish": false, "error": false}
{"message": "I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?", "original": null, "finish": false, "error": false}
{"message": null, "original": null, "finish": true, "error": false}
```

#### Parameters

| Parameter          | Default  | Description                                                                                             |
|--------------------|----------|---------------------------------------------------------------------------------------------------------|
| conversation_style | Balanced | You can use between: "Balanced", "Creative" and "Precise"                                               |
| markdown           | false    | You can convert the dialogues into continuous streams or not into Markdown                                |
| stream             | false    | You are given the option to choose whether you prefer the responses to be in real-time or not            |

<a id="llama2"></a>
## Usage LLaMA-2

```python
import json
from gpti import llama2

res = llama2(messages=[
    {
        "role": "assistant",
        "content": "Hello! How are you?"
    },
    {
        "role": "user",
        "content": "Hello! How are you? Could you tell me your name?"
    }
], data={
    "system_message": "",
    "temperature": 0.9,
    "max_tokens": 4096,
    "top_p": 0.6,
    "repetition_penalty": 1.2,
}, markdown=False, stream=False)

if res.error != None:
    print(json.dumps(res.error))
else: 
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "model": "LLaMA2",
    "message": "Sure, my name is LLaMA. I'm doing well, thanks for asking! Is there anything else you would like to chat about or ask me?",
    "original": null
}
```

## Usage LLaMA-2 Streaming

```python
import json
from gpti import llama2

res = llama2(messages=[
    {
        "role": "assistant",
        "content": "Hello! How are you?"
    },
    {
        "role": "user",
        "content": "Hello! How are you? Could you tell me your name?"
    }
], data={
    "system_message": "",
    "temperature": 0.9,
    "max_tokens": 4096,
    "top_p": 0.6,
    "repetition_penalty": 1.2,
}, markdown=False, stream=True)

if res.error != None:
    print(json.dumps(res.error))
else: 
    for chunk in res.stream():
        print(json.dumps(chunk))
```

#### JSON

```json
{"message":"Hello","original":null,"finish":false,"error":false}
{"message":"Hello!","original":null,"finish":false,"error":false}
{"message":"Hello! I","original":null,"finish":false,"error":false}
{"message":"Hello! I'","original":null,"finish":false,"error":false}
{"message":"Hello! I'm","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well,","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking.","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is L","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLa","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA,","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of research","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta A","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI.","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you?","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings you","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings you here","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings you here today","original":null,"finish":false,"error":false}
{"message":"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings you here today?","original":null,"finish":false,"error":false}
{"message":null,"original":null,"finish":true,"error":false}
```

#### Parameters

| Parameter         | Default | Description                                                       |
|-------------------|---------|-------------------------------------------------------------------|
| system_message    |         | Explain what specific task you want the artificial intelligence to perform |
| max_tokens        | 4096    | Min: 0, Max: 4096                                                |
| temperature       | 0.9     | Min: 0, Max: 1                                                 |
| top_p             | 0.6     | Min: 0, Max: 1                                                 |
| repetition_penalty| 1.2     | Min: 1, Max: 2                                                   |
| markdown          | false   | You can convert the dialogues into continuous streams or not into Markdown |
| stream            | false   | You are given the option to choose whether you prefer the responses to be in real-time or not |

<a id="dalle"></a>
## Usage DALL·E

```python
import json
from gpti import dalle

res = dalle.v1(prompt="starry sky over the city")

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "starry sky over the city",
    "model": "DALL·E",
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

<a id="dalle2"></a>
## Usage DALL·E 2 (PRO)

```python
import json
from gpti import dalle

res = dalle.v2(prompt="An extensive green valley stretches toward imposing mountains, adorned with meadows and a winding stream. The morning sun paints the sky with warm tones, illuminating the landscape with a serenity that invites contemplation and peace.", data={
    "gpu": False,
    "prompt_improvement": False
})

if res.error != None:
    print(json.dumps(res.error))
else: 
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An extensive green valley stretches toward imposing mountains, adorned with meadows and a winding stream. The morning sun paints the sky with warm tones, illuminating the landscape with a serenity that invites contemplation and peace.",
    "model": "DALL·E-2",
    "data": {
        "gpu": false,
        "prompt_improvement": false
    },
    "images": [
        "data:image/jpeg;base64,...",
        "..."
    ]
}
```

<a id="dalle-mini"></a>
## Usage DALL·E Mini

```python
import json
from gpti import dalle

res = dalle.mini(prompt="An extensive green valley stretches toward imposing mountains, adorned with meadows and a winding stream. The morning sun paints the sky with warm tones, illuminating the landscape with a serenity that invites contemplation and peace.")

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An extensive green valley stretches toward imposing mountains, adorned with meadows and a winding stream. The morning sun paints the sky with warm tones, illuminating the landscape with a serenity that invites contemplation and peace.",
    "model": "DALL·E-mini",
    "images": [
        "data:image/jpeg;base64,...",
        "..."
    ]
}
```

<a id="prodia"></a>
## Usage Prodia

```python
import json
from gpti import prodia

res = prodia.v1(prompt="Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.", data={
    "model": "absolutereality_V16.safetensors [37db0fc3]",
    "steps": 25,
    "cfg_scale": 7,
    "sampler": "DPM++ 2M Karras",
    "negative_prompt": ""
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.",
    "model": "Prodia",
    "data": {
        "model": "absolutereality_V16.safetensors [37db0fc3]",
        "steps": 25,
        "cfg_scale": 7,
        "sampler": "DPM++ 2M Karras",
        "negative_prompt": ""
    },
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

#### Models

List of models

- 3Guofeng3_v34.safetensors [50f420de]
- absolutereality_V16.safetensors [37db0fc3]
- absolutereality_v181.safetensors [3d9d4d2b]
- amIReal_V41.safetensors [0a8a2e61]
- analog-diffusion-1.0.ckpt [9ca13f02]
- anythingv3_0-pruned.ckpt [2700c435]
- anything-v4.5-pruned.ckpt [65745d25]
- anythingV5_PrtRE.safetensors [893e49b9]
- AOM3A3_orangemixs.safetensors [9600da17]
- blazing_drive_v10g.safetensors [ca1c1eab]
- breakdomain_I2428.safetensors [43cc7d2f]
- breakdomain_M2150.safetensors [15f7afca]
- cetusMix_Version35.safetensors [de2f2560]
- childrensStories_v13D.safetensors [9dfaabcb]
- childrensStories_v1SemiReal.safetensors [a1c56dbb]
- childrensStories_v1ToonAnime.safetensors [2ec7b88b]
- Counterfeit_v30.safetensors [9e2a8f19]
- cuteyukimixAdorable_midchapter3.safetensors [04bdffe6]
- cyberrealistic_v33.safetensors [82b0d085]
- dalcefo_v4.safetensors [425952fe]
- deliberate_v2.safetensors [10ec4b29]
- deliberate_v3.safetensors [afd9d2d4]
- dreamlike-anime-1.0.safetensors [4520e090]
- dreamlike-diffusion-1.0.safetensors [5c9fd6e0]
- dreamlike-photoreal-2.0.safetensors [fdcf65e7]
- dreamshaper_6BakedVae.safetensors [114c8abb]
- dreamshaper_7.safetensors [5cf5ae06]
- dreamshaper_8.safetensors [9d40847d]
- edgeOfRealism_eorV20.safetensors [3ed5de15]
- EimisAnimeDiffusion_V1.ckpt [4f828a15]
- elldreths-vivid-mix.safetensors [342d9d26]
- epicphotogasm_xPlusPlus.safetensors [1a8f6d35]
- epicrealism_naturalSinRC1VAE.safetensors [90a4c676]
- epicrealism_pureEvolutionV3.safetensors [42c8440c]
- ICantBelieveItsNotPhotography_seco.safetensors [4e7a3dfd]
- indigoFurryMix_v75Hybrid.safetensors [91208cbb]
- juggernaut_aftermath.safetensors [5e20c455]
- lofi_v4.safetensors [ccc204d6]
- lyriel_v16.safetensors [68fceea2]
- majicmixRealistic_v4.safetensors [29d0de58]
- mechamix_v10.safetensors [ee685731]
- meinamix_meinaV9.safetensors [2ec66ab0]
- meinamix_meinaV11.safetensors [b56ce717]
- neverendingDream_v122.safetensors [f964ceeb]
- openjourney_V4.ckpt [ca2f377f]
- pastelMixStylizedAnime_pruned_fp16.safetensors [793a26e8]
- portraitplus_V1.0.safetensors [1400e684]
- protogenx34.safetensors [5896f8d5]
- Realistic_Vision_V1.4-pruned-fp16.safetensors [8d21810b]
- Realistic_Vision_V2.0.safetensors [79587710]
- Realistic_Vision_V4.0.safetensors [29a7afaa]
- Realistic_Vision_V5.0.safetensors [614d1063]
- redshift_diffusion-V10.safetensors [1400e684]
- revAnimated_v122.safetensors [3f4fefd9]
- rundiffusionFX25D_v10.safetensors [cd12b0ee]
- rundiffusionFX_v10.safetensors [cd4e694d]
- sdv1_4.ckpt [7460a6fa]
- v1-5-pruned-emaonly.safetensors [d7049739]
- v1-5-inpainting.safetensors [21c7ab71]
- shoninsBeautiful_v10.safetensors [25d8c546]
- theallys-mix-ii-churned.safetensors [5d9225a4]
- timeless-1.0.ckpt [7c4971d4]
- toonyou_beta6.safetensors [980f6b15]

#### Parameters

| Parameter       | Default                          | Description                           |
|-----------------|----------------------------------|---------------------------------------|
| negative_prompt |                                  | Indicates what the AI should not do   |
| model           | absolutereality_V16.safetensors [37db0fc3] | Select from the list of models |
| cfg_scale       | 7                                | Min: 0, Max: 20                       |
| steps           | 25                               | Min: 1, Max: 30                       |
| sampler         | DPM++ 2M Karras                  | Select from these: "Euler","Euler a","Heun","DPM++ 2M Karras","DPM++ SDE Karras","DDIM" |

<a id="prodia-stablediffusion"></a>
## Usage Prodia Stable-Diffusion

```python
import json
from gpti import prodia

res = prodia.stablediffusion(prompt="Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.", data={
    "prompt_negative": "",
    "model": "absolutereality_v181.safetensors [3d9d4d2b]",
    "sampling_method": "DPM++ 2M Karras",
    "sampling_steps": 25,
    "width": 512,
    "height": 512,
    "cfg_scale": 7
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.",
    "model": "Prodia-StableDiffusion",
    "data": {
        "prompt_negative": "",
        "model": "absolutereality_v181.safetensors [3d9d4d2b]",
        "sampling_method": "DPM++ 2M Karras",
        "sampling_steps": 25,
        "width": 512,
        "height": 512,
        "cfg_scale": 7
    }
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

#### Models

List of models

- 3Guofeng3_v34.safetensors [50f420de]
- absolutereality_V16.safetensors [37db0fc3]
- absolutereality_v181.safetensors [3d9d4d2b]
- amIReal_V41.safetensors [0a8a2e61]
- analog-diffusion-1.0.ckpt [9ca13f02]
- anythingv3_0-pruned.ckpt [2700c435]
- anything-v4.5-pruned.ckpt [65745d25]
- anythingV5_PrtRE.safetensors [893e49b9]
- AOM3A3_orangemixs.safetensors [9600da17]
- blazing_drive_v10g.safetensors [ca1c1eab]
- breakdomain_I2428.safetensors [43cc7d2f]
- breakdomain_M2150.safetensors [15f7afca]
- cetusMix_Version35.safetensors [de2f2560]
- childrensStories_v13D.safetensors [9dfaabcb]
- childrensStories_v1SemiReal.safetensors [a1c56dbb]
- childrensStories_v1ToonAnime.safetensors [2ec7b88b]
- Counterfeit_v30.safetensors [9e2a8f19]
- cuteyukimixAdorable_midchapter3.safetensors [04bdffe6]
- cyberrealistic_v33.safetensors [82b0d085]
- dalcefo_v4.safetensors [425952fe]
- deliberate_v2.safetensors [10ec4b29]
- deliberate_v3.safetensors [afd9d2d4]
- dreamlike-anime-1.0.safetensors [4520e090]
- dreamlike-diffusion-1.0.safetensors [5c9fd6e0]
- dreamlike-photoreal-2.0.safetensors [fdcf65e7]
- dreamshaper_6BakedVae.safetensors [114c8abb]
- dreamshaper_7.safetensors [5cf5ae06]
- dreamshaper_8.safetensors [9d40847d]
- edgeOfRealism_eorV20.safetensors [3ed5de15]
- EimisAnimeDiffusion_V1.ckpt [4f828a15]
- elldreths-vivid-mix.safetensors [342d9d26]
- epicphotogasm_xPlusPlus.safetensors [1a8f6d35]
- epicrealism_naturalSinRC1VAE.safetensors [90a4c676]
- epicrealism_pureEvolutionV3.safetensors [42c8440c]
- ICantBelieveItsNotPhotography_seco.safetensors [4e7a3dfd]
- indigoFurryMix_v75Hybrid.safetensors [91208cbb]
- juggernaut_aftermath.safetensors [5e20c455]
- lofi_v4.safetensors [ccc204d6]
- lyriel_v16.safetensors [68fceea2]
- majicmixRealistic_v4.safetensors [29d0de58]
- mechamix_v10.safetensors [ee685731]
- meinamix_meinaV9.safetensors [2ec66ab0]
- meinamix_meinaV11.safetensors [b56ce717]
- neverendingDream_v122.safetensors [f964ceeb]
- openjourney_V4.ckpt [ca2f377f]
- pastelMixStylizedAnime_pruned_fp16.safetensors [793a26e8]
- portraitplus_V1.0.safetensors [1400e684]
- protogenx34.safetensors [5896f8d5]
- Realistic_Vision_V1.4-pruned-fp16.safetensors [8d21810b]
- Realistic_Vision_V2.0.safetensors [79587710]
- Realistic_Vision_V4.0.safetensors [29a7afaa]
- Realistic_Vision_V5.0.safetensors [614d1063]
- redshift_diffusion-V10.safetensors [1400e684]
- revAnimated_v122.safetensors [3f4fefd9]
- rundiffusionFX25D_v10.safetensors [cd12b0ee]
- rundiffusionFX_v10.safetensors [cd4e694d]
- sdv1_4.ckpt [7460a6fa]
- v1-5-pruned-emaonly.safetensors [d7049739]
- v1-5-inpainting.safetensors [21c7ab71]
- shoninsBeautiful_v10.safetensors [25d8c546]
- theallys-mix-ii-churned.safetensors [5d9225a4]
- timeless-1.0.ckpt [7c4971d4]
- toonyou_beta6.safetensors [980f6b15]

#### Methods

List of methods:

- DPM++ 2M Karras
- Euler
- Euler a
- LMS
- Heun
- DPM2
- DPM2 a
- DPM++ 2S a
- DPM++ 2M
- DPM++ SDE
- DPM fast
- DPM adaptive
- LMS Karras
- DPM2 Karras
- DPM2 a Karras
- DPM++ 2S a Karras
- DPM++ 2M Karras
- DPM++ SDE Karras
- DDIM
- PLMS
- DPM++ 2M Karras

#### Parameters

| Parameter        | Default                               | Description                              |
|------------------|---------------------------------------|------------------------------------------|
| prompt_negative  |                                       | Indicates what the AI should not do       |
| model            | absolutereality_v181.safetensors [3d9d4d2b] | Select from the list of models     |
| sampling_method  | DPM++ 2M Karras                       | Select from the list of methods          |
| sampling_steps   | 25                                    | Min: 1, Max: 30                          |
| width            | 512                                   | Min: 50, Max: 1024                       |
| height           | 512                                   | Min: 50, Max: 1024                       |
| cfg_scale        | 7                                     | Min: 1, Max: 20                          |

<a id="prodia-stablediffusion-xl"></a>
## Usage Prodia Stable-Diffusion XL (PRO)

```python
import json
from gpti import prodia

res = prodia.stablediffusion_xl(prompt="Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.", data={
    "prompt_negative": "",
    "model": "sd_xl_base_1.0.safetensors [be9edd61]",
    "sampling_method": "DPM++ 2M Karras",
    "sampling_steps": 25,
    "width": 1024,
    "height": 1024,
    "cfg_scale": 7
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.",
    "model": "Prodia-StableDiffusion-xl",
    "data": {
        "prompt_negative": "",
        "model": "sd_xl_base_1.0.safetensors [be9edd61]",
        "sampling_method": "DPM++ 2M Karras",
        "sampling_steps": 25,
        "width": 1024,
        "height": 1024,
        "cfg_scale": 7
    }
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

#### Models

List of models:

- dreamshaperXL10_alpha2.safetensors [c8afe2ef]
- dynavisionXL_0411.safetensors [c39cc051]
- juggernautXL_v45.safetensors [e75f5471]
- realismEngineSDXL_v10.safetensors [af771c3f]
- sd_xl_base_1.0.safetensors [be9edd61]
- sd_xl_base_1.0_inpainting_0.1.safetensors [5679a81a]
- turbovisionXL_v431.safetensors [78890989]

#### Methods

List of methods:

- DPM++ 2M Karras
- Euler
- Euler a
- LMS
- Heun
- DPM2
- DPM2 a
- DPM++ 2S a
- DPM++ 2M
- DPM++ SDE
- DPM fast
- DPM adaptive
- LMS Karras
- DPM2 Karras
- DPM2 a Karras
- DPM++ 2S a Karras
- DPM++ SDE Karras

#### Parameters

| Parameter        | Default                          | Description                              |
|------------------|----------------------------------|------------------------------------------|
| prompt_negative  |                                  | Indicates what the AI should not do       |
| model            | sd_xl_base_1.0.safetensors [be9edd61] | Select from the list of models     |
| sampling_method  | DPM++ 2M Karras                  | Select from the list of methods          |
| sampling_steps   | 25                               | Min: 1, Max: 30                          |
| width            | 1024                             | Min: 512, Max: 1536                      |
| height           | 1024                             | Min: 512, Max: 1536                      |
| cfg_scale        | 7                                | Min: 1, Max: 20                          |

<a id="pixart-a"></a>
## Usage Pixart-A (PRO)

```python
import json
from gpti import pixart

res = pixart.a(prompt="An urban landscape bathed in the sunset, where the warm tones of the sun reflect on modern buildings and the orange and purple sky. In the foreground, there's a group of friends gathered on a rooftop, laughing and enjoying the moment. Their expressions radiate joy and camaraderie as they embrace and point towards something on the horizon. The scene is enveloped in a nostalgic and emotional aura that conveys the beauty of friendship and the warmth of the sunset in a futuristic city with touches of anime style.", data={
    "prompt_negative": "",
    "sampler": "DPM-Solver",
    "image_style": "Anime",
    "width": 1024,
    "height": 1024,
    "dpm_guidance_scale": 4.5,
    "dpm_inference_steps": 14,
    "sa_guidance_scale": 3,
    "sa_inference_steps": 25
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An urban landscape bathed in the sunset, where the warm tones of the sun reflect on modern buildings and the orange and purple sky. In the foreground, there's a group of friends gathered on a rooftop, laughing and enjoying the moment. Their expressions radiate joy and camaraderie as they embrace and point towards something on the horizon. The scene is enveloped in a nostalgic and emotional aura that conveys the beauty of friendship and the warmth of the sunset in a futuristic city with touches of anime style.",
    "model": "PixArt-a",
    "data": {
        "prompt_negative": "",
        "sampler": "DPM-Solver",
        "image_style": "Anime",
        "width": 1024,
        "height": 1024,
        "dpm_guidance_scale": 4.5,
        "dpm_inference_steps": 14,
        "sa_guidance_scale": 3,
        "sa_inference_steps": 25
    },
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

#### Parameters

| Parameter            | Default      | Description                                           |
|----------------------|--------------|-------------------------------------------------------|
| prompt_negative      |              | Indicates what the AI should not do                   |
| sampler              | DPM-Solver   | Choose among these: "DPM-Solver", "SA-Solver" |
| image_style          | (No style)   | Choose from various available image types: "(No style)", "Cinematic", "Photographic", "Anime", "Manga", "Digital Art", "Pixel art", "Fantasy art", "Neonpunk", "3D Model" |
| width                | 1024         | Min: 256, Max: 2048                                  |
| height               | 1024         | Min: 256, Max: 2048                                  |
| dpm_guidance_scale   | 4.5          | Min: 1, Max: 10                                      |
| dpm_inference_steps  | 14           | Min: 5, Max: 40                                      |
| sa_guidance_scale    | 3            | Min: 1, Max: 10                                      |
| sa_inference_steps   | 25           | Min: 10, Max: 40                                     |

<a id="pixart-lcm"></a>
## Usage Pixart-LCM (PRO)

```python
import json
from gpti import pixart

res = pixart.lcm(prompt="An urban landscape bathed in the sunset, where the warm tones of the sun reflect on modern buildings and the orange and purple sky. In the foreground, there's a group of friends gathered on a rooftop, laughing and enjoying the moment. Their expressions radiate joy and camaraderie as they embrace and point towards something on the horizon. The scene is enveloped in a nostalgic and emotional aura that conveys the beauty of friendship and the warmth of the sunset in a futuristic city with touches of anime style.", data={
    "prompt_negative": "",
    "image_style": "Fantasy art",
    "width": 1024,
    "height": 1024,
    "lcm_inference_steps": 9
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An enchanted forest with twisted trees, a waterfall cascading into a pond of bright water lilies, and in the background, a magical tower surrounded by mythical creatures like unicorns, fairies, and dragons, under a starry sky and a giant moon.",
    "model": "PixArt-LCM",
    "data": {
        "prompt_negative": "",
        "image_style": "Fantasy art",
        "width": 1024,
        "height": 1024,
        "lcm_inference_steps": 9
    },
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

#### Parameters

| Parameter             | Default    | Description                                                                                   |
|-----------------------|------------|-----------------------------------------------------------------------------------------------|
| prompt_negative       |            | Indicates what the AI should not do                                                           |
| image_style           | (No style) | Choose from various available image types: "(No style)", "Cinematic", "Photographic", "Anime", "Manga", "Digital Art", "Pixel art", "Fantasy art", "Neonpunk", "3D Model" |
| width                 | 1024       | Min: 256, Max: 2048                                                                          |
| height                | 1024       | Min: 256, Max: 2048                                                                          |
| lcm_inference_steps   | 9          | Min: 1, Max: 30                                                                              |

<a id="stablediffusion-1.5"></a>
## Usage Stable-Diffusion 1.5

```python
import json
from gpti import stablediffusion

res = stablediffusion.v1(prompt="An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.")

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.",
    "model": "StableDiffusion-1.5",
    "images": [
        "data:image/jpeg;base64,...",
        "..."
    ]
}
```

<a id="stablediffusion-2.1"></a>
## Usage Stable-Diffusion 2.1

```python
import json
from gpti import stablediffusion

res = stablediffusion.v2(prompt="An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.", data={
    "prompt_negative": "",
    "guidance_scale": 9
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.",
    "model": "StableDiffusion-2.1",
    "data": {
        "prompt_negative": "",
        "guidance_scale": 9
    },
    "images": [
        "data:image/jpeg;base64,...",
        "..."
    ]
}
```

#### Parameters

| Parameter         | Default | Description                           |
|-------------------|---------|---------------------------------------|
| prompt_negative   |         | Indicates what the AI should not do    |
| guidance_scale    | 9       | Min: 0 Max: 50                        |

<a id="stablediffusion-xl"></a>
## Usage Stable-Diffusion XL (PRO)

```python
import json
from gpti import stablediffusion

res = stablediffusion.xl(prompt="An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.", data={
    "prompt_negative": "",
    "image_style": "(No style)",
    "guidance_scale": 7.5
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.",
    "model": "StableDiffusion-XL",
    "data": {
        "prompt_negative": "",
        "image_style": "(No style)",
        "guidance_scale": 7.5
    },
    "images": [
        "data:image/jpeg;base64,...",
        "..."
    ]
}
```

#### Parameters

| Parameter         | Default      | Description                                                                                             |
|-------------------|--------------|---------------------------------------------------------------------------------------------------------|
| prompt_negative   |              | Indicates what the AI should not do                                                                    |
| image_style       | (No style)    | Choose from various available image types: "(No style)", "Cinematic", "Photographic", "Anime", "Manga", "Digital Art", "Pixel art", "Fantasy art", "Neonpunk", "3D Model" |
| guidance_scale    | 7.5            | Min: 0, Max: 50                                                                                        |

<a id="emi"></a>
## Usage EMI

```python
import json
from gpti import emi

res = emi(prompt="A beautiful girl in a garden full of bright flowers. Her long, silky hair is adorned with flowers, and her large eyes reflect serenity. She wears a traditional kimono, smiling as she holds a delicate butterfly in her hand.")

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "A beautiful girl in a garden full of bright flowers. Her long, silky hair is adorned with flowers, and her large eyes reflect serenity. She wears a traditional kimono, smiling as she holds a delicate butterfly in her hand.",
    "model": "Emi",
    "scene": "a young woman stands in a beautiful garden, full of vibrant flowers. Her long, flowing silk kimono is adorned with the same flowers, and her large, expressive eyes seem to reflect a sense of peaceful serenity. In her hand, she clutches a delicate butterfly, which seems to be caught up in the beauty of the moment. She is surrounded",
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

<a id="render3d"></a>
## Usage Render3D (PRO)

```python
import json
from gpti import render3d

res = render3d(prompt="In a remote corner of the galaxy, a star agonizes in its final stage of life. Its brightness, once dazzling, now fades slowly into the void of space, while a bright nebula forms around it.", data={
    "prompt_negative": ""
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "In a remote corner of the galaxy, a star agonizes in its final stage of life. Its brightness, once dazzling, now fades slowly into the void of space, while a bright nebula forms around it.",
    "model": "Render3D",
    "data": {
        "prompt_negative": ""
    },
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

<a id="pixelart"></a>
## Usage PixelArt (PRO)

```python
import json
from gpti import pixelart

res = pixelart(prompt="A coastal city in the golden hour of the sunset. The sun slowly slips toward the horizon, tinting the sky with golden and pink hues. Skyscrapers stand out against this heavenly backdrop, reflecting the light in their glass windows. In the streets, lights flicker timidly, getting ready to illuminate the night.", data={
    "prompt_negative": ""
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "A coastal city in the golden hour of the sunset. The sun slowly slips toward the horizon, tinting the sky with golden and pink hues. Skyscrapers stand out against this heavenly backdrop, reflecting the light in their glass windows. In the streets, lights flicker timidly, getting ready to illuminate the night.",
    "model": "PixelArt",
    "data": {
        "prompt_negative": ""
    },
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

<a id="animagine-xl"></a>
## Usage Animagine-XL (PRO)

```python
import json
from gpti import animagine

res = animagine(prompt="An anime girl surrounded by cherry blossoms", data={
    "prompt_negative": "",
    "quality_tags": "Standard",
    "style_present": "(None)",
    "width": 1024,
    "height": 1024,
    "strength": 0.5,
    "upscale": 1.5,
    "sampler": "Euler a",
    "guidance_scale": 7,
    "inference_steps": 28
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An anime girl surrounded by cherry blossoms",
    "model": "Animagine-XL",
    "data": {
        "prompt_negative": "",
        "quality_tags": "Standard",
        "style_present": "(None)",
        "width": 1024,
        "height": 1024,
        "strength": 0.5,
        "upscale": 1.5,
        "sampler": "Euler a",
        "guidance_scale": 7,
        "inference_steps": 28
    },
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

<a id="playground"></a>
## Usage Playground (PRO)

```python
import json
from gpti import playground

res = playground(prompt="An illustration of a red owl with bright blue eye", data={
    "prompt_negative": "",
    "width": 1024,
    "height": 1024,
    "guidance_scale": 3
})

if res.error != None:
    print(json.dumps(res.error))
else:
    print(json.dumps(res.result))
```

#### JSON

```json
{
    "code": 200,
    "status": true,
    "prompt": "An illustration of a red owl with bright blue eyes.",
    "model": "Playground",
    "data": {
        "prompt_negative": "",
        "width": 1024,
        "height": 1024,
        "guidance_scale": 3
    },
    "images": [
        "data:image/jpeg;base64,..."
    ]
}
```

## API Reference

Currently, some models require your credentials to access them, while others are free. For more details and examples, please refer to the complete [documentation](https://nexra.aryahcr.cc/).

#### Code Errors

These are the error codes that will be presented in case the API fails.

| Code | Error                  | Description                                           |
|------|------------------------|-------------------------------------------------------|
| 400  | BAD_REQUEST            | Not all parameters have been entered correctly        |
| 500  | INTERNAL_SERVER_ERROR  | The server has experienced failures                   |
| 200  |                        | The API worked without issues                          |
| 403  | FORBIDDEN              | Your API key has expired and needs to be renewed      |
| 401  | UNAUTHORIZED           | API credentials are required                          |


## ☕ Do you want to support this project?

If this package has helped you save time or solve a problem, consider inviting me for a coffee through Ko-fi. Your support helps me maintain and improve this project for you and other users like you. Furthermore, each donation contributes to the creation and free availability of more AI models in the future. Every small donation counts and is greatly appreciated!

[![Support on Ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/yandricr)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yandricr/gpti-py/",
    "name": "gpti",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "gpt gpt-3 gpt-3.5 gpt-4 gpti gpt-free ai generate-image prodia bing chat stream dalle dalle-2 llama-2 stable-diffusion pixart EMI render3d pixel-art playground animagine-xl",
    "author": "yandricr",
    "author_email": "yandribret@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d2/99/f69fcf8db849b2ee7c345750cf17819ba8caa5429adce6f07798e79e7049/gpti-2.0.tar.gz",
    "platform": null,
    "description": "\r\n# GPTI\r\n\r\n![Downloads](https://img.shields.io/pypi/dw/gpti?style=for-the-badge) ![License](https://img.shields.io/pypi/l/gpti?style=for-the-badge) [![Contributors](https://img.shields.io/github/contributors/yandricr/gpti-py?style=for-the-badge)](https://github.com/yandricr/gpti-py/graphs/contributors) [![Size Package](https://img.shields.io/github/languages/code-size/yandricr/gpti-py?style=for-the-badge)](https://github.com/yandricr/gpti-py) ![Python](https://img.shields.io/badge/python-%233776AB.svg?style=for-the-badge&logo=python&logoColor=white) [![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/yandricr)\r\n\r\nThis package simplifies your interaction with various GPT models, eliminating the need for tokens or other methods to access GPT. It also allows you to use three artificial intelligences to generate images: DALL\u00b7E, Prodia and more, all of this without restrictions or limits\r\n\r\n## Installation\r\n\r\nYou can install the package via PIP\r\n\r\n```bash\r\npip install gpti\r\n```\r\n\r\n## Available Models\r\n\r\nGPTI provides access to a variety of artificial intelligence models to meet various needs. Currently, the available models include:\r\n\r\n- [**ChatGPT**](#gpt)\r\n- [**ChatGPT v2**](#gpt-v2)\r\n- [**ChatGPT Web**](#gptweb)\r\n- [**Bing**](#bing)\r\n- [**LLaMA-2**](#llama2)\r\n- [**DALL\u00b7E**](#dalle)\r\n- [**DALL-E 2**](#dalle2) (PRO)\r\n- [**DALL-E Mini**](#dalle-mini)\r\n- [**Prodia**](#prodia)\r\n- [**Prodia Stable-Diffusion**](#prodia-stablediffusion)\r\n- [**Prodia Stable-Diffusion XL**](#prodia-stablediffusion-xl) (PRO)\r\n- [**Pixart-A**](#pixart-a) (PRO)\r\n- [**Pixart-LCM**](#pixart-lcm) (PRO)\r\n- [**Stable-Diffusion 1.5**](#stablediffusion-1.5)\r\n- [**Stable-Diffusion 2.1**](#stablediffusion-2.1)\r\n- [**Stable-Diffusion XL**](#stablediffusion-xl) (PRO)\r\n- [**EMI**](#emi)\r\n- [**Render3D**](#render3d) (PRO)\r\n- [**PixelArt**](#pixelart) (PRO)\r\n- [**Animagine-XL**](#animagine-xl) (PRO)\r\n- [**Playground**](#playground) (PRO)\r\n\r\n## Api key\r\n\r\nIf you want to access the premium models, enter your credentials. You can obtain them by [clicking here](https://nexra.aryahcr.cc/api-key/en).\r\n\r\n```python\r\nfrom gpti import nexra\r\n\r\nnexra(\"user-xxxxxxxx\", \"nx-xxxxxxx-xxxxx-xxxxx\");\r\n```\r\n\r\n<a id=\"gpt\"></a>\r\n## Usage GPT\r\n\r\n```python\r\nimport json\r\nfrom gpti import gpt\r\n\r\nres = gpt.v1(messages=[\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello! How are you today?\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Hello, my name is Yandri.\"\r\n    },\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello, Yandri! How are you today?\"\r\n    }\r\n], prompt=\"Can you repeat my name?\", model=\"GPT-4\", markdown=False)\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"model\": \"gpt-4\",\r\n    \"gpt\": \"Of course, Yandri. How can I assist you today?\",\r\n    \"original\": null\r\n}\r\n```\r\n\r\n#### Models\r\n\r\nSelect one of these available models in the API to enhance your experience.\r\n\r\n- gpt-4\r\n- gpt-4-0613\r\n- gpt-4-32k\r\n- gpt-4-0314\r\n- gpt-4-32k-0314\r\n- gpt-3.5-turbo\r\n- gpt-3.5-turbo-16k\r\n- gpt-3.5-turbo-0613\r\n- gpt-3.5-turbo-16k-0613\r\n- gpt-3.5-turbo-0301\r\n- text-davinci-003\r\n- text-davinci-002\r\n- code-davinci-002\r\n- gpt-3\r\n- text-curie-001\r\n- text-babbage-001\r\n- text-ada-001\r\n- davinci\r\n- curie\r\n- babbage\r\n- ada\r\n- babbage-002\r\n- davinci-002\r\n\r\n<a id=\"gpt-v2\"></a>\r\n## Usage GPT v2\r\n\r\nIt's quite similar, with the difference that it has the capability to generate real-time responses via streaming using gpt-3.5-turbo.\r\n\r\n```python\r\nimport json\r\nfrom gpti import gpt\r\n\r\nres = gpt.v2(messages=[\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello! How are you today?\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Hello, my name is Yandri.\"\r\n    },\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello, Yandri! How are you today?\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Can you repeat my name?\"\r\n    }\r\n], markdown=False, stream=False)\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"model\": \"ChatGPT\",\r\n    \"message\": \"Of course, Yandri! How can I assist you today?\",\r\n    \"original\": null\r\n}\r\n```\r\n\r\n## Usage GPT v2 Streaming\r\n\r\n```python\r\nimport json\r\nfrom gpti import gpt\r\n\r\nres = gpt.v2(messages=[\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello! How are you today?\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Hello, my name is Yandri.\"\r\n    },\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello, Yandri! How are you today?\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Can you repeat my name?\"\r\n    }\r\n], markdown=False, stream=False)\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    for chunk in res.stream():\r\n        print(json.dumps(chunk))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\"message\":\"\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course,\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yand\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri!\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How can\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How can I\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How can I assist\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How can I assist you\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How can I assist you today\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How can I assist you today?\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How can I assist you today?\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Of course, Yandri! How can I assist you today?\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":null,\"original\":null,\"finish\":true,\"error\":false}\r\n```\r\n\r\n<a id=\"gptweb\"></a>\r\n## Usage GPT Web\r\n\r\nGPT-4 has been enhanced by me, but errors may arise due to technological complexity. It is advisable to exercise caution when relying entirely on its accuracy for online queries.\r\n\r\n```python\r\nimport json\r\nfrom gpti import gpt\r\n\r\nres = gpt.web(prompt=\"Are you familiar with the movie Wonka released in 2023?\", markdown=False)\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse: \r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"gpt\": \"Yes, I am familiar with the movie Wonka released in 2023. Wonka is a musical fantasy film directed by Paul King, adapted from the character at the center of Roald Dahl's iconic children's book, \\\"Charlie and the Chocolate Factory.\\\" The film follows the story of a young and poor Willy Wonka as he dreams of opening a shop in a chocolate-renowned city and discovers that the industry is controlled by a greedy cartel. The film has a rating of 7.1/10 and has received positive reviews with a score of 83% on Rotten Tomatoes. It was released on December 15, 2023, and has earned $552.1 million at the box office. The cast includes actors such as Timoth\u00e9e Chalamet. Unfortunately, I couldn't find information on whether the movie is available on Netflix.\",\r\n    \"original\": null\r\n}\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"items\": [\r\n        {\r\n            \"id\": \"e90a6598\",\r\n            \"title\": \"Suggest fun activities\",\r\n            \"description\": \"to do indoors with my high-energy dog\",\r\n            \"prompt\": \"What are five fun and creative activities to do indoors with my dog who has a lot of energy?\",\r\n            \"category\": \"idea\"\r\n        },\r\n        {\r\n            \"id\": \"974d4604\",\r\n            \"title\": \"Help me pick\",\r\n            \"description\": \"a birthday gift for my mom who likes gardening\",\r\n            \"prompt\": \"Help me pick a birthday gift for my mom who likes gardening. But don't give me gardening tools \u2013 she already has all of them!\",\r\n            \"category\": \"shop\"\r\n        },\r\n        {\r\n            \"id\": \"d1c0099d\",\r\n            \"title\": \"Help me study\",\r\n            \"description\": \"vocabulary for a college entrance exam\",\r\n            \"prompt\": \"Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option.\",\r\n            \"category\": \"teach-or-explain\"\r\n        },\r\n        {\r\n            \"id\": \"a36cb799\",\r\n            \"title\": \"Write a letter to future me\",\r\n            \"description\": \"reflecting on my mental health\",\r\n            \"prompt\": \"Can you help me craft a letter to my future self? Start by asking me about the key milestones and struggles in my mental health journey I'd like to include.\",\r\n            \"category\": \"write\"\r\n        }\r\n    ],\r\n    \"total\": 4,\r\n    \"limit\": 4,\r\n    \"offset\": 0,\r\n    \"lang\": \"en\"\r\n}\r\n```\r\n\r\n<a id=\"bing\"></a>\r\n## Usage Bing\r\n\r\n```python\r\nimport json\r\nfrom gpti import bing\r\n\r\nres = bing(messages=[\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello! How can I help you today? \ud83d\ude0a\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Hi, tell me the names of the movies released in 2023.\"\r\n    },\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Certainly! Here are some movies that were released in 2023:\\n\\n1.  **About My Father** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n2.  **The Little Mermaid** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n3.  **Fast X** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n4.  **Spider-Man: Across the Spider-Verse** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n5.  **The Machine** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n6.  **Book Club: The Next Chapter** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n7.  **Guardians of the Galaxy Vol. 3** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n8.  **John Wick: Chapter 4** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n9.  **Are You There God? It's Me, Margaret** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n10.  **Evil Dead Rise** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n11.  **The Super Mario Bros. Movie** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n12.  **Love Again** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n13.  **Kandahar** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n14.  **Dungeons & Dragons: Honor Among Thieves** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n15.  **Shin Kamen Rider** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n16.  **Knights of the Zodiac** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n17.  **The Pope's Exorcist** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n18.  **Shazam! Fury of the Gods** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n19.  **All That Breathes** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n20.  **Sailor Moon Cosmos** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n21.  **Hypnotic** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n22.  **Sound of Freedom** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n23.  **The Boogeyman** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n24.  **Chicken Run: Dawn of the Nugget** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n25.  **A Lot of Nothing** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n26.  **Followers** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n27.  **Big George Foreman** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n28.  **Asterix & Obelix: The Middle Kingdom** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n29.  **Ant-Man and the Wasp: Quantumania** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n30.  **Transformers: Rise of the Beasts** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n31.  **Follow Her** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n32.  **Prom Pact** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n33.  **God Is a Bullet** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n34.  **Still: A Michael J. Fox Movie** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n35.  **Nefarious** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n36.  **Nanny Dearest** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n37.  **Monica** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n38.  **Wild Life** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n39.  **Palm Trees and Power Lines** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n40.  **What's Love Got to Do with It?** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n41.  **Creed III** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n42.  **One True Loves** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n43.  **BlackBerry** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n44.  **Suzume** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n45.  **Rock Dog 3: Battle the Beat** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n46.  **Gridman Universe** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n47.  **Digimon Adventure 02: The Beginning** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n48.  **Woman of the Photographs** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n49.  **El Tonto** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n50.  **Seriously Red** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n\\nI hope this helps! Let me know if you have any other questions.\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Can you tell me how many movies you've told me about?\"\r\n    }\r\n], conversation_style=\"Balanced\", markdown=False, stream=False)\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"model\": \"Bing\",\r\n    \"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?\"\r\n    \"original:\": null\r\n}\r\n```\r\n\r\n## Usage Bing Streaming\r\n\r\n```python\r\nimport json\r\nfrom gpti import bing\r\n\r\nres = bing(messages=[\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello! How can I help you today? \ud83d\ude0a\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Hi, tell me the names of the movies released in 2023.\"\r\n    },\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Certainly! Here are some movies that were released in 2023:\\n\\n1.  **About My Father** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n2.  **The Little Mermaid** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n3.  **Fast X** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n4.  **Spider-Man: Across the Spider-Verse** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n5.  **The Machine** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n6.  **Book Club: The Next Chapter** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n7.  **Guardians of the Galaxy Vol. 3** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n8.  **John Wick: Chapter 4** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n9.  **Are You There God? It's Me, Margaret** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n10.  **Evil Dead Rise** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n11.  **The Super Mario Bros. Movie** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n12.  **Love Again** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n13.  **Kandahar** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n14.  **Dungeons & Dragons: Honor Among Thieves** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n15.  **Shin Kamen Rider** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n16.  **Knights of the Zodiac** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n17.  **The Pope's Exorcist** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n18.  **Shazam! Fury of the Gods** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n19.  **All That Breathes** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n20.  **Sailor Moon Cosmos** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n21.  **Hypnotic** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n22.  **Sound of Freedom** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n23.  **The Boogeyman** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n24.  **Chicken Run: Dawn of the Nugget** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n25.  **A Lot of Nothing** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n26.  **Followers** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n27.  **Big George Foreman** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n28.  **Asterix & Obelix: The Middle Kingdom** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n29.  **Ant-Man and the Wasp: Quantumania** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n30.  **Transformers: Rise of the Beasts** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n31.  **Follow Her** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n32.  **Prom Pact** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n33.  **God Is a Bullet** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n34.  **Still: A Michael J. Fox Movie** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n35.  **Nefarious** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n36.  **Nanny Dearest** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n37.  **Monica** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n38.  **Wild Life** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n39.  **Palm Trees and Power Lines** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n40.  **What's Love Got to Do with It?** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n41.  **Creed III** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n42.  **One True Loves** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n43.  **BlackBerry** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n44.  **Suzume** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n45.  **Rock Dog 3: Battle the Beat** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n46.  **Gridman Universe** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n47.  **Digimon Adventure 02: The Beginning** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n48.  **Woman of the Photographs** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n49.  **El Tonto** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n50.  **Seriously Red** [^1^](https://editorial.rottentomatoes.com/guide/best-movies-of-2023/)\\n\\nI hope this helps! Let me know if you have any other questions.\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Can you tell me how many movies you've told me about?\"\r\n    }\r\n], conversation_style=\"Balanced\", markdown=False, stream=True)\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    for chunk in res.stream():\r\n        print(json.dumps(chunk))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\"message\": \"I\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about \\\\*\\\\*\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about \\\\*\\\\*50\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about \\\\*\\\\*50 movies\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies**\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 202\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023.\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can help\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can help you\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": \"I have told you about **50 movies** that were released in 2023. Is there anything else I can help you with?\", \"original\": null, \"finish\": false, \"error\": false}\r\n{\"message\": null, \"original\": null, \"finish\": true, \"error\": false}\r\n```\r\n\r\n#### Parameters\r\n\r\n| Parameter          | Default  | Description                                                                                             |\r\n|--------------------|----------|---------------------------------------------------------------------------------------------------------|\r\n| conversation_style | Balanced | You can use between: \"Balanced\", \"Creative\" and \"Precise\"                                               |\r\n| markdown           | false    | You can convert the dialogues into continuous streams or not into Markdown                                |\r\n| stream             | false    | You are given the option to choose whether you prefer the responses to be in real-time or not            |\r\n\r\n<a id=\"llama2\"></a>\r\n## Usage LLaMA-2\r\n\r\n```python\r\nimport json\r\nfrom gpti import llama2\r\n\r\nres = llama2(messages=[\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello! How are you?\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Hello! How are you? Could you tell me your name?\"\r\n    }\r\n], data={\r\n    \"system_message\": \"\",\r\n    \"temperature\": 0.9,\r\n    \"max_tokens\": 4096,\r\n    \"top_p\": 0.6,\r\n    \"repetition_penalty\": 1.2,\r\n}, markdown=False, stream=False)\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse: \r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"model\": \"LLaMA2\",\r\n    \"message\": \"Sure, my name is LLaMA. I'm doing well, thanks for asking! Is there anything else you would like to chat about or ask me?\",\r\n    \"original\": null\r\n}\r\n```\r\n\r\n## Usage LLaMA-2 Streaming\r\n\r\n```python\r\nimport json\r\nfrom gpti import llama2\r\n\r\nres = llama2(messages=[\r\n    {\r\n        \"role\": \"assistant\",\r\n        \"content\": \"Hello! How are you?\"\r\n    },\r\n    {\r\n        \"role\": \"user\",\r\n        \"content\": \"Hello! How are you? Could you tell me your name?\"\r\n    }\r\n], data={\r\n    \"system_message\": \"\",\r\n    \"temperature\": 0.9,\r\n    \"max_tokens\": 4096,\r\n    \"top_p\": 0.6,\r\n    \"repetition_penalty\": 1.2,\r\n}, markdown=False, stream=True)\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse: \r\n    for chunk in res.stream():\r\n        print(json.dumps(chunk))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\"message\":\"Hello\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello!\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well,\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking.\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is L\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLa\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA,\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of research\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta A\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI.\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you?\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings you\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings you here\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings you here today\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":\"Hello! I'm doing well, thanks for asking. My name is LLaMA, I'm a large language model trained by a team of researcher at Meta AI. How about you? What brings you here today?\",\"original\":null,\"finish\":false,\"error\":false}\r\n{\"message\":null,\"original\":null,\"finish\":true,\"error\":false}\r\n```\r\n\r\n#### Parameters\r\n\r\n| Parameter         | Default | Description                                                       |\r\n|-------------------|---------|-------------------------------------------------------------------|\r\n| system_message    |         | Explain what specific task you want the artificial intelligence to perform |\r\n| max_tokens        | 4096    | Min: 0, Max: 4096                                                |\r\n| temperature       | 0.9     | Min: 0, Max: 1                                                 |\r\n| top_p             | 0.6     | Min: 0, Max: 1                                                 |\r\n| repetition_penalty| 1.2     | Min: 1, Max: 2                                                   |\r\n| markdown          | false   | You can convert the dialogues into continuous streams or not into Markdown |\r\n| stream            | false   | You are given the option to choose whether you prefer the responses to be in real-time or not |\r\n\r\n<a id=\"dalle\"></a>\r\n## Usage DALL\u00b7E\r\n\r\n```python\r\nimport json\r\nfrom gpti import dalle\r\n\r\nres = dalle.v1(prompt=\"starry sky over the city\")\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"starry sky over the city\",\r\n    \"model\": \"DALL\u00b7E\",\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n<a id=\"dalle2\"></a>\r\n## Usage DALL\u00b7E 2 (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import dalle\r\n\r\nres = dalle.v2(prompt=\"An extensive green valley stretches toward imposing mountains, adorned with meadows and a winding stream. The morning sun paints the sky with warm tones, illuminating the landscape with a serenity that invites contemplation and peace.\", data={\r\n    \"gpu\": False,\r\n    \"prompt_improvement\": False\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse: \r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An extensive green valley stretches toward imposing mountains, adorned with meadows and a winding stream. The morning sun paints the sky with warm tones, illuminating the landscape with a serenity that invites contemplation and peace.\",\r\n    \"model\": \"DALL\u00b7E-2\",\r\n    \"data\": {\r\n        \"gpu\": false,\r\n        \"prompt_improvement\": false\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\",\r\n        \"...\"\r\n    ]\r\n}\r\n```\r\n\r\n<a id=\"dalle-mini\"></a>\r\n## Usage DALL\u00b7E Mini\r\n\r\n```python\r\nimport json\r\nfrom gpti import dalle\r\n\r\nres = dalle.mini(prompt=\"An extensive green valley stretches toward imposing mountains, adorned with meadows and a winding stream. The morning sun paints the sky with warm tones, illuminating the landscape with a serenity that invites contemplation and peace.\")\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An extensive green valley stretches toward imposing mountains, adorned with meadows and a winding stream. The morning sun paints the sky with warm tones, illuminating the landscape with a serenity that invites contemplation and peace.\",\r\n    \"model\": \"DALL\u00b7E-mini\",\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\",\r\n        \"...\"\r\n    ]\r\n}\r\n```\r\n\r\n<a id=\"prodia\"></a>\r\n## Usage Prodia\r\n\r\n```python\r\nimport json\r\nfrom gpti import prodia\r\n\r\nres = prodia.v1(prompt=\"Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.\", data={\r\n    \"model\": \"absolutereality_V16.safetensors [37db0fc3]\",\r\n    \"steps\": 25,\r\n    \"cfg_scale\": 7,\r\n    \"sampler\": \"DPM++ 2M Karras\",\r\n    \"negative_prompt\": \"\"\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.\",\r\n    \"model\": \"Prodia\",\r\n    \"data\": {\r\n        \"model\": \"absolutereality_V16.safetensors [37db0fc3]\",\r\n        \"steps\": 25,\r\n        \"cfg_scale\": 7,\r\n        \"sampler\": \"DPM++ 2M Karras\",\r\n        \"negative_prompt\": \"\"\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n#### Models\r\n\r\nList of models\r\n\r\n- 3Guofeng3_v34.safetensors [50f420de]\r\n- absolutereality_V16.safetensors [37db0fc3]\r\n- absolutereality_v181.safetensors [3d9d4d2b]\r\n- amIReal_V41.safetensors [0a8a2e61]\r\n- analog-diffusion-1.0.ckpt [9ca13f02]\r\n- anythingv3_0-pruned.ckpt [2700c435]\r\n- anything-v4.5-pruned.ckpt [65745d25]\r\n- anythingV5_PrtRE.safetensors [893e49b9]\r\n- AOM3A3_orangemixs.safetensors [9600da17]\r\n- blazing_drive_v10g.safetensors [ca1c1eab]\r\n- breakdomain_I2428.safetensors [43cc7d2f]\r\n- breakdomain_M2150.safetensors [15f7afca]\r\n- cetusMix_Version35.safetensors [de2f2560]\r\n- childrensStories_v13D.safetensors [9dfaabcb]\r\n- childrensStories_v1SemiReal.safetensors [a1c56dbb]\r\n- childrensStories_v1ToonAnime.safetensors [2ec7b88b]\r\n- Counterfeit_v30.safetensors [9e2a8f19]\r\n- cuteyukimixAdorable_midchapter3.safetensors [04bdffe6]\r\n- cyberrealistic_v33.safetensors [82b0d085]\r\n- dalcefo_v4.safetensors [425952fe]\r\n- deliberate_v2.safetensors [10ec4b29]\r\n- deliberate_v3.safetensors [afd9d2d4]\r\n- dreamlike-anime-1.0.safetensors [4520e090]\r\n- dreamlike-diffusion-1.0.safetensors [5c9fd6e0]\r\n- dreamlike-photoreal-2.0.safetensors [fdcf65e7]\r\n- dreamshaper_6BakedVae.safetensors [114c8abb]\r\n- dreamshaper_7.safetensors [5cf5ae06]\r\n- dreamshaper_8.safetensors [9d40847d]\r\n- edgeOfRealism_eorV20.safetensors [3ed5de15]\r\n- EimisAnimeDiffusion_V1.ckpt [4f828a15]\r\n- elldreths-vivid-mix.safetensors [342d9d26]\r\n- epicphotogasm_xPlusPlus.safetensors [1a8f6d35]\r\n- epicrealism_naturalSinRC1VAE.safetensors [90a4c676]\r\n- epicrealism_pureEvolutionV3.safetensors [42c8440c]\r\n- ICantBelieveItsNotPhotography_seco.safetensors [4e7a3dfd]\r\n- indigoFurryMix_v75Hybrid.safetensors [91208cbb]\r\n- juggernaut_aftermath.safetensors [5e20c455]\r\n- lofi_v4.safetensors [ccc204d6]\r\n- lyriel_v16.safetensors [68fceea2]\r\n- majicmixRealistic_v4.safetensors [29d0de58]\r\n- mechamix_v10.safetensors [ee685731]\r\n- meinamix_meinaV9.safetensors [2ec66ab0]\r\n- meinamix_meinaV11.safetensors [b56ce717]\r\n- neverendingDream_v122.safetensors [f964ceeb]\r\n- openjourney_V4.ckpt [ca2f377f]\r\n- pastelMixStylizedAnime_pruned_fp16.safetensors [793a26e8]\r\n- portraitplus_V1.0.safetensors [1400e684]\r\n- protogenx34.safetensors [5896f8d5]\r\n- Realistic_Vision_V1.4-pruned-fp16.safetensors [8d21810b]\r\n- Realistic_Vision_V2.0.safetensors [79587710]\r\n- Realistic_Vision_V4.0.safetensors [29a7afaa]\r\n- Realistic_Vision_V5.0.safetensors [614d1063]\r\n- redshift_diffusion-V10.safetensors [1400e684]\r\n- revAnimated_v122.safetensors [3f4fefd9]\r\n- rundiffusionFX25D_v10.safetensors [cd12b0ee]\r\n- rundiffusionFX_v10.safetensors [cd4e694d]\r\n- sdv1_4.ckpt [7460a6fa]\r\n- v1-5-pruned-emaonly.safetensors [d7049739]\r\n- v1-5-inpainting.safetensors [21c7ab71]\r\n- shoninsBeautiful_v10.safetensors [25d8c546]\r\n- theallys-mix-ii-churned.safetensors [5d9225a4]\r\n- timeless-1.0.ckpt [7c4971d4]\r\n- toonyou_beta6.safetensors [980f6b15]\r\n\r\n#### Parameters\r\n\r\n| Parameter       | Default                          | Description                           |\r\n|-----------------|----------------------------------|---------------------------------------|\r\n| negative_prompt |                                  | Indicates what the AI should not do   |\r\n| model           | absolutereality_V16.safetensors [37db0fc3] | Select from the list of models |\r\n| cfg_scale       | 7                                | Min: 0, Max: 20                       |\r\n| steps           | 25                               | Min: 1, Max: 30                       |\r\n| sampler         | DPM++ 2M Karras                  | Select from these: \"Euler\",\"Euler a\",\"Heun\",\"DPM++ 2M Karras\",\"DPM++ SDE Karras\",\"DDIM\" |\r\n\r\n<a id=\"prodia-stablediffusion\"></a>\r\n## Usage Prodia Stable-Diffusion\r\n\r\n```python\r\nimport json\r\nfrom gpti import prodia\r\n\r\nres = prodia.stablediffusion(prompt=\"Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.\", data={\r\n    \"prompt_negative\": \"\",\r\n    \"model\": \"absolutereality_v181.safetensors [3d9d4d2b]\",\r\n    \"sampling_method\": \"DPM++ 2M Karras\",\r\n    \"sampling_steps\": 25,\r\n    \"width\": 512,\r\n    \"height\": 512,\r\n    \"cfg_scale\": 7\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.\",\r\n    \"model\": \"Prodia-StableDiffusion\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\",\r\n        \"model\": \"absolutereality_v181.safetensors [3d9d4d2b]\",\r\n        \"sampling_method\": \"DPM++ 2M Karras\",\r\n        \"sampling_steps\": 25,\r\n        \"width\": 512,\r\n        \"height\": 512,\r\n        \"cfg_scale\": 7\r\n    }\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n#### Models\r\n\r\nList of models\r\n\r\n- 3Guofeng3_v34.safetensors [50f420de]\r\n- absolutereality_V16.safetensors [37db0fc3]\r\n- absolutereality_v181.safetensors [3d9d4d2b]\r\n- amIReal_V41.safetensors [0a8a2e61]\r\n- analog-diffusion-1.0.ckpt [9ca13f02]\r\n- anythingv3_0-pruned.ckpt [2700c435]\r\n- anything-v4.5-pruned.ckpt [65745d25]\r\n- anythingV5_PrtRE.safetensors [893e49b9]\r\n- AOM3A3_orangemixs.safetensors [9600da17]\r\n- blazing_drive_v10g.safetensors [ca1c1eab]\r\n- breakdomain_I2428.safetensors [43cc7d2f]\r\n- breakdomain_M2150.safetensors [15f7afca]\r\n- cetusMix_Version35.safetensors [de2f2560]\r\n- childrensStories_v13D.safetensors [9dfaabcb]\r\n- childrensStories_v1SemiReal.safetensors [a1c56dbb]\r\n- childrensStories_v1ToonAnime.safetensors [2ec7b88b]\r\n- Counterfeit_v30.safetensors [9e2a8f19]\r\n- cuteyukimixAdorable_midchapter3.safetensors [04bdffe6]\r\n- cyberrealistic_v33.safetensors [82b0d085]\r\n- dalcefo_v4.safetensors [425952fe]\r\n- deliberate_v2.safetensors [10ec4b29]\r\n- deliberate_v3.safetensors [afd9d2d4]\r\n- dreamlike-anime-1.0.safetensors [4520e090]\r\n- dreamlike-diffusion-1.0.safetensors [5c9fd6e0]\r\n- dreamlike-photoreal-2.0.safetensors [fdcf65e7]\r\n- dreamshaper_6BakedVae.safetensors [114c8abb]\r\n- dreamshaper_7.safetensors [5cf5ae06]\r\n- dreamshaper_8.safetensors [9d40847d]\r\n- edgeOfRealism_eorV20.safetensors [3ed5de15]\r\n- EimisAnimeDiffusion_V1.ckpt [4f828a15]\r\n- elldreths-vivid-mix.safetensors [342d9d26]\r\n- epicphotogasm_xPlusPlus.safetensors [1a8f6d35]\r\n- epicrealism_naturalSinRC1VAE.safetensors [90a4c676]\r\n- epicrealism_pureEvolutionV3.safetensors [42c8440c]\r\n- ICantBelieveItsNotPhotography_seco.safetensors [4e7a3dfd]\r\n- indigoFurryMix_v75Hybrid.safetensors [91208cbb]\r\n- juggernaut_aftermath.safetensors [5e20c455]\r\n- lofi_v4.safetensors [ccc204d6]\r\n- lyriel_v16.safetensors [68fceea2]\r\n- majicmixRealistic_v4.safetensors [29d0de58]\r\n- mechamix_v10.safetensors [ee685731]\r\n- meinamix_meinaV9.safetensors [2ec66ab0]\r\n- meinamix_meinaV11.safetensors [b56ce717]\r\n- neverendingDream_v122.safetensors [f964ceeb]\r\n- openjourney_V4.ckpt [ca2f377f]\r\n- pastelMixStylizedAnime_pruned_fp16.safetensors [793a26e8]\r\n- portraitplus_V1.0.safetensors [1400e684]\r\n- protogenx34.safetensors [5896f8d5]\r\n- Realistic_Vision_V1.4-pruned-fp16.safetensors [8d21810b]\r\n- Realistic_Vision_V2.0.safetensors [79587710]\r\n- Realistic_Vision_V4.0.safetensors [29a7afaa]\r\n- Realistic_Vision_V5.0.safetensors [614d1063]\r\n- redshift_diffusion-V10.safetensors [1400e684]\r\n- revAnimated_v122.safetensors [3f4fefd9]\r\n- rundiffusionFX25D_v10.safetensors [cd12b0ee]\r\n- rundiffusionFX_v10.safetensors [cd4e694d]\r\n- sdv1_4.ckpt [7460a6fa]\r\n- v1-5-pruned-emaonly.safetensors [d7049739]\r\n- v1-5-inpainting.safetensors [21c7ab71]\r\n- shoninsBeautiful_v10.safetensors [25d8c546]\r\n- theallys-mix-ii-churned.safetensors [5d9225a4]\r\n- timeless-1.0.ckpt [7c4971d4]\r\n- toonyou_beta6.safetensors [980f6b15]\r\n\r\n#### Methods\r\n\r\nList of methods:\r\n\r\n- DPM++ 2M Karras\r\n- Euler\r\n- Euler a\r\n- LMS\r\n- Heun\r\n- DPM2\r\n- DPM2 a\r\n- DPM++ 2S a\r\n- DPM++ 2M\r\n- DPM++ SDE\r\n- DPM fast\r\n- DPM adaptive\r\n- LMS Karras\r\n- DPM2 Karras\r\n- DPM2 a Karras\r\n- DPM++ 2S a Karras\r\n- DPM++ 2M Karras\r\n- DPM++ SDE Karras\r\n- DDIM\r\n- PLMS\r\n- DPM++ 2M Karras\r\n\r\n#### Parameters\r\n\r\n| Parameter        | Default                               | Description                              |\r\n|------------------|---------------------------------------|------------------------------------------|\r\n| prompt_negative  |                                       | Indicates what the AI should not do       |\r\n| model            | absolutereality_v181.safetensors [3d9d4d2b] | Select from the list of models     |\r\n| sampling_method  | DPM++ 2M Karras                       | Select from the list of methods          |\r\n| sampling_steps   | 25                                    | Min: 1, Max: 30                          |\r\n| width            | 512                                   | Min: 50, Max: 1024                       |\r\n| height           | 512                                   | Min: 50, Max: 1024                       |\r\n| cfg_scale        | 7                                     | Min: 1, Max: 20                          |\r\n\r\n<a id=\"prodia-stablediffusion-xl\"></a>\r\n## Usage Prodia Stable-Diffusion XL (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import prodia\r\n\r\nres = prodia.stablediffusion_xl(prompt=\"Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.\", data={\r\n    \"prompt_negative\": \"\",\r\n    \"model\": \"sd_xl_base_1.0.safetensors [be9edd61]\",\r\n    \"sampling_method\": \"DPM++ 2M Karras\",\r\n    \"sampling_steps\": 25,\r\n    \"width\": 1024,\r\n    \"height\": 1024,\r\n    \"cfg_scale\": 7\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.\",\r\n    \"model\": \"Prodia-StableDiffusion-xl\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\",\r\n        \"model\": \"sd_xl_base_1.0.safetensors [be9edd61]\",\r\n        \"sampling_method\": \"DPM++ 2M Karras\",\r\n        \"sampling_steps\": 25,\r\n        \"width\": 1024,\r\n        \"height\": 1024,\r\n        \"cfg_scale\": 7\r\n    }\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n#### Models\r\n\r\nList of models:\r\n\r\n- dreamshaperXL10_alpha2.safetensors [c8afe2ef]\r\n- dynavisionXL_0411.safetensors [c39cc051]\r\n- juggernautXL_v45.safetensors [e75f5471]\r\n- realismEngineSDXL_v10.safetensors [af771c3f]\r\n- sd_xl_base_1.0.safetensors [be9edd61]\r\n- sd_xl_base_1.0_inpainting_0.1.safetensors [5679a81a]\r\n- turbovisionXL_v431.safetensors [78890989]\r\n\r\n#### Methods\r\n\r\nList of methods:\r\n\r\n- DPM++ 2M Karras\r\n- Euler\r\n- Euler a\r\n- LMS\r\n- Heun\r\n- DPM2\r\n- DPM2 a\r\n- DPM++ 2S a\r\n- DPM++ 2M\r\n- DPM++ SDE\r\n- DPM fast\r\n- DPM adaptive\r\n- LMS Karras\r\n- DPM2 Karras\r\n- DPM2 a Karras\r\n- DPM++ 2S a Karras\r\n- DPM++ SDE Karras\r\n\r\n#### Parameters\r\n\r\n| Parameter        | Default                          | Description                              |\r\n|------------------|----------------------------------|------------------------------------------|\r\n| prompt_negative  |                                  | Indicates what the AI should not do       |\r\n| model            | sd_xl_base_1.0.safetensors [be9edd61] | Select from the list of models     |\r\n| sampling_method  | DPM++ 2M Karras                  | Select from the list of methods          |\r\n| sampling_steps   | 25                               | Min: 1, Max: 30                          |\r\n| width            | 1024                             | Min: 512, Max: 1536                      |\r\n| height           | 1024                             | Min: 512, Max: 1536                      |\r\n| cfg_scale        | 7                                | Min: 1, Max: 20                          |\r\n\r\n<a id=\"pixart-a\"></a>\r\n## Usage Pixart-A (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import pixart\r\n\r\nres = pixart.a(prompt=\"An urban landscape bathed in the sunset, where the warm tones of the sun reflect on modern buildings and the orange and purple sky. In the foreground, there's a group of friends gathered on a rooftop, laughing and enjoying the moment. Their expressions radiate joy and camaraderie as they embrace and point towards something on the horizon. The scene is enveloped in a nostalgic and emotional aura that conveys the beauty of friendship and the warmth of the sunset in a futuristic city with touches of anime style.\", data={\r\n    \"prompt_negative\": \"\",\r\n    \"sampler\": \"DPM-Solver\",\r\n    \"image_style\": \"Anime\",\r\n    \"width\": 1024,\r\n    \"height\": 1024,\r\n    \"dpm_guidance_scale\": 4.5,\r\n    \"dpm_inference_steps\": 14,\r\n    \"sa_guidance_scale\": 3,\r\n    \"sa_inference_steps\": 25\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An urban landscape bathed in the sunset, where the warm tones of the sun reflect on modern buildings and the orange and purple sky. In the foreground, there's a group of friends gathered on a rooftop, laughing and enjoying the moment. Their expressions radiate joy and camaraderie as they embrace and point towards something on the horizon. The scene is enveloped in a nostalgic and emotional aura that conveys the beauty of friendship and the warmth of the sunset in a futuristic city with touches of anime style.\",\r\n    \"model\": \"PixArt-a\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\",\r\n        \"sampler\": \"DPM-Solver\",\r\n        \"image_style\": \"Anime\",\r\n        \"width\": 1024,\r\n        \"height\": 1024,\r\n        \"dpm_guidance_scale\": 4.5,\r\n        \"dpm_inference_steps\": 14,\r\n        \"sa_guidance_scale\": 3,\r\n        \"sa_inference_steps\": 25\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n#### Parameters\r\n\r\n| Parameter            | Default      | Description                                           |\r\n|----------------------|--------------|-------------------------------------------------------|\r\n| prompt_negative      |              | Indicates what the AI should not do                   |\r\n| sampler              | DPM-Solver   | Choose among these: \"DPM-Solver\", \"SA-Solver\" |\r\n| image_style          | (No style)   | Choose from various available image types: \"(No style)\", \"Cinematic\", \"Photographic\", \"Anime\", \"Manga\", \"Digital Art\", \"Pixel art\", \"Fantasy art\", \"Neonpunk\", \"3D Model\" |\r\n| width                | 1024         | Min: 256, Max: 2048                                  |\r\n| height               | 1024         | Min: 256, Max: 2048                                  |\r\n| dpm_guidance_scale   | 4.5          | Min: 1, Max: 10                                      |\r\n| dpm_inference_steps  | 14           | Min: 5, Max: 40                                      |\r\n| sa_guidance_scale    | 3            | Min: 1, Max: 10                                      |\r\n| sa_inference_steps   | 25           | Min: 10, Max: 40                                     |\r\n\r\n<a id=\"pixart-lcm\"></a>\r\n## Usage Pixart-LCM (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import pixart\r\n\r\nres = pixart.lcm(prompt=\"An urban landscape bathed in the sunset, where the warm tones of the sun reflect on modern buildings and the orange and purple sky. In the foreground, there's a group of friends gathered on a rooftop, laughing and enjoying the moment. Their expressions radiate joy and camaraderie as they embrace and point towards something on the horizon. The scene is enveloped in a nostalgic and emotional aura that conveys the beauty of friendship and the warmth of the sunset in a futuristic city with touches of anime style.\", data={\r\n    \"prompt_negative\": \"\",\r\n    \"image_style\": \"Fantasy art\",\r\n    \"width\": 1024,\r\n    \"height\": 1024,\r\n    \"lcm_inference_steps\": 9\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An enchanted forest with twisted trees, a waterfall cascading into a pond of bright water lilies, and in the background, a magical tower surrounded by mythical creatures like unicorns, fairies, and dragons, under a starry sky and a giant moon.\",\r\n    \"model\": \"PixArt-LCM\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\",\r\n        \"image_style\": \"Fantasy art\",\r\n        \"width\": 1024,\r\n        \"height\": 1024,\r\n        \"lcm_inference_steps\": 9\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n#### Parameters\r\n\r\n| Parameter             | Default    | Description                                                                                   |\r\n|-----------------------|------------|-----------------------------------------------------------------------------------------------|\r\n| prompt_negative       |            | Indicates what the AI should not do                                                           |\r\n| image_style           | (No style) | Choose from various available image types: \"(No style)\", \"Cinematic\", \"Photographic\", \"Anime\", \"Manga\", \"Digital Art\", \"Pixel art\", \"Fantasy art\", \"Neonpunk\", \"3D Model\" |\r\n| width                 | 1024       | Min: 256, Max: 2048                                                                          |\r\n| height                | 1024       | Min: 256, Max: 2048                                                                          |\r\n| lcm_inference_steps   | 9          | Min: 1, Max: 30                                                                              |\r\n\r\n<a id=\"stablediffusion-1.5\"></a>\r\n## Usage Stable-Diffusion 1.5\r\n\r\n```python\r\nimport json\r\nfrom gpti import stablediffusion\r\n\r\nres = stablediffusion.v1(prompt=\"An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.\")\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.\",\r\n    \"model\": \"StableDiffusion-1.5\",\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\",\r\n        \"...\"\r\n    ]\r\n}\r\n```\r\n\r\n<a id=\"stablediffusion-2.1\"></a>\r\n## Usage Stable-Diffusion 2.1\r\n\r\n```python\r\nimport json\r\nfrom gpti import stablediffusion\r\n\r\nres = stablediffusion.v2(prompt=\"An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.\", data={\r\n    \"prompt_negative\": \"\",\r\n    \"guidance_scale\": 9\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.\",\r\n    \"model\": \"StableDiffusion-2.1\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\",\r\n        \"guidance_scale\": 9\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\",\r\n        \"...\"\r\n    ]\r\n}\r\n```\r\n\r\n#### Parameters\r\n\r\n| Parameter         | Default | Description                           |\r\n|-------------------|---------|---------------------------------------|\r\n| prompt_negative   |         | Indicates what the AI should not do    |\r\n| guidance_scale    | 9       | Min: 0 Max: 50                        |\r\n\r\n<a id=\"stablediffusion-xl\"></a>\r\n## Usage Stable-Diffusion XL (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import stablediffusion\r\n\r\nres = stablediffusion.xl(prompt=\"An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.\", data={\r\n    \"prompt_negative\": \"\",\r\n    \"image_style\": \"(No style)\",\r\n    \"guidance_scale\": 7.5\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An serene sunset landscape where a river winds through gentle hills covered in trees. The sky is tinged with warm and soft tones, with scattered clouds reflecting the last glimmers of the sun.\",\r\n    \"model\": \"StableDiffusion-XL\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\",\r\n        \"image_style\": \"(No style)\",\r\n        \"guidance_scale\": 7.5\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\",\r\n        \"...\"\r\n    ]\r\n}\r\n```\r\n\r\n#### Parameters\r\n\r\n| Parameter         | Default      | Description                                                                                             |\r\n|-------------------|--------------|---------------------------------------------------------------------------------------------------------|\r\n| prompt_negative   |              | Indicates what the AI should not do                                                                    |\r\n| image_style       | (No style)    | Choose from various available image types: \"(No style)\", \"Cinematic\", \"Photographic\", \"Anime\", \"Manga\", \"Digital Art\", \"Pixel art\", \"Fantasy art\", \"Neonpunk\", \"3D Model\" |\r\n| guidance_scale    | 7.5            | Min: 0, Max: 50                                                                                        |\r\n\r\n<a id=\"emi\"></a>\r\n## Usage EMI\r\n\r\n```python\r\nimport json\r\nfrom gpti import emi\r\n\r\nres = emi(prompt=\"A beautiful girl in a garden full of bright flowers. Her long, silky hair is adorned with flowers, and her large eyes reflect serenity. She wears a traditional kimono, smiling as she holds a delicate butterfly in her hand.\")\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"A beautiful girl in a garden full of bright flowers. Her long, silky hair is adorned with flowers, and her large eyes reflect serenity. She wears a traditional kimono, smiling as she holds a delicate butterfly in her hand.\",\r\n    \"model\": \"Emi\",\r\n    \"scene\": \"a young woman stands in a beautiful garden, full of vibrant flowers. Her long, flowing silk kimono is adorned with the same flowers, and her large, expressive eyes seem to reflect a sense of peaceful serenity. In her hand, she clutches a delicate butterfly, which seems to be caught up in the beauty of the moment. She is surrounded\",\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n<a id=\"render3d\"></a>\r\n## Usage Render3D (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import render3d\r\n\r\nres = render3d(prompt=\"In a remote corner of the galaxy, a star agonizes in its final stage of life. Its brightness, once dazzling, now fades slowly into the void of space, while a bright nebula forms around it.\", data={\r\n    \"prompt_negative\": \"\"\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"In a remote corner of the galaxy, a star agonizes in its final stage of life. Its brightness, once dazzling, now fades slowly into the void of space, while a bright nebula forms around it.\",\r\n    \"model\": \"Render3D\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\"\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n<a id=\"pixelart\"></a>\r\n## Usage PixelArt (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import pixelart\r\n\r\nres = pixelart(prompt=\"A coastal city in the golden hour of the sunset. The sun slowly slips toward the horizon, tinting the sky with golden and pink hues. Skyscrapers stand out against this heavenly backdrop, reflecting the light in their glass windows. In the streets, lights flicker timidly, getting ready to illuminate the night.\", data={\r\n    \"prompt_negative\": \"\"\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"A coastal city in the golden hour of the sunset. The sun slowly slips toward the horizon, tinting the sky with golden and pink hues. Skyscrapers stand out against this heavenly backdrop, reflecting the light in their glass windows. In the streets, lights flicker timidly, getting ready to illuminate the night.\",\r\n    \"model\": \"PixelArt\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\"\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n<a id=\"animagine-xl\"></a>\r\n## Usage Animagine-XL (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import animagine\r\n\r\nres = animagine(prompt=\"An anime girl surrounded by cherry blossoms\", data={\r\n    \"prompt_negative\": \"\",\r\n    \"quality_tags\": \"Standard\",\r\n    \"style_present\": \"(None)\",\r\n    \"width\": 1024,\r\n    \"height\": 1024,\r\n    \"strength\": 0.5,\r\n    \"upscale\": 1.5,\r\n    \"sampler\": \"Euler a\",\r\n    \"guidance_scale\": 7,\r\n    \"inference_steps\": 28\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An anime girl surrounded by cherry blossoms\",\r\n    \"model\": \"Animagine-XL\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\",\r\n        \"quality_tags\": \"Standard\",\r\n        \"style_present\": \"(None)\",\r\n        \"width\": 1024,\r\n        \"height\": 1024,\r\n        \"strength\": 0.5,\r\n        \"upscale\": 1.5,\r\n        \"sampler\": \"Euler a\",\r\n        \"guidance_scale\": 7,\r\n        \"inference_steps\": 28\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n<a id=\"playground\"></a>\r\n## Usage Playground (PRO)\r\n\r\n```python\r\nimport json\r\nfrom gpti import playground\r\n\r\nres = playground(prompt=\"An illustration of a red owl with bright blue eye\", data={\r\n    \"prompt_negative\": \"\",\r\n    \"width\": 1024,\r\n    \"height\": 1024,\r\n    \"guidance_scale\": 3\r\n})\r\n\r\nif res.error != None:\r\n    print(json.dumps(res.error))\r\nelse:\r\n    print(json.dumps(res.result))\r\n```\r\n\r\n#### JSON\r\n\r\n```json\r\n{\r\n    \"code\": 200,\r\n    \"status\": true,\r\n    \"prompt\": \"An illustration of a red owl with bright blue eyes.\",\r\n    \"model\": \"Playground\",\r\n    \"data\": {\r\n        \"prompt_negative\": \"\",\r\n        \"width\": 1024,\r\n        \"height\": 1024,\r\n        \"guidance_scale\": 3\r\n    },\r\n    \"images\": [\r\n        \"data:image/jpeg;base64,...\"\r\n    ]\r\n}\r\n```\r\n\r\n## API Reference\r\n\r\nCurrently, some models require your credentials to access them, while others are free. For more details and examples, please refer to the complete [documentation](https://nexra.aryahcr.cc/).\r\n\r\n#### Code Errors\r\n\r\nThese are the error codes that will be presented in case the API fails.\r\n\r\n| Code | Error                  | Description                                           |\r\n|------|------------------------|-------------------------------------------------------|\r\n| 400  | BAD_REQUEST            | Not all parameters have been entered correctly        |\r\n| 500  | INTERNAL_SERVER_ERROR  | The server has experienced failures                   |\r\n| 200  |                        | The API worked without issues                          |\r\n| 403  | FORBIDDEN              | Your API key has expired and needs to be renewed      |\r\n| 401  | UNAUTHORIZED           | API credentials are required                          |\r\n\r\n\r\n## \u2615 Do you want to support this project?\r\n\r\nIf this package has helped you save time or solve a problem, consider inviting me for a coffee through Ko-fi. Your support helps me maintain and improve this project for you and other users like you. Furthermore, each donation contributes to the creation and free availability of more AI models in the future. Every small donation counts and is greatly appreciated!\r\n\r\n[![Support on Ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/yandricr)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "This package simplifies your interaction with various GPT models, removing the need for tokens or other methods to access GPT",
    "version": "2.0",
    "project_urls": {
        "Documentation": "https://nexra.aryahcr.cc/",
        "Funding": "https://ko-fi.com/yandricr",
        "Homepage": "https://github.com/yandricr/gpti-py/",
        "Source": "https://github.com/yandricr/gpti-py/"
    },
    "split_keywords": [
        "gpt",
        "gpt-3",
        "gpt-3.5",
        "gpt-4",
        "gpti",
        "gpt-free",
        "ai",
        "generate-image",
        "prodia",
        "bing",
        "chat",
        "stream",
        "dalle",
        "dalle-2",
        "llama-2",
        "stable-diffusion",
        "pixart",
        "emi",
        "render3d",
        "pixel-art",
        "playground",
        "animagine-xl"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "932a19a8f21b4cba60bd113a63cdbe477ad984b561cb9160e05fde7c9d8ff54b",
                "md5": "4ab7fe52faa0f8920c19592c2d8def10",
                "sha256": "18baa7de5d92300210b8cb32f24b02052c0ea9f238e6b390d544c0ecd47b3dc9"
            },
            "downloads": -1,
            "filename": "gpti-2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4ab7fe52faa0f8920c19592c2d8def10",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 18124,
            "upload_time": "2024-04-27T17:59:54",
            "upload_time_iso_8601": "2024-04-27T17:59:54.237771Z",
            "url": "https://files.pythonhosted.org/packages/93/2a/19a8f21b4cba60bd113a63cdbe477ad984b561cb9160e05fde7c9d8ff54b/gpti-2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d299f69fcf8db849b2ee7c345750cf17819ba8caa5429adce6f07798e79e7049",
                "md5": "34393738b0a86bf853e4d5e08b3baa49",
                "sha256": "72e240758d2ce0af4681601328a0bcfddd5ef8ccf063795e9b56690973510cdb"
            },
            "downloads": -1,
            "filename": "gpti-2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "34393738b0a86bf853e4d5e08b3baa49",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 38449,
            "upload_time": "2024-04-27T17:59:56",
            "upload_time_iso_8601": "2024-04-27T17:59:56.163089Z",
            "url": "https://files.pythonhosted.org/packages/d2/99/f69fcf8db849b2ee7c345750cf17819ba8caa5429adce6f07798e79e7049/gpti-2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 17:59:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yandricr",
    "github_project": "gpti-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        }
    ],
    "lcname": "gpti"
}
        
Elapsed time: 0.25429s