Install the published sdk-go/v2 module.
The local wrapper at packages/sdk/sdk-go/index.go currently exposes these methods:
GenerateText(...)
GenerateResponse(...)
GenerateEmbedding(...)
GenerateModeration(...)
CreateSpeech(...), CreateTranscription(...), CreateTranslation(...)
CreateAnthropicMessage(...)
GetModels(...)
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(...)
For endpoints that are not yet promoted to the wrapper, use the generated client under packages/sdk/sdk-go/src/gen directly.
Last modified on July 26, 2026