OneAI
Docs
x-api-keytype + inputoptions.maxAttempts
API Basics
Authentication, request shape, and response conventions.
Authentication
Send your key using x-api-key.
-H "x-api-key:YOUR_KEY"
Request format
OneAI routes by type and validates output with schemas.
{
"type": "viral_hook",
"input": { "topic": "...", "details": "..." },
"options": { "templateVersion": 1, "maxAttempts": 3 }
}