Skip to content
Docs

Authentication

Authenticate requests to the Chutes API using API keys or OAuth (Sign in with Chutes). API keys are the fastest way to get started.

API keys

Create API keys from the Chutes dashboard or via the CLI. Use the key as a bearer token.

curl -s https://api.chutes.ai/chutes \
  -H "Authorization: Bearer cpk_..."

Scopes and permissions

Keys can be scoped to specific resources or capabilities. Use the minimum scope required for your application.

Sign in with Chutes

OAuth allows end users to authenticate with their Chutes account. Use the authorization code flow and request scopes like openid, profile, and chutes:invoke.

curl -s https://idp.chutes.ai/.well-known/openid-configuration | jq .

Token refresh

Refresh access tokens using the refresh_token grant to keep sessions alive without forcing users to re-authenticate.