aiCreditTopUpOptions
Requires permission billing:ai_credit:read.
The fixed set of USD top-up amounts the wallet UI offers.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query AiCreditTopUpOptions {
aiCreditTopUpOptions {
amountCents
label
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query AiCreditTopUpOptions {\n aiCreditTopUpOptions {\n amountCents\n label\n }\n}"
}
EOF
Response:
{
"data": {
"aiCreditTopUpOptions": [
{
"amountCents": 0,
"label": "string"
}
]
}
}
aiCreditTopUpOptions: [AiCreditTopUpOption!]!
Type
AiCreditTopUpOption object
An amount of AI credit that can be bought.