To get started with Swarms, you'll need to import the library and create an instance of the `BaseMultiModalModel` class. This class serves as the foundation for running multimodal models.
To get started with Swarms, you'll need to import the library and create an instance of the `BaseMultiModalModel` class. This class serves as the foundation for running multimodal models.
```python
```python
from swarms.models import BaseMultiModalModel
from swarm_models import BaseMultiModalModel
model = BaseMultiModalModel(
model = BaseMultiModalModel(
model_name="your_model_name",
model_name="your_model_name",
@ -138,7 +138,7 @@ Let's explore some usage examples of the MultiModalAI library:
```python
```python
# Import the library
# Import the library
from swarms.models import BaseMultiModalModel
from swarm_models import BaseMultiModalModel
# Create an instance of the model
# Create an instance of the model
model = BaseMultiModalModel(
model = BaseMultiModalModel(
@ -159,7 +159,7 @@ print(response)
```python
```python
# Import the library
# Import the library
from swarms.models import BaseMultiModalModel
from swarm_models import BaseMultiModalModel
# Create an instance of the model
# Create an instance of the model
model = BaseMultiModalModel(
model = BaseMultiModalModel(
@ -184,7 +184,7 @@ for response in responses:
```python
```python
# Import the library
# Import the library
from swarms.models import BaseMultiModalModel
from swarm_models import BaseMultiModalModel
# Create an instance of the model
# Create an instance of the model
model = BaseMultiModalModel(
model = BaseMultiModalModel(
@ -209,7 +209,7 @@ for response in responses:
### Example 4: Inheriting `BaseMultiModalModel` for it's prebuilt classes
### Example 4: Inheriting `BaseMultiModalModel` for it's prebuilt classes
Let's get started with a quick example of using the Dalle3 library to generate an image from a text prompt:
Let's get started with a quick example of using the Dalle3 library to generate an image from a text prompt:
```python
```python
from swarms.models.dalle3 import Dalle3
from swarm_models.dalle3 import Dalle3
# Create an instance of the Dalle3 class
# Create an instance of the Dalle3 class
dalle = Dalle3()
dalle = Dalle3()
@ -97,7 +97,7 @@ Returns:
### Example 1: Basic Image Generation
### Example 1: Basic Image Generation
```python
```python
from swarms.models.dalle3 import Dalle3
from swarm_models.dalle3 import Dalle3
# Create an instance of the Dalle3 class
# Create an instance of the Dalle3 class
dalle3 = Dalle3()
dalle3 = Dalle3()
@ -115,7 +115,7 @@ print(image_url)
### Example 2: Creating Image Variations
### Example 2: Creating Image Variations
```python
```python
from swarms.models.dalle3 import Dalle3
from swarm_models.dalle3 import Dalle3
# Create an instance of the Dalle3 class
# Create an instance of the Dalle3 class
dalle3 = Dalle3()
dalle3 = Dalle3()
@ -137,7 +137,7 @@ Certainly! Here are additional examples that cover various edge cases and method
You can customize the size of the generated image by specifying the `size` parameter when creating an instance of the `Dalle3` class. Here's how to generate a smaller image:
You can customize the size of the generated image by specifying the `size` parameter when creating an instance of the `Dalle3` class. Here's how to generate a smaller image:
```python
```python
from swarms.models.dalle3 import Dalle3
from swarm_models.dalle3 import Dalle3
# Create an instance of the Dalle3 class with a custom image size
# Create an instance of the Dalle3 class with a custom image size
dalle3 = Dalle3(size="512x512")
dalle3 = Dalle3(size="512x512")
@ -157,7 +157,7 @@ print(image_url)
You can adjust the maximum number of API request retries using the `max_retries` parameter. Here's how to increase the retry limit:
You can adjust the maximum number of API request retries using the `max_retries` parameter. Here's how to increase the retry limit:
```python
```python
from swarms.models.dalle3 import Dalle3
from swarm_models.dalle3 import Dalle3
# Create an instance of the Dalle3 class with a higher retry limit
# Create an instance of the Dalle3 class with a higher retry limit
dalle3 = Dalle3(max_retries=5)
dalle3 = Dalle3(max_retries=5)
@ -177,7 +177,7 @@ print(image_url)
To create variations of an existing image, you can use the `create_variations` method. Here's an example:
To create variations of an existing image, you can use the `create_variations` method. Here's an example:
```python
```python
from swarms.models.dalle3 import Dalle3
from swarm_models.dalle3 import Dalle3
# Create an instance of the Dalle3 class
# Create an instance of the Dalle3 class
dalle3 = Dalle3()
dalle3 = Dalle3()
@ -197,7 +197,7 @@ print(variations_url)
The Dalle3 library provides error handling for API-related issues. Here's how to handle and display API errors:
The Dalle3 library provides error handling for API-related issues. Here's how to handle and display API errors:
```python
```python
from swarms.models.dalle3 import Dalle3
from swarm_models.dalle3 import Dalle3
# Create an instance of the Dalle3 class
# Create an instance of the Dalle3 class
dalle3 = Dalle3()
dalle3 = Dalle3()
@ -218,7 +218,7 @@ except Exception as e:
You can customize the quality of the generated image by specifying the `quality` parameter. Here's how to generate a high-quality image:
You can customize the quality of the generated image by specifying the `quality` parameter. Here's how to generate a high-quality image:
```python
```python
from swarms.models.dalle3 import Dalle3
from swarm_models.dalle3 import Dalle3
# Create an instance of the Dalle3 class with high quality
# Create an instance of the Dalle3 class with high quality