Endpoint
http
GET https://bumi.digital/api/v1/models/pricingQuery Parameters
| Name | Type | Description |
|---|---|---|
| type | string (optional) | Filter by model type. Valid values: image, video, audio, upscale-image, upscale-video. |
Example Request (cURL)
bash
curl -X GET "https://bumi.digital/api/v1/models/pricing"With Type Filter
bash
curl -X GET "https://bumi.digital/api/v1/models/pricing?type=image"Example Response
json
{
"ok": true,
"count": 42,
"currency": "credits",
"models": [
{
"model_id": "black-forest-labs/flux-1.1-pro-ultra",
"display_name": "FLUX 1.1 Pro Ultra",
"description": "High quality image generation",
"provider": "Black Forest Labs",
"category": "Black Forest Labs",
"type": "image",
"status": "active",
"estimated_time_ms": 10000,
"cost": {
"default": 0.1,
"rules": [
{ "when": { "resolution": "2K" }, "cost": 0.2 }
]
},
"input_schema": {
"type": "object",
"required": ["prompt"],
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"description": "Deskripsi gambar yang akan dibuat",
"default": "",
"ui": { "widget": "textarea", "multiline": true, "order": 1 }
},
"aspect_ratio": {
"type": "string",
"title": "Aspect Ratio",
"default": "1:1",
"enum": ["1:1", "16:9", "9:16", "4:3", "3:4"],
"ui": { "widget": "select", "order": 2 }
},
"resolution": {
"type": "string",
"title": "Resolution",
"default": "1K",
"enum": ["1K", "2K"],
"ui": { "widget": "select", "order": 3 }
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"ui": { "widget": "textarea", "multiline": true, "order": 4 }
},
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"minimum": -1,
"maximum": 2147483647,
"ui": { "widget": "number", "order": 5 }
},
"reference_images": {
"type": "array",
"title": "Reference Images",
"items": { "type": "string", "format": "uri" },
"maxItems": 4,
"ui": { "widget": "image-upload", "comfy_type": "IMAGE", "order": 6 }
}
}
}
}
]
}Response Fields
count— total number of models returned.currency— alwayscredits.models[].provider— name of the underlying model provider (e.g. Black Forest Labs, Bytedance, Google).models[].type— model category (image, video, audio, upscale-image, upscale-video).models[].cost.default— default cost in credits per generation.models[].cost.rules— optional cost variations based on input parameters (if present).models[].estimated_time_ms— estimated processing time in milliseconds.models[].input_schema— JSON Schema describing the accepted input parameters. Use this to dynamically build UI forms or validate payloads before calling the generate endpoints.
Understanding input_schema
Every property inside input_schema.properties follows standard JSON Schema (type, enum, minimum, maximum, minLength, maxLength, default, description) plus a ui hint object.
| ui.widget | Rendered as | Notes |
|---|---|---|
| text | single-line input | plain string |
| textarea | multi-line input | used for prompts / descriptions |
| select | dropdown | values come from enum |
| number | numeric input | respects minimum/maximum |
| checkbox | boolean toggle | for on/off flags |
| image-upload | image picker | accepts URL(s); comfy_type: IMAGE |
| video-upload | video picker | comfy_type: VIDEO |
| audio-upload | audio picker | comfy_type: AUDIO |