Content Engine Example
Generate hooks, posts, CTAs, hashtags, and content variants from a product or campaign topic.
When to use this task
Use these examples as starting points, then adapt the input contract to your own product.
Request JSON
Send this payload to /v1/generate with your OneAI API key.
{
"type": "content_engine",
"input": {
"topic": "Announce OneAI Task Intelligence API",
"audience": "developers and SaaS builders",
"tone": "clear and practical",
"brand": "OneAI"
},
"options": {
"llm": {
"mode": "cheap",
"maxCostUsd": 0.03
}
}
}cURL
Use Idempotency-Key for production retries and store requestId from the response.
curl -s https://oneai-saas-api-production.up.railway.app/v1/generate \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_ONEAI_API_KEY" \
-H "Idempotency-Key: content-engine-001" \
-d '{"type":"content_engine","input":{"topic":"Announce OneAI Task Intelligence API","audience":"developers and SaaS builders","tone":"clear and practical","brand":"OneAI"},"options":{"llm":{"mode":"cheap","maxCostUsd":0.03}}}' | jqExample output shape
Actual model wording can vary, but your integration should expect the same business-level structure.
{
"angle": "Task Intelligence turns model access into business-ready AI workflows.",
"hooks": [
"Stop selling raw prompts. Ship structured AI workflows.",
"One API for model access and business intelligence."
],
"posts": [
"OneAI now turns business goals into structured Task Intelligence API outputs for SaaS teams."
],
"cta": "Try the free Business Strategy and Content Engine tasks.",
"hashtags": [
"#OneAI",
"#AISaaS",
"#TaskIntelligence"
],
"variants": [
"Developer launch",
"Founder launch",
"Enterprise trust angle"
]
}Use cheap mode for bulk content variants. Use balanced mode when the output will be published directly.
This example is available on the Free tier. Free examples are suitable for initial testing. Pro examples are designed for customer-facing workflows.
Common mistakes
Most integration issues come from missing context or using the wrong plan for the task tier.
Load the matching preset in Playground, run a real request, then copy the final payload into your backend.