Image Editing Models
Returns the currently available image editing model catalog, including each model’s supported sizes, maximum input image count, credit scope, and pricing. Models and parameter ranges may change as the service is updated, so use the real-time response from this endpoint when calling the image editing API.
This endpoint only queries the model catalog and does not create an image editing task. To edit an image, call the Edit Image endpoint.
Image editing is image-to-image: it requires a reference image and modifies or redraws it according to the prompt. To generate a new image from text only, use the Image Generation Models endpoint and the corresponding image generation API.
curl --request GET \
--url https://aitoearn.cn/api/ai/models/image/editimport requests
url = "https://aitoearn.cn/api/ai/models/image/edit"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://aitoearn.cn/api/ai/models/image/edit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/ai/models/image/edit"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "Request succeeded",
"data": [
{
"name": "string",
"label": "string",
"tags": [
"string"
],
"creditsScope": "string",
"sizes": [
"string"
],
"pricing": [
{
"size": "string",
"price": "number",
"originPrice": "number"
}
],
"maxInputImages": "number",
"description": "string"
}
],
"requestId": "string"
}Response
The request has been processed by the service. Business success is determined by whether the response body has code === 0.
The currently available image editing models. Models, parameter ranges, and pricing may change as the service is updated; always use the latest response from this endpoint.
Hide child attributes
Hide child attributes
Model name
Model display name
tag list
Credit scope used by the model. The current response is seedance, which means Seedance-specific credits.
seedance Supported image size list
Maximum number of input images allowed by the model
Model description
Business status code. 0 means success; non-zero means a business error.
Response message.
Request ID.
Error response timestamp in Unix milliseconds.
curl --request GET \
--url https://aitoearn.cn/api/ai/models/image/editimport requests
url = "https://aitoearn.cn/api/ai/models/image/edit"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://aitoearn.cn/api/ai/models/image/edit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/ai/models/image/edit"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "Request succeeded",
"data": [
{
"name": "string",
"label": "string",
"tags": [
"string"
],
"creditsScope": "string",
"sizes": [
"string"
],
"pricing": [
{
"size": "string",
"price": "number",
"originPrice": "number"
}
],
"maxInputImages": "number",
"description": "string"
}
],
"requestId": "string"
}
