Prerequisites
- An xAI account
- Access to the Grok API (currently in limited access)
Getting Started with Grok
Access Requirements
Grok API is currently in limited access. To get access:- Visit the xAI website
- Sign up for an account if you don’t have one
- Apply for API access through the developer portal
- Wait for approval from xAI team
- Once approved, you’ll receive your API credentials
API Key Setup
- After receiving approval, log into your xAI developer account
- Navigate to the API section
- Generate a new API key
- Copy your API key for use in Jinba Flow
API Key Security
- Never share your API key publicly
- Store it securely in environment variables
- Use the key only in trusted applications
- Monitor your usage in the xAI dashboard
Setting Up in Jinba Flow
- Go to your workspace settings in Jinba Flow
- Navigate to the “Secret” section
- Click “Create Secret” and choose the generic type
OTHER(there is no Grok-specific secret type) - Enter a name and paste your xAI API key
- Click “Save” to store your credentials
Available Models
Once configured, select the saved secret in the Grok API key field (api_key config) of GROK_CHAT. If you leave the field at its default, {{ secrets.JINBA_CREDIT_KEY }}, the step runs on Jinba Credits instead of your own key.
Current model IDs include:
grok-4.3(default)grok-4.5grok-4.6grok-4.7
Usage Examples
Once configured, you can use Grok in your flows to:- Generate creative content and text
- Analyze complex documents and data
- Answer questions with real-time information
- Perform advanced reasoning tasks
- Create structured data from unstructured text
- Generate code and technical solutions