PHPackages                             cryodrift/ai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cryodrift/ai

ActiveLibrary[API Development](/categories/api)

cryodrift/ai
============

Inference Api Client

0.1.7(3mo ago)00MITPHPPHP &gt;=8.4

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/cryodrift/ai)[ Packagist](https://packagist.org/packages/cryodrift/ai)[ RSS](/packages/cryodrift-ai/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

NAME
====

[](#name)

ai - AI Inference API Client CLI

SYNOPSIS
========

[](#synopsis)

`php index.php -echo /ai` \[COMMAND\] \[OPTIONS\]

DESCRIPTION
===========

[](#description)

Dieses Modul bietet eine CLI-Schnittstelle zur Interaktion mit verschiedenen AI-Providern (OpenAI, Claude, Lokale Instanzen).

COMMANDS
========

[](#commands)

- **chat**: Interaktive oder dateibasierte Chat-Anfragen.
- **batch**: Erstellen und Verwalten von Batch-Jobs (für asynchrone Verarbeitung).
- **batches**: Statusabfrage oder Auflistung von Batch-Jobs.
- **models**: Verfügbare Modelle eines Providers auflisten.
- **files**: Hochgeladene Dateien verwalten (auflisten, lesen, löschen).
- **extract**: Informationen aus Nachrichten in Dateien extrahieren.

OPTIONS
=======

[](#options)

- `-help`: Zeigt immer die jeweilige Parameterhilfe an.
- `-model=NAME`: Name des zu verwendenden KI-Modells.
- `-provider=TYPE`: API-Provider (`oairesp` für OpenAI, `locresp` für Local, `cldresp` für Claude).
- `-content=FILE`: Pfad zu einer Eingabedatei (kann mehrfach angegeben werden).
- `-outfile=FILE`: Pfad, in den die Antwort geschrieben werden soll.
- `-send`: Schickt die Anfrage tatsächlich ab.
- `-id=ID`: Spezifische ID für Batches oder Dateien.
- `-status`: Zeigt den Status an (meist in Verbindung mit `batches`).
- `-stop`: Beendet den Vorgang nach dem Senden (bei Batches).
- `-read`: Liest den Inhalt einer Datei (bei `files`).
- `-msg=FILE`: Pfad zur Nachrichtendatei (bei `extract`).

EXAMPLES
========

[](#examples)

### resp Modus

[](#resp-modus)

Einfacher resp mit mehreren Quelldateien und Ausgabe in eine HTML-Datei:

```
php index.php -echo /ai resp -model="gpt-4o" -provider=oairesp -content="src/app/input.txt" -content="src/app/docs.md" -outfile="src/app/result.html" -send
```

resp über Pipe (Standard-Input):

```
echo "Übersetze dies ins Englische" | php index.php -echo /ai resp -model="gpt-4o" -provider=oairesp -content -outfile="result.txt" -send
```

### Batch Modus

[](#batch-modus)

Einen neuen Batch-Job starten:

```
php index.php -echo /ai batch -model="gpt-4o" -provider=oairesp -content="task.txt" -outfile="batch_result.html" -send
```

Status eines Batches abfragen:

```
php index.php -echo /ai batches -status -id=BATCH_ID_HERE
```

Liste aller Batches anzeigen:

```
php index.php -echo /ai batches
```

### Modell-Verwaltung

[](#modell-verwaltung)

Verfügbare Modelle eines Providers auflisten:

```
php index.php -echo /ai models -provider=locresp -send
```

### Datei-Operationen

[](#datei-operationen)

Hochgeladene Dateien auflisten:

```
php index.php -echo /ai files -provider="oairesp"
```

Inhalt einer remote Datei lesen und lokal speichern:

```
php index.php -echo /ai files -provider="oairesp" -read -id=file-ID_HERE -outfile="downloaded.html"
```

### Extraktion

[](#extraktion)

Extrahiert Informationen aus einer Chat-Message in eine HTML-Datei:

```
php index.php -echo /ai extract -msg=".cryodrift/data/ai/message_id.chat" -outfile="src/data/input.html"
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

8

Last Release

95d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ecdd6c6fb232df96deef400795e50ea4f5c57c18416031ff0b1b790673094945?d=identicon)[cryodrift](/maintainers/cryodrift)

### Embed Badge

![Health badge](/badges/cryodrift-ai/health.svg)

```
[![Health](https://phpackages.com/badges/cryodrift-ai/health.svg)](https://phpackages.com/packages/cryodrift-ai)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
