DevelopersAPI Docs
Platform

Models & Pricing

List all available models across every type (image, video, audio, upscale) together with their price in credits. Handy for building pricing pages or estimating cost before generation. This endpoint is public and does not require an API key.

Endpoint

http
GET https://bumi.digital/api/v1/models/pricing

Query Parameters

NameTypeDescription
typestring (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 — always credits.
  • 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.widgetRendered asNotes
textsingle-line inputplain string
textareamulti-line inputused for prompts / descriptions
selectdropdownvalues come from enum
numbernumeric inputrespects minimum/maximum
checkboxboolean togglefor on/off flags
image-uploadimage pickeraccepts URL(s); comfy_type: IMAGE
video-uploadvideo pickercomfy_type: VIDEO
audio-uploadaudio pickercomfy_type: AUDIO