Skip to main content
POST
/
articles
/
generate
Generate article
curl --request POST \
  --url https://api.smartlyq.com/v1/articles/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "topic": "<string>",
  "keywords": "<string>",
  "tone": "<string>",
  "length": "<string>",
  "language": "<string>",
  "format": "<string>",
  "instructions": "<string>"
}
'
{
  "success": true,
  "data": {
    "job_id": "<string>"
  },
  "usage": {
    "units": 123,
    "cost": "0.0150",
    "balance_remaining": "99.9850"
  },
  "meta": {
    "request_id": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.smartlyq.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key from Developer dashboard (Bearer token).

Body

application/json

Either topic or keywords must be provided.

topic
string

Article topic

keywords
string

Keywords to base the article on

tone
string

Writing tone (e.g. professional, casual, friendly)

length
string

Desired length (e.g. short, medium, long)

language
string

Output language (e.g. en, es, fr)

format
string

Output format (e.g. blog, essay, listicle)

instructions
string

Additional instructions for the AI

Response

Accepted; poll job for result

success
enum<boolean>
Available options:
true
data
object
usage
object
meta
object