AI
Generate a social media caption from a description
Generates a caption tailored to the platforms you'll post to. Costs 2 credits per successful generation. Failed calls do not deduct credits.
POST
/v1/ai/writeAuthorization
accessKey x-access-key<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.postpeer.dev/v1/ai/write" \ -H "Content-Type: application/json" \ -d '{ "description": "string" }'{
"success": true,
"content": "string",
"creditsCharged": 0
}{
"success": true,
"message": "string"
}{
"success": true,
"message": "string"
}{
"success": true,
"message": "string"
}