Creative Fabrica · Schema

ModelCostRequest

Inputs the price depends on. Which inputs are required is per model: `GET /v1/models/{model}` → `pricing.inputs`. Static-priced models ignore the body (it may be empty or omitted), except that an option value the model's vendor would refuse is rejected (for example a target size outside the model's limits), so the quote fails where the generation would.

CompanyCreative MarketplaceDigital AssetsFontsGraphicsPrint on DemandEmbroideryDesign ToolsSubscription ServiceAmsterdam

Properties

Name Type Description
options object Option values that determine the price, e.g. `duration_seconds`, `resolution`. Every option listed in `pricing.inputs.options` is required and validated against the model's `inputSchema` — model defau
inputMedia array Metadata for input files the price depends on (models whose `pricing.inputs.media` is non-empty). Mirrors the asserted `width`/`height`/`durationSeconds` fields on the generation request's `files` ent
View JSON Schema on GitHub

JSON Schema

creativefabrica-model-cost-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/creativefabrica/json-schema/creativefabrica-model-cost-request-schema.json",
  "title": "ModelCostRequest",
  "description": "Inputs the price depends on. Which inputs are required is per model:\n`GET /v1/models/{model}` → `pricing.inputs`. Static-priced models ignore\nthe body (it may be empty or omitted), except that an option value the\nmodel's vendor would refuse is rejected (for example a target size\noutside the model's limits), so the quote fails where the generation\nwould.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/creativefabrica-idea-ai-genai-openapi.yml#/components/schemas/ModelCostRequest",
  "type": "object",
  "properties": {
    "options": {
      "type": "object",
      "description": "Option values that determine the price, e.g. `duration_seconds`,\n`resolution`. Every option listed in `pricing.inputs.options` is\nrequired and validated against the model's `inputSchema` — model\ndefaults are **never** applied here, so a quote can't silently\ndiffer from what you asked about. Options that don't affect the\nprice may be included; they are validated but ignored.\n",
      "additionalProperties": true
    },
    "inputMedia": {
      "type": "array",
      "description": "Metadata for input files the price depends on (models whose\n`pricing.inputs.media` is non-empty). Mirrors the asserted\n`width`/`height`/`durationSeconds` fields on the generation\nrequest's `files` entries — generation cross-checks the actual\nfiles against these assertions, so an honest quote always equals\nthe charged amount. Repeat the same `role` for multi-file roles.\n",
      "items": {
        "$ref": "#/$defs/CostInputMedia"
      }
    }
  },
  "$defs": {
    "CostInputMedia": {
      "type": "object",
      "required": [
        "role"
      ],
      "properties": {
        "role": {
          "type": "string",
          "description": "Role of the file: `sourceVideo`, `firstFrame`, `referenceVideo`, …\n— as it will be sent in the generation request's `files`.\n"
        },
        "width": {
          "type": "integer",
          "description": "Media width in pixels, when listed in the role's `requiredMetadata`."
        },
        "height": {
          "type": "integer",
          "description": "Media height in pixels, when listed in the role's `requiredMetadata`."
        },
        "durationSeconds": {
          "type": "integer",
          "description": "Audio/video duration, when listed in the role's `requiredMetadata`."
        },
        "fps": {
          "type": "integer",
          "description": "Video frame rate rounded to the nearest integer (23.976 → 24,\n29.97 → 30), when listed in the role's `requiredMetadata`.\n"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/creativefabrica-model-cost-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.