WizzyFlow
Docs menu

Authentication

One key per account, sent in the header of every request, for every model.

Send your key in the Authorization header, prefixed with Bearer. It works for media (/api/v3) and for LLMs (/v1).

curl https://api.wizzyflow.ai/api/v3/balance \
  -H "Authorization: Bearer $WIZZYFLOW_API_KEY"

Key types

Keys start with wf_live_ or wf_test_. Live keys (wf_live_) run real generations and spend the balance you top up. Test keys (wf_test_) let you build your integration at no cost.

Test environment

With a wf_test_ key, the API behaves exactly like production, with the same models, parameters, validation, prices and response format, but no model is actually called. Test mode exists only in the API: the playground on the site always runs real generations against your live balance. Create test keys under API keys and see their calls in your History by filtering on test keys.

  • The test balance is simulated: it resets to $100 every day and can't be topped up with real money.
  • A media generation finishes in a few seconds with a sample file of the model's output type (image, video, audio or 3D) or with sample text. The test balance is charged the same price production would charge.
  • LLMs on /v1/chat/completions reply with sample text, with or without streaming, and with tokens counted in usage.
  • File uploads (/api/v3/media/upload) don't store your file: they return a link to a sample of the same type, which works in any file field of a test generation.
  • To test your error handling, put wf_test_fail in any text field of the request (the prompt or a chat message). The generation fails just as a real one would, with no charge.
curl https://api.wizzyflow.ai/api/v3/google/nano-banana-2.1/text-to-image \
  -H "Authorization: Bearer $WIZZYFLOW_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "wf_test_fail"}'

Keep your key on the server

  • Read the key from an environment variable, such as WIZZYFLOW_API_KEY. Never hard-code it or commit it to your repository.
  • Only call the API from your server. In a browser or a mobile app, anyone who opens the developer tools can see the key.
  • Anyone with your key can spend your balance. Treat it like a password.

Invalid key

A missing, wrong or revoked key returns 401. See the other status codes in Errors and limits.