POST/api/v1/content-creation/generate
Generate content draft text
Set Accept: text/event-stream to stream the draft as it is written.
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"audiences": [],
"content_type": "auto",
"model": "gemini/gemini-2.5-flash",
"pull_through_priorities": [],
"source_mode": "freeform",
"themes": []
}
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/content-creation/generate" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"audiences": [],
"content_type": "auto",
"model": "gemini/gemini-2.5-flash",
"pull_through_priorities": [],
"source_mode": "freeform",
"themes": []
}'
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/content-creation/generate", headers={"X-API-Key": "YOUR_KEY"}, json={
"audiences": [],
"content_type": "auto",
"model": "gemini/gemini-2.5-flash",
"pull_through_priorities": [],
"source_mode": "freeform",
"themes": []
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/content-creation/generate", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"audiences": [],
"content_type": "auto",
"model": "gemini/gemini-2.5-flash",
"pull_through_priorities": [],
"source_mode": "freeform",
"themes": []
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"content": "string",
"truncated": false
}
