Book Title Generator
Generates book titles using prompts
Endpoints
POST https://api.magicapi.dev/api/v1/capix/title/generate/booktitle/v1/
Description
This endpoint generates a title based on the provided description and mode. It is part of the Capix API version 2.
Headers
x-magicapi-key: (string) A required header for authentication. ReplaceAPI_KEYwith your actual API key.Content-Type: (string) This should be set toapplication/jsonto indicate that the request body contains JSON data.
Request Body
The request body should be a JSON object with the following fields:
mode: (string) The mode in which the title should be generated. Example values includeFormal,Casual, etc.description: (string) A brief description that will be used to generate the title.
Example Request Body
{
"mode": "Formal",
"description": "let us dive"
}Error Handling
If the request is invalid or the token is missing/incorrect, the server will respond with an appropriate HTTP status code and a message indicating the error.
Example Error Responses
401 Unauthorized400 Bad Request
Notes
Ensure that the
tokenheader contains a valid API key.The
modefield should be one of the accepted values. Check the API documentation or contact support if you are unsure about the valid modes.The
descriptionfield should be a concise and meaningful string to get the best results from the title generation.
Code Examples
It returns response like this
Last updated