B2BB2B LLM

Quote an image request

Uncharged route-specific pricing and a create-time approval fingerprint.

Use an executable company credential for a project-scoped quote. The browser portal may instead use a read-only Images grant; it does not expose the project secret. Company pricing and Usage Limit valuation follow that key context.

POST /v1/images/quote requires the exact Content-Type application/json and Authorization. It is not a generation endpoint and does not require Idempotency-Key.

{
  "model": "YOUR_REVIEWED_MODEL",
  "operation": "image.generate",
  "route_id": "YOUR_ROUTE_PUBLIC_ID",
  "request": {"prompt": "A botanical illustration", "n": 1, "options": {}}
}

A route_id is required. Use the actual 26-character public route ID from GET /v1/images/catalog?model=...&operation=image.generate. For edits, request.images and request.mask are descriptors in the reviewed contract's shape, not uploaded image bytes. The real create endpoint decodes uploaded content independently. Route-specific defaults and exclusions apply; unknown fields or invalid types are rejected.

Do not copy this top-level route_id to image creation. POST /v1/images/generations accepts a JSON object model_gate: {"route_id":"YOUR_ROUTE_PUBLIC_ID"}. POST /v1/images/edits accepts one multipart text field model_gate whose value is a JSON string containing {"route_id":"YOUR_ROUTE_PUBLIC_ID"}. A standalone multipart route_id is rejected as unsupported_parameter. The two creation endpoints also require their own stable Idempotency-Key; quote does not. See generation and edits.

The response contains route_id, model, operation, contract_revision, contract_sha256, quote and quote_sha256. charged, upload_content_verified and provider_health_verified are false. quote preserves exact decimal strings and separately reports known/unknown monetary and Usage Limit values. An absent usage-based price is not zero. A quote is not admission, a reservation, authorization for a paid job or proof a provider is reachable.

Pass the optional 64-character hexadecimal quote_sha256 as model_gate.quote_sha256 in generation/edit creation to bind approval to model/operation/route/contract/options/count/effective pricing context. A mismatch returns HTTP 422 image_quote_changed before dispatch. It does not hash prompt or asserted upload metadata; exact browser request bytes are separately sealed by its creation grant. Existing API integrations may omit this field and retain their prior intent format. max_cost_usd keeps its existing exact-known-price requirement.

Malformed quote JSON returns HTTP 400 invalid_image_quote, a wrong Content-Type returns HTTP 415 image_quote_json_required, and an unavailable or incompatible specified route returns HTTP 422 image_route_not_available (error.param=route_id). Catalog failures return HTTP 503 image_catalog_unavailable. Scope and authentication failures are separate. See Images in Playground and saved operations.

Quote errors (not creation errors)

The quote validator accepts only its own JSON shape. An invalid model, route_id, operation or malformed request returns HTTP 400 invalid_image_quote; a Content-Type other than exact application/json returns HTTP 415 image_quote_json_required. A valid but unavailable/ineligible specified route returns HTTP 422 image_route_not_available with error.param=route_id. Catalog lookup failure is HTTP 503 image_catalog_unavailable. The quote never submits a paid image-generation request; a successful quote does not guarantee supplier health or final output dimensions.