â Back to AI Providers
This tutorial will guide you through setting up CometAPI for use with Sokuji. CometAPI is fully compatible with OpenAI's Realtime API, offering the same features with alternative pricing and service options.
OpenAI Compatibility: CometAPI is 100% compatible with OpenAI's Realtime API. All models, voices, and features work identically.
Step 1: Visit CometAPI Website
Go to api.cometapi.com to access the CometAPI platform.
Step 2: Create Account and Set Up Billing
Sign up for a CometAPI account and configure your billing settings. Like OpenAI, CometAPI requires a paid account for Realtime API access.
CometAPI often offers competitive pricing compared to OpenAI. Check their pricing page for current rates and any promotional offers.
Step 3: Generate API Key
In your CometAPI dashboard:
Navigate to the "API Keys" section
Click "Create new API key"
Give your key a descriptive name like "Sokuji Translation"
Select appropriate permissions (Realtime API access)
Click Generate and copy the key
Security Note: Copy and save your API key immediately. CometAPI will only show it once for security reasons.
Step 4: Configure in Sokuji
Open Sokuji and navigate to the Settings panel:
Select "CometAPI" as your AI provider
Paste your API key in the "CometAPI Key" field
Choose your preferred model (same as OpenAI: gpt-4o-realtime-preview
)
Select a voice (same options as OpenAI: alloy
, echo
, shimmer
, etc.)
Configure your source and target languages
Adjust advanced settings like temperature, turn detection, etc.
Click Save Settings
Step 5: Test Your Setup
Start a translation session to verify everything is working:
Click the Start Session button in Sokuji
Speak into your microphone
You should hear the translated audio output
CometAPI-Specific Information
Full OpenAI Compatibility
CometAPI provides identical functionality to OpenAI's Realtime API:
Same Models: gpt-4o-realtime-preview
, gpt-4o-mini-realtime-preview
Same Voices: All 8 OpenAI voices (Alloy, Ash, Ballad, Coral, Echo, Sage, Shimmer, Verse)
Same Features: Turn detection, noise reduction, temperature control, etc.
Same Quality: Identical audio processing and translation quality
Why Choose CometAPI?
Alternative Pricing: Potentially lower costs or different pricing structure
Service Reliability: Additional service provider for redundancy
Regional Availability: May be available in regions where OpenAI isn't
Support Options: Different customer support channels
Configuration Tips
Since CometAPI is OpenAI-compatible, you can:
Use the exact same settings as you would with OpenAI
Switch between OpenAI and CometAPI easily
Use the same prompts and templates
Expect identical behavior and results
Troubleshooting
Common Issues
Authentication Error: Verify your CometAPI key is correctly pasted and that billing is set up on your account.
Model Not Available: Ensure your CometAPI account has access to Realtime API models.
Different Behavior from OpenAI: This shouldn't happen due to full compatibility. Contact CometAPI support if you notice differences.
Switching from OpenAI
If you're switching from OpenAI to CometAPI:
Export your current Sokuji settings
Change provider to CometAPI
Replace the API key
Keep all other settings identical
Test to ensure everything works as expected
© 2025 Kizuna AI Lab. All rights reserved.