OpenAI Content Genearate
POST
/openai/responseThis Endpoint Give the AI Generated Output.
Request
Header Params
x-api-key
string
required
required parameter to identify the api Getway
Default:
yFxaTyRTiH7YBUYeYiEeCYBMRGZA8wk5fsCJxVy1
Body Params application/json
content
string
required
instruction For AI
generatedFrom
string
optional
From where this Endpoint called [post/hashtag]
templateUsed
string
optional
Which Templated Used Else Then No Template
tone
string
required
Which Tone Used By AI For Generate content
Example
{
"content": "SocialPilot",
"generatedFrom": "hashtag",
"templateUsed": "linkedin",
"tone": "witty"
}
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
AI Response Generate Successfully
Data Schema
message
string
optional
Response Generate Successfully
response
object
optional
contentId
string
optional
Uniq id for the content
timeConsuming
boolean
optional
true if response Going throuh socket else false
userInput
string
optional
User Instruction Given To AI
aiResponse
string
optional
AI Response Based on Given Input
tone
string
optional
Tone Used For Generate Response
ownerId
number
optional
owner Id
companyId
number
optional
User Uniq Id
aiToken
object
optional
generatedFrom
string
optional
AI Response for Post/Hashtag
templateUsed
string
optional
Which AI template Used As User Input
createdOn
optional
Date when Response Generate By AI
totalCredit
number
optional
Remaining AI Credit After This Response
Example
{
"message": "Response Generate Successfully\"",
"response": {
"userInput": "Compose a concise and engaging Tweet, no more than 280 characters, based on the provided topic/outline, adhering to the following guidelines:\n\n1. Ensure the Tweet is concise, engaging, and no more than 280 characters.\n2. Include one relevant hashtag related to the Tweet's content.\n3. Incorporate emojis that accurately represent the emotions conveyed in each sentence.\n\nOutline of the post: \nJS",
"aiResponse": "\"🎉Calling all #JavaScript fans!👩💻👨💻Get ready to level up your skills with our ultimate guide to mastering JS!💪📚From basics to advanced techniques, we've got you covered.🚀 Let's code together and reach new heights!👊 #codingcommunity #webdevelopment\"",
"tone": "casual",
"ownerId": 103953,
"companyId": 103953,
"aiToken": {
"inputToken": 173,
"outputToken": 78,
"totalToken": 251
},
"generatedFrom": "post",
"templateUsed": "tweetPost",
"createdOn": "2023-06-22T18:34:14.663Z",
"totalCredit": 195,
"contentId": "cea1eeab-ab3f-4ebb-8c88-786effb861f4",
"timeConsuming": false
}
}
Last modified: 18 days ago