Skip to main content
安装已发布的 sdk-go/v3 模块。 本地封装 packages/sdk/sdk-go/index.go 目前提供以下方法:
  • GenerateText(...)
  • GenerateResponse(...)
  • GenerateEmbedding(...)
  • GenerateModeration(...)
  • CreateSpeech(...), CreateTranscription(...), CreateTranslation(...)
  • CreateAnthropicMessage(...)
  • GetModels(...)
  • GetModelEndpointCapabilities(...), CheckModelParameters(...)
  • ListOrganisations(...)
  • ListPricingModels(...)
  • CalculatePricing(...)
  • ListApiKeys(...)
  • CreateApiKey(...), UpdateApiKey(...), DeleteApiKey(...)
  • GetApiKey(...)
  • ListWorkspaces(...), GetWorkspace(...), CreateWorkspace(...), UpdateWorkspace(...), DeleteWorkspace(...)
  • GetCurrentApiKey(...)
  • ListEndpoints(...)
  • ListProviders(...)
  • GetAnalytics(...), GetCredits(...), GetActivity(...)
  • CreateBatch(...), RetrieveBatch(...), CancelBatch(...)
  • GetAsyncJobWebSocketURL(...), GetBatchWebSocketURL(...), GetVideoWebSocketURL(...), client.AsyncJobs.WebSocketURL(...)
  • ListFiles(...), RetrieveFile(...), RetrieveFileContent(...)
  • RetrieveVideoContent(...), GetVideoDownloadURL(...)
  • GetGeneration(...)
  • Health(...)
  • GetModelDeprecationInfo(...), ValidateModel(...)
  • CreateImage(...), CreateImageEdit(...)
  • GenerateVideo(...), GetVideo(...), CancelVideo(...), DeleteVideo(...)
  • ListVideoModels(...), ListVideos(...)
对于尚未封装到本地 wrapper 的端点,请直接使用 packages/sdk/sdk-go/src/gen 中生成的客户端。
CheckModelParameters 使用提供商路由的实时元数据,将各参数标记为 supported、partial、unsupported 或 unknown,验证公布的值和范围,并返回接受完整参数集的路由。
最后修改于 2026年10月2日