docs.dev

Check AI availability

GET
/api/admin/ai/generate

Whether this deployment can generate content (Workers AI binding present).

docsdev_admin<token>

Sealed (AES-256-GCM) session cookie issued by POST /api/admin/login or the GitHub OAuth callback.

In: cookie

Response Body

application/json

application/json

curl -X GET "https://example.com/api/admin/ai/generate"
{  "ok": true,  "available": true}
{  "ok": false,  "error": "string"}