Image Generation Models
Returns the currently available image generation model catalog, including each model’s supported sizes, qualities, styles, 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 generation API.
This endpoint only queries the model catalog and does not create an image generation task. To generate an image, call the Generate Image endpoint.
Image generation is text-to-image: it creates a new image from a text prompt without an input image. To modify an existing image, use the Image Editing Models endpoint and the corresponding image editing API.
curl --request GET \
--url https://aitoearn.cn/api/ai/models/image/generationimport requests
url = "https://aitoearn.cn/api/ai/models/image/generation"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://aitoearn.cn/api/ai/models/image/generation', 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/generation"
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": "integer",
"message": "string",
"data": [
{
"name": "string",
"label": "string",
"tags": [
"string"
],
"creditsScope": "string",
"sizes": [
"string"
],
"qualities": [
"string"
],
"styles": [
"string"
],
"pricing": [
{
"size": "string",
"price": "number",
"originPrice": "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 generation 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
Supported quality options
auto, high, medium, low Supported style options. An empty array means the current model does not support the style parameter.
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/generationimport requests
url = "https://aitoearn.cn/api/ai/models/image/generation"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://aitoearn.cn/api/ai/models/image/generation', 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/generation"
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": "integer",
"message": "string",
"data": [
{
"name": "string",
"label": "string",
"tags": [
"string"
],
"creditsScope": "string",
"sizes": [
"string"
],
"qualities": [
"string"
],
"styles": [
"string"
],
"pricing": [
{
"size": "string",
"price": "number",
"originPrice": "number"
}
],
"description": "string"
}
],
"requestId": "string"
}
