Create an AI Credential
Create a saved BYOK AI credential. Name is optional and defaults server-side; pass test=true to verify credentials before saving.
Authentication
Use Bearer <api-key>.
Headers
Optional retry key for this billable operation. Reusing the same key with the same request replays its stable outcome; credential-bearing results may be freshly issued for the same principal. Reusing it with a different request returns 409.
Request
The provider API key, or a secret reference such as secret:ai/openai#value.
Customer-facing resource name. 1–200 characters.
Response headers
Evaluated policy limit; zero when no finite policy was evaluated.
Remaining policy budget; zero when no finite policy was evaluated.
Seconds until reset; zero when no finite policy was evaluated.
Response
The secret: reference the key is read from, or null when a literal key is stored.

