Refine existing prompt by the provided feedback
POST/v1/style-dna/refine-prompt
Refine existing prompt by the provided feedback
Request
- application/json
Body
required
prompt stringrequired
feedback stringrequired
Responses
- 201
- 400
- 401
- 403
- 429
- 500
- 504
Response with the original and refiend prompt
- application/json
- Schema
- Example (from schema)
Schema
originalPrompt stringrequired
refinedPrompt stringrequired
creditsUsed numberrequired
{
"originalPrompt": "string",
"refinedPrompt": "string",
"creditsUsed": 0
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Gateway Timeout
- application/json
- Schema
- Example (from schema)
Schema
message stringrequired
statusCode numberrequired
error string
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Loading...