> ## 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 client।

Published [`sdk-go/v3`](https://pkg.go.dev/github.com/phaseoteam/Phaseo/packages/sdk/sdk-go/v3) module install करें।

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

* `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(...)`

जो endpoints अभी wrapper में नहीं आए हैं, उनके लिए `packages/sdk/sdk-go/src/gen` में generated client सीधे उपयोग करें।

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