Download the PHP package yandricr/gpti-php without Composer

On this page you can find all versions of the php package yandricr/gpti-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gpti-php

GPTI

packagist license GitHub Stars Package Size Contributors PHP Ko-Fi

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, some of which are premium while others are free, all of this without restrictions or limits.

Installation

You can install the package via Composer

Available Models

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

Api key

If you want to access the premium models, enter your credentials. You can obtain them by clicking here.

Usage GPT

JSON

Models

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

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.

JSON

Usage GPT v2 Streaming

JSON

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.

JSON

Usage Bing

JSON

Usage Bing Streaming

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

Usage DALL·E

JSON

Usage DALL·E 2 (PRO)

JSON

Parameters

Parameter Default Description
prompt_negative (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, (NSFW:1.25) Indicates what the AI should not do
width 1024 Min: 512, Max: 2048
height 1024 Min: 512, Max: 2048
guidance_scale 6 Min: 0.1, Max: 20

Usage DALL·E Mini

JSON

Usage Prodia

JSON

Models

List of models

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"

Usage Prodia Stable-Diffusion

JSON

Models

List of models

Methods

List of methods:

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

Usage Prodia Stable-Diffusion XL (PRO)

JSON

Models

List of models:

Methods

List of methods:

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

Usage Pixart-A (PRO)

JSON

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

Usage Pixart-LCM (PRO)

JSON

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

Usage Stable-Diffusion 1.5

JSON

Usage Stable-Diffusion 2.1

JSON

Parameters

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

Usage Stable-Diffusion XL (PRO)

JSON

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

Usage EMI

JSON

Usage Render3D (PRO)

JSON

Usage PixelArt

JSON

Animagine XL (PRO)

JSON

Parameters

Parameter Default Description
prompt_negative Indicates what the AI should not do
width 1024 Min: 512, Max: 2048
height 1024 Min: 512, Max: 2048
guidance_scale 7 Min: 1, Max: 12
quality_tags Standard Select from these: "Standard", "Light", "Heavy", "(None)"
style_present (None) Choose from various available image types: "(None)", "Cinematic", "Photographic", "Anime", "Manga", "Digital Art", "Pixel art", "Fantasy art", "Neonpunk", "3D Model"
strength 0.5 Min: 0, Max: 1
upscale 1.5 Min: 1, Max: 1.5
sampler Euler a Select from these: "Euler a", "DPM++ 2M Karras", "DPM++ SDE Karras", "DPM++ 2M SDE Karras", "Euler", "DDIM"
inference_steps 28 Min: 1, Max: 50

Playground (PRO)

JSON

Parameters

Parameter Default Description
prompt_negative Indicates what the AI should not do
width 1024 Min: 256, Max: 1536
height 1024 Min: 256, Max: 1536
guidance_scale 3 Min: 0.1, Max: 20

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.

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 The API credentials are not valid
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


All versions of gpti-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yandricr/gpti-php contains the following files

Loading the files please wait ....