POST
/
api
/
v1
/
client
/
txt2img
/
price-calculation
Text to Image Price Calculation
curl --request POST \
  --url https://api.modelbeam.srv1069417.hstgr.cloud/api/v1/client/txt2img/price-calculation \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "a sunset over mountains",
  "model": "Flux1schnell",
  "width": 1024,
  "height": 1024,
  "steps": 4,
  "guidance": 1,
  "seed": -1
}
'
{
  "data": {
    "price": 0.00306
  }
}

Body

application/json
prompt
string
required
Minimum string length: 1
Example:

"a sunset over mountains"

model
string
required
Example:

"Flux1schnell"

width
integer
required
Required range: 256 <= x <= 2048
Example:

1024

height
integer
required
Required range: 256 <= x <= 2048
Example:

1024

steps
integer
required
Required range: 1 <= x <= 50
Example:

4

guidance
number
default:1
Required range: 0 <= x <= 20
seed
integer
default:-1

Response

Price calculated

data
object