Install the published phaseo/sdk package from Packagist.
The local wrapper at packages/sdk/sdk-php/src/index.php currently exposes these 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(...)
listApiKeys(...), createApiKey(...), updateApiKey(...), deleteApiKey(...)
getApiKey(...)
listWorkspaces(...), getWorkspace(...), createWorkspace(...), updateWorkspace(...), deleteWorkspace(...)
listEndpoints()
listOrganisations(...)
listPricingModels(...)
calculatePricing(...)
getCurrentApiKey()
listProviders(...), getAnalytics(...), getCredits(...), getActivity(...)
getGeneration(...)
health(), healthz()
Last modified on July 26, 2026