Account

AccountResource

Methods

get() ->
get/account

Returns information about the user or organization associated with the provided API token.

Example cURL request:

curl -s \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  https://api.replicate.com/v1/account

The response will be a JSON object describing the account:

{
  "type": "organization",
  "username": "acme",
  "name": "Acme Corp, Inc.",
  "github_url": "https://github.com/acme",
}
Returns
class AccountGetResponse:
type: Literal["organization", "user"]

The account type. Can be a user or an organization.

username: str

The username of the account.

avatar_url: Optional[str]
(format: uri)

The avatar URL for the account.

github_url: Optional[str]
(format: uri)

The GitHub URL of the account.

name: Optional[str]

The name of the account.

Request example
200Example