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
{"init_image": ["https://assets.modelslab.com/generations/a3c87b46-7c1b-45ed-934f-374f3023e378.png","https://assets.modelslab.com/generations/3e9b45b3-f154-4eb4-b7ed-b40258769955.png","https://assets.modelslab.com/generations/e848a962-3a29-40f8-a6e8-762a4877039c.png"],"prompt": "Combine this image a girl walking in beach and flying the hot air ballon on the sky","model_id": "seedream-4.5-i2i","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 |
|---|---|---|
| Init Image | init_image | Add your URLs in JPEG, PNG, You can add upto 10 Images |
| Prompt | prompt | The text prompt for the type of image you want to generate |
| Model Id | model_id | Model ID |
| Aspect Ratio | aspect_ratio | tells you the shape of an image by comparing its width to its height. For example, 1:1 is square, 3:4 and 4:3 are slightly tall or wide, 9:16 is vertical, and 16:9 is wide |
