Rest API

Ai

Generation flash card with AI

Example generation flash card with AI

POST
/ai/generate
Server
/ai/generate

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

topicstring

linkstring

numberCardsnumber

Default: 5Minimum: 5Maximum: 50

languagestring

Default: "auto"

transcriptstring

curl -X POST "https://demo.expostarter.com/api/ai/generate" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "topic": "string",
    "link": "string",
    "numberCards": 5,
    "language": "auto",
    "transcript": "string"
  }'

Successful response

{
  "title": "string",
  "description": "string",
  "category": "string",
  "language": "string",
  "cards": [
    {
      "question": "string",
      "answer": "string"
    }
  ]
}