@lumavox/server 0.18.0 → 0.19.0
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.
- package/dist/gen/types.gen.d.ts +29 -13
- package/package.json +6 -6
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -346,6 +346,10 @@ export type GenerationInfo = {
|
|
|
346
346
|
megapixels: number | null;
|
|
347
347
|
safety_tolerance: number | null;
|
|
348
348
|
enhance_prompt: boolean | null;
|
|
349
|
+
/**
|
|
350
|
+
* Whether `flux-3-image` searched the web. Null otherwise.
|
|
351
|
+
*/
|
|
352
|
+
grounding: boolean | null;
|
|
349
353
|
/**
|
|
350
354
|
* `fld_…` the result lands in, or null for the root.
|
|
351
355
|
*/
|
|
@@ -355,7 +359,7 @@ export type GenerationInfo = {
|
|
|
355
359
|
*/
|
|
356
360
|
duration: number | null;
|
|
357
361
|
/**
|
|
358
|
-
* `hd` or `fhd
|
|
362
|
+
* A clip's `hd` or `fhd`, or a FLUX 3 image's tier (`768sq` to `4k`).
|
|
359
363
|
*/
|
|
360
364
|
resolution: string | null;
|
|
361
365
|
generate_audio: boolean | null;
|
|
@@ -530,23 +534,31 @@ export type SkyboxFile = {
|
|
|
530
534
|
};
|
|
531
535
|
export type ImageRequest = {
|
|
532
536
|
/**
|
|
533
|
-
* What to generate.
|
|
537
|
+
* What to generate. FLUX 3's models also read bounding boxes at the end of the prompt, to place each element.
|
|
534
538
|
*/
|
|
535
539
|
prompt: string;
|
|
536
540
|
/**
|
|
537
|
-
* One of:
|
|
541
|
+
* One of: flux-2-max, flux-3-image, flux-3-image-klein. **The model decides which other fields apply, and how the image is priced**: `flux-2-max` is sized by `megapixels` and charged per megapixel, its references included; `flux-3-image` and `flux-3-image-klein` are sized by `resolution` and charged per image at that tier, their references free. A field the model does not take is a 422 naming it.
|
|
542
|
+
*/
|
|
543
|
+
model?: 'flux-2-max' | 'flux-3-image' | 'flux-3-image-klein';
|
|
544
|
+
/**
|
|
545
|
+
* For `flux-2-max`, one of: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. For `flux-3-image` and `flux-3-image-klein`, one of: 21:9, 2:1, 16:9, 3:2, 7:5, 4:3, 5:4, 1:1, 4:5, 3:4, 5:7, 2:3, 9:16, 1:2, 9:21, auto — `auto` keeps the ratio the prompt asks for, else the first reference's framing.
|
|
538
546
|
*/
|
|
539
547
|
aspect_ratio?: string;
|
|
540
548
|
/**
|
|
541
|
-
* 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.
|
|
549
|
+
* `flux-2-max` only, default 1. 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.
|
|
542
550
|
*/
|
|
543
|
-
megapixels?: number;
|
|
551
|
+
megapixels?: number | null;
|
|
544
552
|
/**
|
|
545
|
-
* One of:
|
|
553
|
+
* `flux-3-image` and `flux-3-image-klein` only, default `1k`. One of: 768sq, 1k, 1.5k, 2k, 4k — roughly 0.6, 1, 2, 4 and 16 megapixels, the exact pixels the model's for the ratio. **This is what you are charged on**: one price per image at each tier. `flux-3-image` makes at most `2k` from references.
|
|
546
554
|
*/
|
|
547
|
-
|
|
555
|
+
resolution?: string | null;
|
|
548
556
|
/**
|
|
549
|
-
*
|
|
557
|
+
* For `flux-2-max`, one of: jpeg, png, webp; for `flux-3-image-klein`, one of: jpeg, png. Default `jpeg`. `flux-3-image` takes none: its file is the type the model writes, on `image.content_type`.
|
|
558
|
+
*/
|
|
559
|
+
output_format?: string | null;
|
|
560
|
+
/**
|
|
561
|
+
* Reuse a seed to get the same image again from the same prompt. Omit for a different one each time. `flux-3-image` takes none; `flux-3-image-klein`'s is at most 4294967295.
|
|
550
562
|
*/
|
|
551
563
|
seed?: number | null;
|
|
552
564
|
/**
|
|
@@ -554,11 +566,15 @@ export type ImageRequest = {
|
|
|
554
566
|
*/
|
|
555
567
|
safety_tolerance?: number;
|
|
556
568
|
/**
|
|
557
|
-
* Let the model rewrite your prompt before rendering. On by default, which is the provider's own behaviour
|
|
569
|
+
* Let the model rewrite your prompt before rendering. On by default, which is the provider's own behaviour; on `flux-2-max`, turn it off to send your words exactly as written. `flux-3-image` and `flux-3-image-klein` always rewrite it, so `false` is refused there.
|
|
558
570
|
*/
|
|
559
|
-
enhance_prompt?: boolean;
|
|
571
|
+
enhance_prompt?: boolean | null;
|
|
572
|
+
/**
|
|
573
|
+
* `flux-3-image` only, default `true`: the model may search the web and images to get real things right before it renders. `false` is faster and uses only your prompt.
|
|
574
|
+
*/
|
|
575
|
+
grounding?: boolean | null;
|
|
560
576
|
/**
|
|
561
|
-
*
|
|
577
|
+
* Images from your library for the model to work from: up to 8 for `flux-2-max`, 10 for `flux-3-image` and `flux-3-image-klein`. On `flux-2-max`, **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 422 naming the numbers, never a silent drop; and **each reference is charged** at the output's per-megapixel rate, on the megapixels of the copy sent, with no minimum. On `flux-3-image` and `flux-3-image-klein` references cost nothing and have no budget, but each must be at least 256 pixels a side and at most 16 megapixels.
|
|
562
578
|
*/
|
|
563
579
|
references?: Array<Reference>;
|
|
564
580
|
/**
|
|
@@ -766,11 +782,11 @@ export type TemplateInfo = {
|
|
|
766
782
|
*/
|
|
767
783
|
example_url: string | null;
|
|
768
784
|
/**
|
|
769
|
-
* 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
|
|
785
|
+
* 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 a `flux-2-max` 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.
|
|
770
786
|
*/
|
|
771
787
|
credits_micros: number | null;
|
|
772
788
|
/**
|
|
773
|
-
* On an image template, the megapixels of the pictures the template itself sends with every generation, each charged at the output's per-megapixel rate and already in `credits_micros` — so an estimate that moves the output's size keeps this term as it is, and adds your own pictures at the size they are sent. 0 on a video or skybox template, whose price no picture changes.
|
|
789
|
+
* On an image template, the megapixels of the pictures the template itself sends with every generation, each charged at the output's per-megapixel rate and already in `credits_micros` — so an estimate that moves the output's size keeps this term as it is, and adds your own pictures at the size they are sent. 0 on a video or skybox template, and on a FLUX 3 image template, whose price no picture changes.
|
|
774
790
|
*/
|
|
775
791
|
fixed_megapixels: number;
|
|
776
792
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumavox/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
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",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"typecheck": "tsc --noEmit && tsc --noEmit -p test"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@biomejs/biome": "2.6.
|
|
44
|
-
"@cloudflare/vitest-plugin": "1.
|
|
45
|
-
"@cloudflare/workers-types": "^5.
|
|
43
|
+
"@biomejs/biome": "2.6.4",
|
|
44
|
+
"@cloudflare/vitest-plugin": "1.5.1",
|
|
45
|
+
"@cloudflare/workers-types": "^5.20261104.1",
|
|
46
46
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
47
47
|
"@types/node": "^24",
|
|
48
|
-
"esbuild": "^0.28.
|
|
48
|
+
"esbuild": "^0.28.2",
|
|
49
49
|
"typescript": "^6",
|
|
50
|
-
"vitest": "^
|
|
50
|
+
"vitest": "^5.1.0"
|
|
51
51
|
}
|
|
52
52
|
}
|