> ## 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.

# Go SDK

> Phaseo Gateway用の公式Goクライアントです。

公開済みの[`sdk-go/v3`](https://pkg.go.dev/github.com/phaseoteam/Phaseo/packages/sdk/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(...)`

まだラッパーに追加されていないエンドポイントでは、`packages/sdk/sdk-go/src/gen`内の生成済みクライアントを直接使います。

```go theme={null}
import (
  "context"
  "fmt"
  phaseo "github.com/phaseoteam/Phaseo/packages/sdk/sdk-go/v3"
)

client := phaseo.New("YOUR_KEY", "https://api.phaseo.app/v1")
models, err := client.GetModels(context.Background(), map[string]string{"limit": "5"})
if err != nil {
  panic(err)
}
fmt.Println(models)
```

`CheckModelParameters` は現在のプロバイダールートのメタデータを使って、各パラメーターを `supported`、`partial`、`unsupported`、`unknown` のいずれかとして示し、公開された値と範囲を検証して、パラメーターの組み合わせ全体を受け入れるルートを返します。


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