@lumavox/server 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -486,7 +486,7 @@ export type ImageRequest = {
486
486
  */
487
487
  aspect_ratio?: string;
488
488
  /**
489
- * Output size. **This is what you are charged on** — the price is per megapixel, with a one-megapixel minimum, so a request's cost is known before it is made.
489
+ * Output size. **This and your references are what you are charged on** — the price is per megapixel, the output's with a one-megapixel minimum and each reference's at the same rate on its own size, so a request's cost is known before it is made.
490
490
  */
491
491
  megapixels?: number;
492
492
  /**
@@ -506,7 +506,7 @@ export type ImageRequest = {
506
506
  */
507
507
  enhance_prompt?: boolean;
508
508
  /**
509
- * Up to eight images from your library for the model to work from. **Input and output share a 9 megapixel budget** — at a 1 MP output that is eight references, at 2 MP it is seven — so send a smaller `variant` when you need more of them. Over budget is a 400 naming the numbers, never a silent drop.
509
+ * Up to eight images from your library for the model to work from. **Input and output share a 9 megapixel budget** — at a 1 MP output that is eight references, at 2 MP it is seven — so send a smaller `variant` when you need more of them. Over budget is a 400 naming the numbers, never a silent drop. **Each reference is charged** at the output's per-megapixel rate, on the megapixels of the copy sent, with no minimum.
510
510
  */
511
511
  references?: Array<Reference>;
512
512
  /**
@@ -520,7 +520,7 @@ export type Reference = {
520
520
  */
521
521
  asset_id: string;
522
522
  /**
523
- * Which copy to send: `original`, or one of `50`, `25`, `12.5` — the smaller versions made when the image was stored. Smaller copies spend less of the 9 megapixel budget shared with the output. A variant that does not exist falls back to the original, which may put the request over budget.
523
+ * Which copy to send: `original`, or one of `50`, `25`, `12.5` — the smaller versions made when the image was stored. Smaller copies spend less of the 9 megapixel budget shared with the output, and cost less: a reference is charged on the copy sent. A variant that does not exist falls back to the original, which may put the request over budget.
524
524
  */
525
525
  variant?: string;
526
526
  };
@@ -714,7 +714,7 @@ export type TemplateInfo = {
714
714
  */
715
715
  example_url: string | null;
716
716
  /**
717
- * What one generation from it costs your organisation, in micro-credits (1 credit is 1,000,000). Knowable up front because every parameter is frozen. Null when the platform has no rate for the capability.
717
+ * What one generation from it costs your organisation, in micro-credits (1 credit is 1,000,000). Knowable up front because every parameter is frozen — but on an image template your own pictures are charged on top, each at the output's per-megapixel rate and the size sent. Null when the platform has no rate for the capability.
718
718
  */
719
719
  credits_micros: number | null;
720
720
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/server",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "The Lumavox API from your server: end users, ephemeral keys and the rest, typed from the published OpenAPI document. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",