Image-to-Image
Technical documentation for dryAPI APIs, integration guides, and operational references.
Endpoint for requesting img2img inference. Accepts either a single image via "image" or multiple images via "images[]" (mutually exclusive).
NOTE
Prerequisite: To ensure a successful request, you must first consult the Model Selection endpoint to identify a valid model
slug, check specific limits and features, and verify LoRA availability. Please omit the LoRA parameter by default during initial testing.
OpenAPI
Request Image2 Image
Authorization
bearerAuth In: header
Header Parameters
"application/json""application/json"Request Body
multipart/form-data
Image generation parameters. Either "image" or "images[]" must be provided (not both).
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.dryapi.dev/api/v1/client/img2img" \ -H "Accept: application/json" \ -F prompt="A beautiful sunset over mountains" \ -F model="QwenImageEdit_Plus_NF4" \ -F steps="20" \ -F seed="42"{
"data": {
"request_id": "c08a339c-73e5-4d67-a4d5-231302fbff9a"
}
}{
"data": {},
"message": "string",
"errors": [
null
],
"statusCode": 0
}{
"data": {},
"message": "string",
"errors": [
null
],
"statusCode": 0
}{
"message": "The selected model does not support Text To Image.",
"errors": {
"model": [
"The selected model does not support Text To Image."
]
}
}{
"message": "Too Many Attempts."
}