POST
/
images
/
generations
curl --request POST \
  --url https://api.siliconflow.cn/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "deepseek-ai/Janus-Pro-7B",
  "prompt": "an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the sea",
  "seed": 4999999999
}'
{
  "images": [
    {
      "url": "<string>"
    }
  ],
  "timings": {
    "inference": 123
  },
  "seed": 123
}

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer <your api key>

Body

application/json
model
enum<string>
default:
deepseek-ai/Janus-Pro-7B
required

Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.The model defaults to generating images with a resolution of 384*384.

Available options:
deepseek-ai/Janus-Pro-7B
prompt
string
default:
an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the sea
required
seed
integer
Required range: 0 < x < 9999999999

Response

200
application/json
200
images
object[]
timings
object
seed
integer