2
Get a Key
- Pay-as-you-go:Visit API Keys > Create new secret key to get your API Key
Pay-as-you-go supports all modality models, including language, Video, Speech, and Image.
- M Plan:Visit Billing > M Plan to view your Subscription Key
The Subscription Key is used for M Plan subscriptions and purchased Credits. It can exist before paid resources are available, and becomes usable when you have an M Plan seat or Credits access. See M Plan Overview for details.
.env file:-
Compatible Anthropic API (Recommended), see: Anthropic SDK
-
Compatible OpenAI API, see: OpenAI SDK
-
Compatible AI SDK, see: AI SDK
3
Add resources
For pay-as-you-go, access Billing/Balance to top up if needed. For M Plan, buy a subscription or Credits, or use resources assigned by your Team.