Developers
Improve an image prompt (1 Credit)
POST
Returns a suggested rewrite of an image prompt for the given composition (x-carousel or general). Costs 1 Credit, charged only when a valid suggestion is returned; a failed request charges nothing. With an Idempotency Key a retry replays the first suggestion without a second charge. Nothing is generated.
Send an Idempotency-Key to make retries safe: the same key with the same body returns the first result, with a different body 409.
header
AuthorizationBearer <token>An API Key the User creates in account settings, sent as Authorization: Bearer <key>. It holds the Scopes chosen at creation.
Idempotency-Key?stringA client key, unique per request.
Length
1 <= length <= 255application/json- body
prompt*stringLength
1 <= length <= 3000composition*stringValue in
"x-carousel""general"Success.
application/json- response
prompt*stringchargedCredits*integerRange
0 < value <= 9007199254740991curl -X POST 'https://ximagesplitter.com/api/v1/generations/prompt-improvements' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "string",
"composition": "x-carousel"
}'Example response
{
"prompt": "string",
"chargedCredits": 1
}