StarriseStarrise API
OverviewGuideAPI

Authentication

Create an API token (`sk-...`) and send it in the Authorization header when calling Starrise-api.

Terminology

API Token is your credential for /v1/*, /mj/*, /suno/*, etc. LLM tokens are units models use to measure text length for billing.

Create a Token

  1. Register and log in to the console
  2. Open Tokens
  3. Click Create Token
  4. Configure as needed:
OptionDescription
NameA label such as production
ExpirationOptional; leave blank for no expiry
QuotaCap usage for this token
Unlimited quotaNo per-token cap (account balance still applies)
Model restrictionsAllow only selected models
IP allowlistRestrict caller IP addresses
  1. Submit — copy the full key from the token list (Copy). The complete key is only shown once at creation.
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

You can batch-create multiple tokens in one submit.

Use in API Requests

curl https://api.starrise.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hi"}]}'

The API accepts:

  • Authorization: Bearer sk-... or Bearer <key> (prefix sk- is stripped)
  • Claude: x-api-key: sk-... on /v1/messages and /v1/models
  • Gemini: x-goog-api-key or query ?key=sk-...
  • Midjourney: mj-api-secret: sk-...
  • Realtime WebSocket: key in Sec-WebSocket-Protocol subprotocol

Store tokens in environment variables:

export STARRISE_API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Manage Tokens

ActionDescription
ViewName, status, quota usage, expiration
EditUpdate config (key hash cannot be changed)
CopyReveal full key once from list actions
DeleteRevoke immediately

Security Best Practices

Recommended

  • One token per app and environment
  • Set quota limits for non-production tokens
  • Enable model limits and IP allowlists when possible
  • Never commit tokens to Git or embed in frontend code
  • Rotate after team changes

Common Errors

StatusCauseSolution
401Invalid or missing tokenVerify key and header
403Model/IP restricted or account issueCheck token settings or contact support
429Quota or rate limit exceededTop up or increase limits

FAQ

Can I view the full key after creation? Use Copy in the token list if still available; otherwise create a new token.

Does unlimited quota bypass account balance? No. Account balance and platform policies still apply.

On this page