@ai-sdk/deepinfra 2.0.23 → 2.0.24
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/CHANGELOG.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/11-deepinfra.mdx +13 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/docs/11-deepinfra.mdx
CHANGED
|
@@ -238,21 +238,23 @@ For models supporting size parameters, dimensions must typically be:
|
|
|
238
238
|
- Width and height between 256 and 1440 pixels
|
|
239
239
|
- Default size is 1024x1024
|
|
240
240
|
|
|
241
|
-
| Model
|
|
242
|
-
|
|
|
243
|
-
| `stabilityai/sd3.5`
|
|
244
|
-
| `black-forest-labs/FLUX-1.1-pro`
|
|
245
|
-
| `black-forest-labs/FLUX-1-schnell`
|
|
246
|
-
| `black-forest-labs/FLUX-1-dev`
|
|
247
|
-
| `black-forest-labs/FLUX-pro`
|
|
248
|
-
| `
|
|
249
|
-
| `
|
|
241
|
+
| Model | Dimensions Specification | Notes |
|
|
242
|
+
| -------------------------------------- | ------------------------ | -------------------------------------------------------- |
|
|
243
|
+
| `stabilityai/sd3.5` | Aspect Ratio | Premium quality base model, 8B parameters |
|
|
244
|
+
| `black-forest-labs/FLUX-1.1-pro` | Size | Latest state-of-art model with superior prompt following |
|
|
245
|
+
| `black-forest-labs/FLUX-1-schnell` | Size | Fast generation in 1-4 steps |
|
|
246
|
+
| `black-forest-labs/FLUX-1-dev` | Size | Optimized for anatomical accuracy |
|
|
247
|
+
| `black-forest-labs/FLUX-pro` | Size | Flagship Flux model |
|
|
248
|
+
| `black-forest-labs/FLUX.1-Kontext-dev` | Size | Image editing and transformation model |
|
|
249
|
+
| `black-forest-labs/FLUX.1-Kontext-pro` | Size | Professional image editing and transformation |
|
|
250
|
+
| `stabilityai/sd3.5-medium` | Aspect Ratio | Balanced 2.5B parameter model |
|
|
251
|
+
| `stabilityai/sdxl-turbo` | Aspect Ratio | Optimized for fast generation |
|
|
250
252
|
|
|
251
253
|
For more details and pricing information, see the [DeepInfra text-to-image models page](https://deepinfra.com/models/text-to-image).
|
|
252
254
|
|
|
253
255
|
## Embedding Models
|
|
254
256
|
|
|
255
|
-
You can create DeepInfra embedding models using the `.
|
|
257
|
+
You can create DeepInfra embedding models using the `.embeddingModel()` factory method.
|
|
256
258
|
For more on embedding models with the AI SDK see [embed()](/docs/reference/ai-sdk-core/embed).
|
|
257
259
|
|
|
258
260
|
```ts
|
|
@@ -260,7 +262,7 @@ import { deepinfra } from '@ai-sdk/deepinfra';
|
|
|
260
262
|
import { embed } from 'ai';
|
|
261
263
|
|
|
262
264
|
const { embedding } = await embed({
|
|
263
|
-
model: deepinfra.
|
|
265
|
+
model: deepinfra.embeddingModel('BAAI/bge-large-en-v1.5'),
|
|
264
266
|
value: 'sunny day at the beach',
|
|
265
267
|
});
|
|
266
268
|
```
|