Skip to main content
POST
https://ai-nebula.com
/
prod-api
/
nebula
/
v4
/
api
/
img2imgSubmit
AI Image - Image to Image
curl --request POST \
  --url https://ai-nebula.com/prod-api/nebula/v4/api/img2imgSubmit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "batchImageGenerationDTO.model": "<string>",
  "batchImageGenerationDTO.prompt": "<string>",
  "batchImageGenerationDTO.n": 123,
  "batchImageGenerationDTO.size": "<string>",
  "batchImageGenerationDTO.temperature": 123,
  "batchImageGenerationDTO.watermark": true,
  "batchImageGenerationDTO.image": "<string>",
  "batchImageGenerationDTO.promptOptions": {},
  "batchImageGenerationDTO.optimizePrompt": "<string>",
  "batchImageGenerationDTO.quality": "<string>",
  "batchImageGenerationDTO.responseFormat": "<string>",
  "batchImageGenerationDTO.score": 123,
  "batchImageGenerationDTO.sequentialImageGeneration": "<string>",
  "batchImageGenerationDTO.sequentialImageGenerationOptions": {}
}
'
{
  "code": 200,
  "msg": "Operation successful",
  "data": {
    "images": [{
      "url": "https://example.com/image.jpg"
    }]
  }
}

Introduction

Submit image-to-image task, used to generate new images based on input image.

Authentication

Authorization
string
required
Bearer Token, e.g., Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9... How to get: Obtain via the POST interface in the Authentication module at the top left, https://docs.openai-nebula.com/en/nebula-lab-v4/endpoint/get-token

Request Parameters

batchImageGenerationDTO.model
string
required
Model name
batchImageGenerationDTO.prompt
string
required
Image description prompt
batchImageGenerationDTO.n
integer
required
Number of images to generate
batchImageGenerationDTO.size
string
required
Image size
batchImageGenerationDTO.temperature
integer
required
Generation temperature
batchImageGenerationDTO.watermark
boolean
required
Whether to add watermark
batchImageGenerationDTO.image
string
Reference image URL
batchImageGenerationDTO.promptOptions
object
Prompt options
batchImageGenerationDTO.optimizePrompt
string
Optimize prompt
batchImageGenerationDTO.quality
string
Image quality
batchImageGenerationDTO.responseFormat
string
Response format
batchImageGenerationDTO.score
number
Score threshold
batchImageGenerationDTO.sequentialImageGeneration
string
Sequential image generation switch
batchImageGenerationDTO.sequentialImageGenerationOptions
object
Sequential image generation options

Response Example

{
  "code": 200,
  "msg": "Operation successful",
  "data": {
    "images": [{
      "url": "https://example.com/image.jpg"
    }]
  }
}