API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v7/images/image-to-image
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"prompt": "The girl in image 1 and the dog in image 2 together in same frame, in living room, sofa in the background","model_id": "nano-banana-pro","init_image": ["https://assets.modelslab.com/generations/6670daf5-6550-445c-8972-e44a8a6b936c.webp","https://assets.modelslab.com/generations/a22193c5-ff9d-4cb0-a820-169af64bb8ba.png"],"aspect_ratio": "1:1","key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| Prompt | prompt | Describe in text how the image that need to be generated should appear. |
| Model | model_id | Model id |
| Images | init_image | You can edit upto 14 images in single generation |
| Aspect ratio | aspect_ratio | Select the aspect ratio |
