craterview 0.4.13 → 0.4.16
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/index.ts +9 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { imageSize } from "image-size";
|
|
|
18
18
|
// Mirrored from package.json, which is the number a release bumps. It cannot be imported
|
|
19
19
|
// from there — this ships as TypeScript, so the import would have to resolve in the
|
|
20
20
|
// consumer's toolchain — so test/version.test.ts asserts the two agree.
|
|
21
|
-
export const VERSION = "0.4.
|
|
21
|
+
export const VERSION = "0.4.16";
|
|
22
22
|
const DEFAULT_BASE_URL = "https://api.craterview.ai";
|
|
23
23
|
// The server rejects a longer wait outright, so asking for one costs a 422 rather than the
|
|
24
24
|
// wait you asked for. `run()` clamps to this rather than letting that happen.
|
|
@@ -304,6 +304,14 @@ export interface ModelInfo {
|
|
|
304
304
|
* enlargement keeps the whole picture. Zero means this axis is unbounded for you.
|
|
305
305
|
*/
|
|
306
306
|
max_output_megapixels: number;
|
|
307
|
+
/**
|
|
308
|
+
* The most of a picture this model works on in one job, in megapixels: the region you
|
|
309
|
+
* name with `roi`, or the whole image. Where it is set it binds at every enlargement, so
|
|
310
|
+
* the largest frame you may send is the smaller of this and `max_output_megapixels`
|
|
311
|
+
* divided by the square of the enlargement — and asking for less enlargement does not
|
|
312
|
+
* help with it, where a smaller region does. Zero means this axis is unbounded for you.
|
|
313
|
+
*/
|
|
314
|
+
max_input_megapixels: number;
|
|
307
315
|
/** Whole credits. The price is flat and knowable before you send anything. */
|
|
308
316
|
credits_per_image: number;
|
|
309
317
|
/** Whole credits. Null means this model takes stills only. */
|