AI Essay Generator
Generate esay based on mode, topic and word limit
Endpoints
POST https://www.capix.uz/v2/generate/essay/
Overview
This endpoint allows you to generate an essay based on a provided description, mode, and word count. The request must include a valid API token in the headers.
Request Headers
Content-Type:
application/json
token:
API_KEY
(ReplaceAPI_KEY
with your actual API key)
Request Body
The body of the request should be in JSON format and include the following parameters:
description: A detailed description of the essay topic and key points to be covered. This is a string that provides guidance on what the essay should encompass.
mode: The mode of the essay generation. For example, it could be "Standard", "Detailed", etc.
word_count: The desired word count for the generated essay. This should be an integer.
Example Request Body
Error Handling
The API will return appropriate error messages if the request is invalid or if there is an issue with generating the essay. Common error codes include:
400 Bad Request: The request was invalid. This can happen if the JSON is malformed or required parameters are missing.
401 Unauthorized: The API key provided in the
token
header is invalid.500 Internal Server Error: An error occurred on the server while processing the request.
Example Error Response
Notes
Ensure that the API key is kept secure and not exposed in public repositories or client-side code.
Adjust the
description
,mode
, andword_count
according to your specific requirements for the essay generation.
Code Examples
Data values
You can explain the essay on the
description
parametrWord Count is the max word count of the story. Max 2000 is received. Result: You can seperate the titles with comma
Writing Mode could be either: Standard, Academic, Professional, Journalistic
Writing Purpose could be eighter: Narrative, Argumentative, Expository, Descriptive
Last updated