Skip to main content
POST
/
v1
/
auth
/
setup
Start checkout
curl --request POST \
  --url https://api.vidjutsu.ai/v1/auth/setup \
  --header 'Content-Type: application/json' \
  --data '
{
  "credits": 100,
  "email": "<string>",
  "successUrl": "<string>"
}
'
{
  "url": "<string>",
  "sessionId": "<string>",
  "credits": 123,
  "amount": 123
}

Body

application/json
credits
integer
default:100

Number of credits to purchase. Each credit costs $0.10.

email
string

Email for receipt and key recovery.

successUrl
string

URL to redirect to after payment.

Response

200 - application/json

Checkout session created

url
string
required

Stripe checkout URL.

sessionId
string
required

Session ID for polling /v1/auth/status.

credits
integer
required
amount
integer
required

Total in cents (USD).