> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP SDK

> Phaseo Gateway के लिए आधिकारिक PHP client।

Packagist से प्रकाशित package [`phaseo/sdk`](https://packagist.org/packages/phaseo/sdk) install करें।

`packages/sdk/sdk-php/src/index.php` का local wrapper अभी ये methods देता है:

* `generateText(...)`
* `generateResponse(...)`
* `createAnthropicMessage(...)`
* `generateImage(...)`
* `generateImageEdit(...)`
* `generateVideo(...)`, `getVideo(...)`, `cancelVideo(...)`, `deleteVideo(...)`, `listVideoModels(...)`, `listVideos(...)`
* `generateEmbedding(...)`
* `generateModeration(...)`
* `createSpeech(...)`
* `generateTranscription(...)`
* `generateTranslation(...)`
* `createBatch(...)`, `retrieveBatch(...)`, `cancelBatch(...)`
* `getAsyncJobWebSocketUrl(...)`, `getBatchWebSocketUrl(...)`, `getVideoWebSocketUrl(...)`, `asyncJobs()->websocketUrl(...)`
* `listFiles(...)`, `retrieveFile(...)`, `retrieveFileContent(...)`, `retrieveVideoContent(...)`, `getVideoDownloadUrl(...)`, `uploadFile(...)`
* `listModels(...)`
* `getModelEndpointCapabilities(...)`, `checkModelParameters(...)`
* `listApiKeys(...)`, `createApiKey(...)`, `updateApiKey(...)`, `deleteApiKey(...)`
* `getApiKey(...)`
* `listWorkspaces(...)`, `getWorkspace(...)`, `createWorkspace(...)`, `updateWorkspace(...)`, `deleteWorkspace(...)`
* `listEndpoints()`
* `listOrganisations(...)`
* `listPricingModels(...)`
* `calculatePricing(...)`
* `getCurrentApiKey()`
* `listProviders(...)`, `getAnalytics(...)`, `getCredits(...)`, `getActivity(...)`
* `getGeneration(...)`
* `health()`, `healthz()`

```php theme={null}
require 'vendor/autoload.php';

use Phaseo\Sdk\Phaseo;

$client = new Phaseo('YOUR_KEY');
$models = $client->listModels(['limit' => 5]);
```

`checkModelParameters(...)` प्रदाता रूट के लाइव मेटाडेटा से असमर्थित या अमान्य मानों को दिखाता है और पूरे पैरामीटर सेट को स्वीकार करने वाले रूट लौटाता है।


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.