Skip to main content
从 Packagist 安装已发布的包 phaseo/sdk。 packages/sdk/sdk-php/src/index.php 中的本地封装目前提供以下方法:
  • 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()
checkModelParameters(...) 使用提供商路由的实时元数据,突出显示不受支持或无效的值,并返回接受完整参数集的路由。
最后修改于 2026年10月2日