Api

Authentication

Create, send, and protect a Vidrush API key.

Create an API key

Open Settings -> API Keys while signed in and create a key. Vidrush API keys begin with sk-.

Send the key

Send the key on every authenticated v1 request:

Authorization: Bearer sk-your-api-key

For example:

curl -H "Authorization: Bearer $VIDRUSH_API_KEY" \
  https://vidrush-ai.com/api/v1/credits

GET /api/v1/models is public and does not require a key. POST /api/v1/videos, GET /api/v1/tasks/{taskId}, and GET /api/v1/credits require one.

Keep keys private

  • Store keys in a server-side secret manager or an environment variable such as VIDRUSH_API_KEY.
  • Do not place keys in browser code, public repositories, screenshots, or prompts sent to untrusted parties.
  • Treat a key that has been exposed as compromised and replace it in Settings -> API Keys.

Missing or invalid credentials return HTTP 401 with code: -1001.