Authentication
Getting Your API Key
Using the Token
Authorization: Bearer YOUR_API_KEYcurl -X POST https://viralapi.ai/v1/task/create \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxx" \
-d '{"model": "gemini-2.5-flash-image", "task_type": "image", "input": {"prompt": "hello"}}'Error Responses
401 Unauthorized
402 Payment Required
403 Forbidden
Security Best Practices
Last updated