Generate Magic
Generate text (description, records, abilities and more) based on input.
post
/v1/magic/{promptId}/generate
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Request Body * Required
Request Body Schema: application/json
textstring
The text to use as input
modelstring
The model to use for generation
curl -X POST "https://api.chatbotkit.com/v1/magic/{promptId}/generate" \-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \
-H "Content-Type: application/json" \
--data-binary @- << EOF {"text":"string",} EOF"model":"string"
{"text":"string","usage":{"token":"number"}}
The magic prompt completed successfully