Developers
Estimate the Credits of a generation
POST
The Credits a generation would cost, from the same pricing resolver that charges it. Pass the input assets by role only. Nothing is charged or started.
application/json- body
modelKey*"seedream-5-5"Value in
"seedream-5-5"operation*stringValue in
"text-to-image""image-to-image""text-to-video""image-to-video""video-to-video""text-to-audio""text-to-music"options?prompt?stringassets?array<>Success.
application/json- response
appCredits*integerRange
0 <= value <= 9007199254740991curl -X POST 'https://ximagesplitter.com/api/v1/generations/estimate' \
-H 'Content-Type: application/json' \
-d '{
"modelKey": "seedream-5-5",
"operation": "text-to-image"
}'Example response
{
"appCredits": 0
}