🚀 API v1 is now live! We’re continuously enhancing and expanding API capabilities for all models.
Get API token
You can create a new API token/key under your BabySea Developer dashboard.- Navigate to the Developer dashboard
- Locate the API Tokens section
- Click Create to generate a new token
- Provide a descriptive name for your token (e.g., “Production Server”, “Development Environment”)
- Copy the token immediately - it will only be displayed once
- Store it securely in your environment variables
Security best practices
- Never commit tokens to version control: Add API tokens to
.gitignoreand use environment variables instead. - Use environment variables: Store tokens in environment variables like
BABYSEA_API_TOKEN, never hardcode them. - Rotate tokens regularly: Periodically generate new tokens and revoke old ones to maintain security.
- Use different tokens per environment: Create separate tokens for development, staging, and production environments.
- Revoke compromised tokens immediately: If a token is exposed, revoke it immediately in the Developer dashboard and generate a new one.
- Limit token permissions: Use the principle of least privilege - only grant necessary permissions to each token.
Quickstart
Library
Endpoints
Available endpoints for API connection
Webhooks
Model schema
Model identifier
Available models for API connection
API reference
Introduction
Run the model via API