Skip to main content
POST
/
api
/
v1
/
blog
/
write
Generate full blog article with AI
curl --request POST \
  --url https://tiwih-api.vercel.app/api/v1/blog/write \
  --header 'Content-Type: application/json' \
  --data '
{
  "topic": "<string>",
  "category": "guides",
  "targetLength": "medium",
  "tone": "educational",
  "keyPoints": [
    "<string>"
  ],
  "includeImages": true,
  "imageCount": 3,
  "save": false,
  "overwrite": false
}
'

Body

application/json
topic
string
required
Required string length: 10 - 500
category
enum<string>
required
Available options:
guides,
science,
culture,
news,
strains,
wellness,
recipes,
lifestyle
targetLength
enum<string>
default:medium
Available options:
short,
medium,
long
tone
enum<string>
default:educational
Available options:
educational,
conversational,
scientific,
enthusiastic
keyPoints
string[]
includeImages
boolean
default:true
imageCount
number
default:3
Required range: 0 <= x <= 5
save
boolean
default:false
overwrite
boolean
default:false

Response

Blog article generated