Go API reference
テキスト補完を作成
Deprecated
client.Completions.New(ctx, params) (*Completion, error)POST/v1/complete
[レガシー] テキスト補完を作成します。
メッセージ内のトークンをカウント
client.Messages.CountTokens(ctx, params) (*MessageTokensCount, error)POST/v1/messages/count_tokens
メッセージ内のトークン数をカウントします。
ファイルをダウンロード
client.Files.Download(ctx, fileID, query) (*Response, error)GET/v1/files/{file_id}/content
ファイルのメタデータを取得
client.Files.GetMetadata(ctx, fileID, query) (*FileMetadata, error)GET/v1/files/{file_id}
現在の組織を取得
client.Organization.Get(ctx) (*OrganizationInfo, error)GET/v1/organizations/me
認証されたAPIキーに関連付けられた組織に関する情報を取得します。