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": "A 24-year-old girl and a 24-year-old boy smiling together, sitting casually on the bonnet of a vintage car in an outdoor setting with some people visible in the background. The girl is wearing a t-shirt with the text “Gen 4 image turbo” written on it. The boy is wearing a different color t-shirt (not white) with the word “Models” in bold blue text and “Lab” in bold white text. Bright natural daylight, cinematic photography style, realistic skin tones, natural happy expressions, crisp details, high quality.","init_image": "https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/3feb43ab-ea3a-4c5e-9a74-8a18523edb5a.png","init_image_2": "https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/823b4e53-9434-4fdf-928c-ff7f082fde99.png","model_id": "gen4_image_turbo","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 | The text prompt for the type of image you want to generate |
| Init Image | init_image | Upload your image |
| Init Image 2 | init_image_2 | Upload your image |
| Model | model_id | Models ID |
