ModelStream LogoModelStream Logo
Models
Video API
Image API
Chat API
Audio API
Studio
Pricing
Docs
Menu
IntroductionQuickstartAPI KeysUse with Hermes AgentUse with OpenClaw
Model ListBilling Guide
ModelStream
Getting Started
API Keys

API Key Management

Learn how to securely generate, configure, and manage your API access credentials.

Create Your Key

On the "Tokens" page in the console, you can generate new API keys (Tokens) at any time. For security reasons, the full key is only displayed once at creation. If lost, you must generate a new one.

Advanced Configuration Options

Quota Cap

Set the maximum quota a single key can consume to prevent account balance depletion due to code defects or accidental leaks.

Expiration Time

Create keys with an explicit validity period for temporary testing or external collaboration, which automatically expire.

IP Whitelist

Restrict requests strictly to specific server IP addresses or CIDR segments to greatly enhance production environment security.

Group Binding

Determine which model group pricing tier applies to this key, facilitating cost management across different business lines.

Security Best Practices

Environment Variable Storage

Always store your sk- keys in environment variables (e.g., export MODELSTREAM_API_KEY="sk-..."). Never hardcode them or commit them to Git repositories.

Environment Isolation

Use separate keys for production, testing, and personal projects so they can be revoked individually if a leak occurs.

Backend Security Proxy

Never expose keys directly in frontend or browser code. All API requests should be proxied and authenticated through your own backend servers.

ModelStream

Video API

  • Seedance 2.0
  • Happyhorse 1.0
  • Vidu Q3
  • Kling V3.0
  • Veo 3.1
  • Wan 2.7
  • More Video Models →

Image API

  • GPT Image 2
  • Nano Banana 2
  • Seedream 5.0
  • Imagen 4
  • Qwen Image 2.0
  • Z-Image Turbo
  • More Image Models →

Audio API

  • Suno Music
  • Qwen3 TTS Flash
  • More Audio Models →

Chat API

  • GLM-5.2
  • Claude Opus 4.8
  • Gemini 3.5 Flash
  • Qwen 3.7 Max
  • GPT 5.5
  • More Chat Models →

About Us

  • Privacy Policy
  • Terms of Service
  • Support
  • Enterprise

© 2026 ModelStream Inc. All rights reserved.