Skip to main content

Management API: Keys & Billing

Manage your API keys: rotation, ACLs, billing, usage analytics, and prepaid credits.

14 lessons About 1 h Developer

What you'll learn

  • Create, list, and modify API keys using the xAI Management API
  • Organize key rotation and deletion without interrupting ongoing services
  • Configure billing, payment methods, spending limits, and prepaid credits
  • Leverage usage analytics to produce a consumption report by model
  • Apply the principle of least privilege to ACLs and validate the management key

Course details

Who it's for
Developers, engineers, and integrators looking to leverage Grok via API in their applications.
Prerequisites
Know how to use the command line (curl) and read Python and JSON. A management key (Management Key) from the xAI console to try the examples.
Length
1 h · 14 lessons
Format
100% online self-paced course, accessible 24/7 from a browser. Progress saved, resume anytime. Estimated duration: 1 h.
Assessment
Self-assessment based on the 'Key takeaways' concluding each lesson, and direct implementation of examples on your own examples. A final quiz of 5 corrected questions, at the end of the last lesson, validates the acquired skills.
Accessibility
Self-paced course accessible to people with disabilities: text content compatible with screen readers, keyboard navigation, and compliant contrasts. For any adaptation needs, email [email protected].
Price
Free
Recognition
Certificate of completion issued by Corsen AI, verifiable online.

Syllabus

Start the course